Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Billboarding a plain problems

Author
Message
prasoc
17
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 8th Sep 2013 19:01
Hi,
I have clouds currently implemented and scrolling across the sky, they are made with lots of textured plains which face the camera using "point object", but when they reach directly overhead, they seem to rotate all the way around the top axis (y-axis) and then continue. How would I resolve this problem?


Sasuke
20
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 8th Sep 2013 23:52
What you want is Spherical Billboarding, this where plains point to the perpendicular camera plane rather than the camera position, so in a sense the camera plane angle. This stops plains flipping around to point towards the camera.

A simple way is set the rotation of the plain to the camera's up vector and the inverse of the camera's right vector.

I'll right a snippet later to explain. But google Spherical/Collective billboarding.

"Get in the Van!" - Van B

Login to post a reply

Server time is: 2026-07-08 03:47:01
Your offset time is: 2026-07-08 03:47:01