We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

offsetWidth null in v3d.js

Home Forums Bug Reports and Feature Requests offsetWidth null in v3d.js

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #44141
    jdhutchinson
    Customer

    See attached screenshot;

    var app = new v3d.App(CONTAINER_ID, ctxSettings, preloader);

    loadScene(sceneURL, initOptions);

    It seems to affect the above two lines, and the lines from the encoded v3d.js ( at new Zg )

    this.renderer.setSize(this.container.offsetWidth,this.container.offsetHeight)

    Attachments:
    You must be logged in to view attached files.
    #44344

    Hi,
    This encoding is used to minify engine size. However, in your code it does not matter. A believe there is something with this.container being null. It’s possible you execute this code before the engine is loaded or so. Can you please provide more code so we can take a look?

    Verge3D’s Tech Chief
    FB | Twitter | VK

    #44509
    jdhutchinson
    Customer

    Dear Alexander,

    I’ve sent you amessage to info@soft8soft.

    Thank you.
    Jonathan

    #44583

    Hi Jonathan,
    I’ve got your files via email. What should I do to reproduce the app crash?

    Verge3D’s Tech Chief
    FB | Twitter | VK

    #44644
    jdhutchinson
    Customer

    Hi Alexander, just running the app and entering F12 Chrome debug, the error is generated. But i don’t know if this is causing my app to slowdown, or what is generating the error.

    best wishes,

    #44645
    jdhutchinson
    Customer

    Dear Alex,

    It’s an unrelated question really, but would you have any suggestions for creating the look of reflected light from the sea onto the boat object, and indeed to be able to see the reflection of the boat in the surface of the water?

    I’m sure you’ agree, that at the amount the water could look more effective than it does.

    Jon

    Attachments:
    You must be logged in to view attached files.
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.