illusoryMonad

Setup issue - No canvas appearing

Recommended Posts

Hi everyone,

Rather basic issue - I can't get a visible canvas, having followed along kittykatattack's Tutorial.

htmlCode.png.d8016720f153925da690c4f8d7a10662.png

 

 

 

 

 

 

localHost.png.b30974c29638e89bbc334e4353b2ba86.png

banner.png.49ce9b34006b991a5e8fa83dab28f041.png

And of course, all I get when my browser renders the HTML document is a blank page. Note that I've tried the page with multiple browsers, and also the incorrectly displayed character code points on the banner.

Also, I didn't get pixi.min.js from anywhere odd.

Share this post


Link to post
Share on other sites

According to sources:

https://github.com/pixijs/pixi.js/blob/v4.4.x/src/core/autoDetectRenderer.js

https://github.com/pixijs/pixi.js/blob/v4.4.x/src/core/Application.js#L40

https://github.com/pixijs/pixi.js/blob/v4.4.x/src/core/renderers/webgl/WebGLRenderer.js#L55

in 4.4 first param of all those constructors/functions has to be "width" and not an object.

It turns out, 4.5 is first version that accepts "options" as first: https://github.com/pixijs/pixi.js/blob/v4.5.x/src/core/renderers/webgl/WebGLRenderer.js

Please use latest pixi version, either 4.8.9 either 5.3.3

 

Share this post


Link to post
Share on other sites
On 11/17/2020 at 8:01 AM, ivan.popelyshev said:

According to sources:

https://github.com/pixijs/pixi.js/blob/v4.4.x/src/core/autoDetectRenderer.js

https://github.com/pixijs/pixi.js/blob/v4.4.x/src/core/Application.js#L40

https://github.com/pixijs/pixi.js/blob/v4.4.x/src/core/renderers/webgl/WebGLRenderer.js#L55

in 4.4 first param of all those constructors/functions has to be "width" and not an object.

It turns out, 4.5 is first version that accepts "options" as first: https://github.com/pixijs/pixi.js/blob/v4.5.x/src/core/renderers/webgl/WebGLRenderer.js

Please use latest pixi version, either 4.8.9 either 5.3.3

 

This fixed my problem also. I was initially using 4.4.X. Wondering, though, why I didn't see some kind of error. Is the place to look for error messages the Javascript console, or is there somewhere else also?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.