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 / Ghosted object shadow problem.....

Author
Message
NathanF
21
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 28th Sep 2004 12:59
Is there any way to stop a ghosted object from having faded parts on the faces facing away the ambient light??

I'm trying to make some nice effects with the fade object command, but there's always like half of the object completely transparent...

Is there a way to have the whole object visible, but still be able to use fade object (with ambient light always on 0) ?


ehh, kinda crappy texture (as its made in the program), anyway - here are teh codez (see when the camera's behind the object, it is completely invisible...) :


-Formerly DarkSephiroth-
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 29th Sep 2004 01:23
I haven't been able to find a way...I just have two directional lights in Firewall that light up pretty much everything, giving the fading objects a pretty good overall lighting situation. I really wish you could make a "world light" or something...

Xander Moser - Bolt Software - Firewall
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 29th Sep 2004 04:03
Er, correct me if I'm being stupid here - but why have you turned the ambient light off if you want your objects to be lit from all angles?

Quote: "I really wish you could make a "world light" or something...
"


Again, perhaps I'm not getting something here - but isn't that called 'ambient light'?


NathanF
21
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 29th Sep 2004 09:01
Yer, except you need ambient light turned off, or set low to use fade object (and acheive good results). The higher you set it, the more everything is illuminated, and then you can't fade an object completely...

This is what I have to do now (set ambient to like 10), except some parts are more faded than others.

I think it was in DBC that ambient light lit the scene from all directions, but this one seems directional.

Thanks for the info Bolt, I might just do that, as in this game, only one effect is shown at a time - so I could easily position a couple of lights around it.

-Formerly DarkSephiroth-
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 29th Sep 2004 10:45
No, the ambient light lights from all directions - that's the whole point of it. The directional light your seeing is probably light zero (use 'hide light 0') or any other light you've added.

Another way to make your objects light up regardless of any light sources, is to use set object emissive. That will allow you to control the lightness of the whole surface of an object even if ambient light is off.


NathanF
21
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 29th Sep 2004 13:38
Hey the directional light thing worked, now all my effects are completely visible (when I want them to be)
Thanks Bolt

-Formerly DarkSephiroth-

Login to post a reply

Server time is: 2025-06-04 18:03:29
Your offset time is: 2025-06-04 18:03:29