Gamestudio Links
Zorro Links
Newest Posts
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
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 801 guests, and 6 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
View Entities and Light #300789
12/05/09 11:01
12/05/09 11:01
Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Roxas Offline OP
Member
Roxas  Offline OP
Member

Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Hey guys,

I want to know if there is any possibilty to have a view entity which reacts on the lights, which are placed in WED.

And if not, I would like to know if there is another possibilty to have an entity in the view which reacts on the lights, so that it'll become darker or brighter if you're close or far from a lightsource.

Thanks in Advance~

Roxas~

Re: View Entities and Light [Re: Roxas] #300792
12/05/09 12:05
12/05/09 12:05
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
some simple options cuz am too lazy/tired to think on it more:
-dont use a view entity, use a normal entity with the ZNEAR flag
-adjust the view entities ambient based on the player ambient [if you use a player] and you could also do the same for colour

Re: View Entities and Light [Re: darkinferno] #300802
12/05/09 12:40
12/05/09 12:40
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
I agree with DarkInferno, you should use normal entity instead view entity.
But if you still want to use view entity, you can just use c_trace to the ground below and get the ambient value to be used by the view entity... See c_trace for more information.
BTW, I guess it only work for static lights though...

Re: View Entities and Light [Re: bart_the_13th] #300917
12/06/09 22:59
12/06/09 22:59
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Code:
VECTOR temp;
VECTOR offset;
offset.x = [dist];
offset.y = [horizontal];
offset.z = [vertical];
//
proc_mode = PROC_LATE;
vec_set(temp, offset);
vec_rotate(temp, camera.pan);
vec_add(temp, camera.x);
vec_set(my.x, temp);
vec_set(my.pan, camera.pan);
angle_rotate(my.pan, vector(180,0,0)); // OPTIONAL: rotate's the entity 180 deg so it faces camera




xXxGuitar511
- Programmer

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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