Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 609 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 3
Page 16 of 24 1 2 14 15 16 17 18 23 24
Re: perpixel ps2 - 7 lights!!!! [Re: Drew] #36923
12/18/04 08:51
12/18/04 08:51
Joined: Jul 2003
Posts: 893
Melbourne, Australia
Matt_Coles Offline

User
Matt_Coles  Offline

User

Joined: Jul 2003
Posts: 893
Melbourne, Australia
Should be able to

Matt Coles

Re: perpixel ps2 - 7 lights!!!! [Re: Matt_Coles] #36924
12/18/04 13:48
12/18/04 13:48
Joined: Jul 2002
Posts: 2,813
U.S.
Nadester Offline

Expert
Nadester  Offline

Expert

Joined: Jul 2002
Posts: 2,813
U.S.
Code:
action light_pos_object{

wait(5);
my.invisible=on;
my.passable=on;

while(1){

vec_set(temp,my.x);
if (vec_to_screen(temp,camera)){

my.light=on;
my.lightrange=300; //could be set also to a skill

my.red=my.skill1; //just put in the r,g,b values
my.green=my.skill2;
my.blue=my.skill3;

my.cast=on; //casts a shadow when on
}

else{
my.lightrange=0; //if too far away turn it off
my.light=off;
my.cast=off;

}

wait(1);
}
}



Use that for your dynamic light action. That *should* only show a light if it is on the screen itself, though I havn't tried it out. It would be better to use trace though I suppose... Let me know if it bugs out though, and I'll fix it.


--Eric
Re: perpixel ps2 - 7 lights!!!! [Re: Nadester] #36925
12/18/04 16:59
12/18/04 16:59
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline OP
Expert
Matt_Aufderheide  Offline OP
Expert
M

Joined: Oct 2003
Posts: 4,131
I dont think using light code such as that is a good idea.. if the light is behind the camera.. it could still affect the faces that are visible...so you will get lights blinking out and on..better to use a simple range-based approach as in my example.

Re: perpixel ps2 - 7 lights!!!! [Re: Matt_Aufderheide] #36926
12/19/04 13:44
12/19/04 13:44
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline
Serious User
Drew  Offline
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
anothher idea is attaching a light to the player, like a torch or flashlight...then you can concentrate on that source and others are just ambient...
or a flare object too...

Re: perpixel ps2 - 7 lights!!!! [Re: Drew] #36927
12/19/04 17:15
12/19/04 17:15
Joined: Jul 2003
Posts: 893
Melbourne, Australia
Matt_Coles Offline

User
Matt_Coles  Offline

User

Joined: Jul 2003
Posts: 893
Melbourne, Australia
I've attached a torch to the player and it worked well , what I was thinking of doing is having a trigger set off by the player walking through hollow blocks which you'd place in corridors about a room or two before the light

Re: perpixel ps2 - 7 lights!!!! [Re: Matt_Coles] #36928
12/19/04 17:34
12/19/04 17:34
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline
Serious User
Drew  Offline
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
how did you do it? attach entity? or just in player code?
any code to share? I'll try again too...
thanks

Last edited by Drew; 12/19/04 17:41.
Re: perpixel ps2 - 7 lights!!!! [Re: Drew] #36929
12/19/04 17:56
12/19/04 17:56
Joined: Jul 2003
Posts: 893
Melbourne, Australia
Matt_Coles Offline

User
Matt_Coles  Offline

User

Joined: Jul 2003
Posts: 893
Melbourne, Australia
I posted something like this into the players script:

my.light = ON; // illuminate myself
my.lightrange=2000; //could be set also to a skill


my.red=my.skill1; //just put in the r,g,b values
my.green=my.skill2;
my.blue=my.skill3;

and it worked fine, a real flashlight held by the player should not be much harder to implement

Re: perpixel ps2 - 7 lights!!!! [Re: Matt_Coles] #36930
12/22/04 15:26
12/22/04 15:26
Joined: Jul 2003
Posts: 893
Melbourne, Australia
Matt_Coles Offline

User
Matt_Coles  Offline

User

Joined: Jul 2003
Posts: 893
Melbourne, Australia
I've converted olivers env and spec shaders so that they work outside with the sun on level geometry now.
Slowly getting a move along
I'm hoping to release everything as sort of a shader pack. My project for the holidays

Re: perpixel ps2 - 7 lights!!!! [Re: Matt_Coles] #36931
12/28/04 16:30
12/28/04 16:30
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline
Serious User
Drew  Offline
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
LOVE NORMAL MAPPING!!
made a test of normal mapping from a high poly model, using polybump plugin...Hint: use cylinder mapping! best way to get a smooth seamless normal map...




Drew Medina
Game Developer (Artist)
Personal & professional website
Deviant Art
My Blogspot
Re: perpixel ps2 - 7 lights!!!! [Re: Drew] #36932
12/29/04 21:43
12/29/04 21:43
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline
Serious User
Drew  Offline
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag



Heres a new demo, just player control and some actor follows...tgought it was cool and wanted to share the organic possibilities for skin...
The characters are 800 polys each, with normal maps made from 600,000 poly original.

Download HERE



.


Drew Medina
Game Developer (Artist)
Personal & professional website
Deviant Art
My Blogspot
Page 16 of 24 1 2 14 15 16 17 18 23 24

Moderated by  Blink, Hummel, Superku 

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