Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 1,086 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
No entity lighting from ground? #26965
05/05/04 02:33
05/05/04 02:33
Joined: Jan 2002
Posts: 644
USA
tesanders Offline OP
Developer
tesanders  Offline OP
Developer

Joined: Jan 2002
Posts: 644
USA
I could have sworn that there was an example in the manual of how to prevent an entity from taking additional ambient light based on the ground's own light value. (In fact, I thought this was exemplified by an airplane flying over terrain, but a search for that didn't turn up anything.) I don't want to use .unlit, as that would (presumably) prevent the entity from being lit by other light sources. Can someone point me in the right direction?

Re: No entity lighting from ground? [Re: tesanders] #26966
05/05/04 02:48
05/05/04 02:48
Joined: Oct 2003
Posts: 1,258
Virginia, USA
qwerty823 Offline
Senior Developer
qwerty823  Offline
Senior Developer

Joined: Oct 2003
Posts: 1,258
Virginia, USA
I'm assuming you are referring to the FLOOR_RANGE variable. I guess you could set it to 0, but this will effect all entitites and not just an individual one.

If you only need it for some entities, then you can probably have the ones that need it use an action that:

1.) Stores their real albedo and ambient in a skill.
2.) Trace down to the floor.
3.) If the trace distance is under a threshold, use the tex_fog/tex_light values with the albedo/ambient skills, and compute the real albdeo/ambient's for the model.

If you get to the point where you are doing to many traces, then you could save the position of the entity each frame, and only trace when the entity has moved.


Never argue with an idiot. They drag you down to their level then beat you with experience
Re: No entity lighting from ground? [Re: qwerty823] #26967
05/05/04 04:20
05/05/04 04:20
Joined: Jan 2002
Posts: 644
USA
tesanders Offline OP
Developer
tesanders  Offline OP
Developer

Joined: Jan 2002
Posts: 644
USA
That's just what I was looking for (and more)! Thanks much.


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1