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 / How to update shadow when moving limbs?

Author
Message
Bursar
17
Years of Service
User Offline
Joined: 17th Sep 2008
Location:
Posted: 12th Aug 2010 15:39
I have a plane model that I'm loading as follows:


It casts a nice plane shaped shadow on the matrix I'm using as my ground.

Later on I use this code to get the wings to sweep back:


Unfortunately the shadow of the plane doesn't update and it still shows the wings as sticking straight out. Is there a tick to get the shadow recalculated so it accurately represents the new wing position?
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 12th Aug 2010 16:43
This seems to work, but I couldn't get the limbs to cast a shadow at all without using the shader.

Bursar
17
Years of Service
User Offline
Joined: 17th Sep 2008
Location:
Posted: 12th Aug 2010 16:57
Quote: "This seems to work, but I couldn't get the limbs to cast a shadow at all without using the shader."

That little bit of inspiration was what I needed! When I set the shader flag to 1, the shadow updated perfectly.

Sometimes you can't see the wood for the trees! Thanks

Login to post a reply

Server time is: 2026-07-25 07:02:15
Your offset time is: 2026-07-25 07:02:15