Jump to content

A possible bug: Mesh instances don't throw shadows


Recommended Posts

The scene has one light and two box meshes. The front one throws shadow on the rear one. OK so far.

But if I hide both meshes (isVisible=false) and create mesh instances for each them then these instances are visible but do not thow shadow.

Even more, if I leave original front meshe visible it doesn't throw shadow until it's instances is visible.


See http://babylonjs-playground.com/#1HRVL5#4



Link to comment
Share on other sites

It works on boxes now, thanks! Alas I found another bug in the latest master. I started getting error "Uncaught TypeError: Cannot read property 'length' of undefined" at line 14982 of  babylon.max.js in my project. I don't know how to reproduce it on the playground as I'm using own meshes with textures in the project so I'm attaching the project. This error doesn't occur in babylon.2.2.js.


Link to comment
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.

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.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...