javalang Posted April 11, 2016 Share Posted April 11, 2016 Sorry for asking, maybe I've overlooked something, but my ribbon in Billboardmode is not "bilboarding" while rotating the mesh, Do I have to update the ribbon during the scene.registerBeforeRender()-function? The intention was to create a "ray" swiping to the camera like a laser-beam where I can attach a special shader. Thanks in advance, playground is http://www.babylonjs-playground.com/#1TY50A#3 Quote Link to comment Share on other sites More sharing options...
jerome Posted April 11, 2016 Share Posted April 11, 2016 actually the billboard mode seems to work well I cleaned the unnecessary code : without billboarding : http://www.babylonjs-playground.com/#1TY50A#4 with billboarding (ever facing the cam) : http://www.babylonjs-playground.com/#1TY50A#5 Quote Link to comment Share on other sites More sharing options...
javalang Posted April 11, 2016 Author Share Posted April 11, 2016 Jerome, thank you for your reply, I'm afraid using a ribbon in billboard-mode is the wrong aproach for my laser-beam scenario, perhaps using a small cylinder or tube would be better..., Thank you again Quote Link to comment Share on other sites More sharing options...
javalang Posted April 11, 2016 Author Share Posted April 11, 2016 I solved the problem with two perpendicular planes, here we go: http://www.babylonjs-playground.com/#1U7OXA jerome 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.