Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Quad), 755 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how to get the level of light. #381436
08/28/11 03:30
08/28/11 03:30
Joined: Jan 2011
Posts: 122
GUILIN , CHINA
tzw Offline OP
Member
tzw  Offline OP
Member

Joined: Jan 2011
Posts: 122
GUILIN , CHINA
hi~again. i wanna do a splinter cell-like light bar.but i don't know how to get the level of light at a postion. i've already looked into the aum 32.but i don't know how to do this in a8?
thanks in advance. laugh


Full of my eyes are class struggles.....
Re: how to get the level of light. [Re: tzw] #381444
08/28/11 11:31
08/28/11 11:31
Joined: Sep 2003
Posts: 648
Switzerland
snake67 Offline
User
snake67  Offline
User

Joined: Sep 2003
Posts: 648
Switzerland
Hi

I do something like that in my game. The code is integrated in the movement routine where it traces for the ground. The "c_trace" is done with "SCAN_TEXTURE" set. The varibale "tex_light" afterwarts contains brightness below player entity.

Re: how to get the level of light. [Re: snake67] #381447
08/28/11 12:24
08/28/11 12:24
Joined: Jan 2011
Posts: 122
GUILIN , CHINA
tzw Offline OP
Member
tzw  Offline OP
Member

Joined: Jan 2011
Posts: 122
GUILIN , CHINA
yep i've tried this. but seem the var is not correct. when the hero is at a very dark place.the var's value still very high. and the hero stand below a hi-res light ,the var's value even slower than in the dark one......
i'm confused


Full of my eyes are class struggles.....
Re: how to get the level of light. [Re: tzw] #381461
08/28/11 15:35
08/28/11 15:35
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Explain what you are trying to do. You can use hit.blue to with TRACE under player's feet (with SCAN_TEXTURE), but that works only with static ones.
For dynamic lights use "ent_nextlight", but I have no idea how to combine results from them...


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: how to get the level of light. [Re: 3run] #381503
08/29/11 00:17
08/29/11 00:17
Joined: Jan 2011
Posts: 122
GUILIN , CHINA
tzw Offline OP
Member
tzw  Offline OP
Member

Joined: Jan 2011
Posts: 122
GUILIN , CHINA
yes !!!
use ent_nextlight and a for loop combine hit.blue can get result...
thx.

or a simple way, just check the cloest light'value





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