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 / Is there a way to make object cast shadows?

Author
Message
Gilfalas
22
Years of Service
User Offline
Joined: 26th Jan 2003
Location: Luxembourg
Posted: 6th Feb 2003 00:13
hi

I was just wondering if there was a way of making objects cast shadows in DBPro.
Imagine you have objects flying over a matrix and you want to see the shadows of the objects on the matrix.

I already placed a light source to lighten the scene but there are no shadows yet.

Any clue?

Thanks
QuothTheRaven
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 6th Feb 2003 00:57
yes
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 6th Feb 2003 01:31
SET SHADOW SHADING ON objectnumber

This will cast realistic, dynamic shadows.

However there will be a performance hit and sometimes realistic shadows are not desirable. In which case I suggest a textured 3D plain placed just above the surface and scalled relative to the distance the object is from the surface. However true shadowing is great if you only have one or two objects.

NOBODY has a forum name as stupid as Darth Shader. I do.
Gilfalas
22
Years of Service
User Offline
Joined: 26th Jan 2003
Location: Luxembourg
Posted: 6th Feb 2003 16:22
Many thanks for your help.

I tried SET SHADOW SHADING ON, but it didn't work. Maybe my hardware does not support it.

I guess I'll do without shadows. After I thought about it again, I thought that since my objects are flying over the surface of a planet, they would be flying too high to cast shadows on the ground anyway.

Thanks again for your help though

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 6th Feb 2003 17:53
Just use a textured plain then - pretty easy to do.

NOBODY has a forum name as stupid as Darth Shader. I do.

Login to post a reply

Server time is: 2025-05-19 19:00:46
Your offset time is: 2025-05-19 19:00:46