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 / Shadows (No, not the Hank Marvin kind)

Author
Message
Philip
23
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 8th Nov 2003 19:03
I crave your assistance with a question on shadows.

I'm attaching a short code extract. If you run it you'll see a pink sphere with a gold box behind it. Theres one light in the scene.

Now, the sphere is correctly lit - the point of it nearest the light is the brightest and the back half is not lit at all.

The box is the problem.

My question is this: is there an easy way I can get the box to be lit such that there is a shadow on it caused by the sphere?

(NB: I've tried set shadow shading on and it works fine except ITS VERY SLOW. Is there a faster way?)

Ta!

Philip

What do you mean, bears aren't supposed to wear hats and a tie?
David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 8th Nov 2003 19:40
If you want accurate shadows then it's either shadow shading or getting dirty with memblocks

ps - there are individual commands for set object now:
set object wireframe
set object transparency
set object cull etc.

no need for long set object commands now

"The trouble with the French is that they have no word for 'entreprenuer'" - Pres. George W Bush

Please visit http://www.davidtattersall.me.uk

Login to post a reply

Server time is: 2026-07-26 19:47:50
Your offset time is: 2026-07-26 19:47:50