Jump to content

[solved] SPS billboard mode doesn't work if camera is parented


fenomas
 Share

Recommended Posts

Weird, this will need more investigations as it's already using the camera.globalPosition actually :

https://github.com/BabylonJS/Babylon.js/blob/master/src/Particles/babylon.solidParticleSystem.ts#L610

 

[EDIT] Ok, I think I understand. camera._currentTarget is expressed in the camera local space, if I'm not wrong. So the camera.globalPosition wouldn't be the right value to use. I'll test this.

 

[EDIT 2] Just found a way to handle this and working with both camera and/or SPS mesh parenting. Fixing PR submitted

Link to comment
Share on other sites

  • fenomas changed the title to [solved] SPS billboard mode doesn't work if camera is parented

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...
 Share

  • Recently Browsing   0 members

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