Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (3run, miwok, AndrewAMD, Quad, TipmyPip, fairtrader, 1 invisible), 637 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Dynamic light #85771
08/13/06 14:35
08/13/06 14:35
Joined: Mar 2006
Posts: 724
the Netherlands
Frits Offline OP
User
Frits  Offline OP
User

Joined: Mar 2006
Posts: 724
the Netherlands
When you add a light to the level and look in
Object Properties --> Properties
You can set Dynamic.
What is the function of this, I still can't add an action to that light?

Regards,
Frits


I like to keep scripting simple, life is hard enough as it is.
Regards,
Frits
Re: Dynamic light [Re: Frits] #85772
08/13/06 14:55
08/13/06 14:55
Joined: Nov 2003
Posts: 1,659
San Francisco
JetpackMonkey Offline
Serious User
JetpackMonkey  Offline
Serious User

Joined: Nov 2003
Posts: 1,659
San Francisco
Hi,

I recommend just assigning a self-made action to an object that you made, and apply the dynamic light code to it directly yourself. You can use this below, make an object, set its action to my_dynamic_light, and set the 3 skills for RGB, and skill4 for the lightrange.


Code:

action my_dynamic_light
{
//define color based on skills and distance for fadeout
my.red=my.skill1;
my.green=my.skill2;
my.blue =my.skill3;
my.lightrange= my.skill4
my.transparent = on;
my.alpha=0;
my.light= on;
}



Re: Dynamic light [Re: JetpackMonkey] #85773
08/13/06 15:26
08/13/06 15:26
Joined: Mar 2006
Posts: 724
the Netherlands
Frits Offline OP
User
Frits  Offline OP
User

Joined: Mar 2006
Posts: 724
the Netherlands
Yes, I have done that already, only I don't like the result;

[image][/image]

How do I prevent the light shining outside my elevator?
I would like it to stay inside.
The elevator is completely closed exept for the front end.

For the Dynamic box, I am only curious what you can do with it.

Regards,
Frits

Last edited by Frits; 08/13/06 15:29.

I like to keep scripting simple, life is hard enough as it is.
Regards,
Frits
Re: Dynamic light [Re: Frits] #85774
08/13/06 15:41
08/13/06 15:41
Joined: Nov 2003
Posts: 1,659
San Francisco
JetpackMonkey Offline
Serious User
JetpackMonkey  Offline
Serious User

Joined: Nov 2003
Posts: 1,659
San Francisco
Hi

Hmm maybe you can tinker with the values. Maybe RGB all need to go down 50 percent, and the light range reduced.

You can always hit Shift-F11, click the dynamic light, and adjust its values through the watched handle, like watched.red -= 10 and tinker with the values there. Dynamic lighting is kind of fickle and a pain unfortunately.

Re: Dynamic light [Re: JetpackMonkey] #85775
08/13/06 15:44
08/13/06 15:44
Joined: Jun 2005
Posts: 4,875
broozar Offline
Expert
broozar  Offline
Expert

Joined: Jun 2005
Posts: 4,875
what about switching it off when you look from the outside?

Re: Dynamic light [Re: broozar] #85776
08/13/06 16:15
08/13/06 16:15
Joined: Aug 2005
Posts: 312
Sweden
tindust Offline
Senior Member
tindust  Offline
Senior Member

Joined: Aug 2005
Posts: 312
Sweden
Suggestion is to make the elevator out of a model (if it isn't) with an inside surface (uv normals inward) as well as an outside surface. Then use a dynamic light with a short range as Jetpack Monkey says. The range is to large in your example. You can get some ideas of what you can do with models from the DynaLights Gallery if you like.

cheers, tindust


Lighten Your Load With

DynaLights 1.0

Realtime 3D Lighting. Free Trial Version available.

3DGS 660P
Re: Dynamic light [Re: tindust] #85777
08/13/06 16:56
08/13/06 16:56

A
Anonymous
Unregistered
Anonymous
Unregistered
A



If the lift was a model, would it work to set its shadow flag?

Re: Dynamic light [Re: ] #85778
08/13/06 17:48
08/13/06 17:48
Joined: Mar 2006
Posts: 724
the Netherlands
Frits Offline OP
User
Frits  Offline OP
User

Joined: Mar 2006
Posts: 724
the Netherlands
The lift is a map entity. I had to reduce the lightrange to 30 to keep the light inside.
Still I think this a strange behaviour for a dynamic light which is in a closed box.

But I still don't know the answer to my original question.
Does anyone know an answer?

Regards,
Frits


I like to keep scripting simple, life is hard enough as it is.
Regards,
Frits
Re: Dynamic light [Re: Frits] #85779
08/13/06 18:01
08/13/06 18:01
Joined: Nov 2003
Posts: 1,659
San Francisco
JetpackMonkey Offline
Serious User
JetpackMonkey  Offline
Serious User

Joined: Nov 2003
Posts: 1,659
San Francisco
Lowered the RGB values as well?

Re: Dynamic light [Re: JetpackMonkey] #85780
08/13/06 18:08
08/13/06 18:08
Joined: Mar 2006
Posts: 724
the Netherlands
Frits Offline OP
User
Frits  Offline OP
User

Joined: Mar 2006
Posts: 724
the Netherlands
Yes, I lowered them all to 50.

Regards,
Frits


I like to keep scripting simple, life is hard enough as it is.
Regards,
Frits
Page 1 of 2 1 2

Moderated by  HeelX, rvL_eXile 

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