Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
0 registered members (), 938 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Lighting models #80991
07/11/06 11:06
07/11/06 11:06

A
Anonymous
Unregistered
Anonymous
Unregistered
A



I'm using a level where the ground is one big model. However, it doesn't seem to be affected by lights in the level. Do I need a shader to do this?

Re: Lighting models [Re: ] #80992
07/11/06 11:58
07/11/06 11:58
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
Models aren't affected by level lights in the normal sense (as with blocks). You need to use a dynamic light to light models (and with 8 as a hardware limitation, it can be tricky to light).


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials
Re: Lighting models [Re: ulillillia] #80993
07/11/06 13:34
07/11/06 13:34

A
Anonymous
Unregistered
Anonymous
Unregistered
A



I have noticed that dynamic models (i.e. actors) are lit according to level lights sometimes - but that doesn't apply here?

Re: Lighting models [Re: ] #80994
07/11/06 13:54
07/11/06 13:54
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
That seems to only happen, as far as I know, when the actor gets inside the light. I haven't worked much with the 3D part in Gamestudio so I don't know for sure. From test results, level lights had no effect at all on models as scenery, but had different effects when the model was inside a light.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials
Re: Lighting models [Re: ulillillia] #80995
07/11/06 18:48
07/11/06 18:48
Joined: Aug 2005
Posts: 312
Sweden
tindust Offline
Senior Member
tindust  Offline
Senior Member

Joined: Aug 2005
Posts: 312
Sweden
ullillia & Gorthaur
It's true models are not influenced by static level light, that leaves the lighting set by the model itself through properties in the MED and WED (ambient, albedo etc,), model action lighting, and shaders.

However, Dynamic lights could also be used successfully in an "all model" level. First of all, the Sun would be the common way to light the level, but the other seven additional dynamic lights can also be used if the appropiate d3d_pointlightfalloff (or d3d_spotlightfalloff) vector is set. The default for that vector is 1.5, 0, 0, which gives a rather abrupt falloff at the range of the dynamic light. I have found that one setting that gives a very suddle falloff over a long distance is: 0, 0, 0.4. With this setting, dynamic lights successfully light large areas of the level (more than 6000 even tough the manual puts the limit to 2000).

Well, so far so good, but there are drawbacks. Dynamic lighting is video memory hungry. Using many dynamic lights or lighting a large area of the level, or having a complex level with many entities may decrease the fps notably. That's something too keep in mind and pay attention to. Also, the d3d_pointlightfalloff vector setting is for all dynamic lights at the same time. Fortunately, it can be reset during runtime.

hope this helps a bit

cheers,

tindust


Lighten Your Load With

DynaLights 1.0

Realtime 3D Lighting. Free Trial Version available.

3DGS 660P
Re: Lighting models [Re: ] #80996
07/13/06 07:12
07/13/06 07:12
Joined: May 2005
Posts: 138
jamrud khatulistiwa
Kotakide Offline
Member
Kotakide  Offline
Member

Joined: May 2005
Posts: 138
jamrud khatulistiwa
with sphere engine (plugin),
maybe....

Re: Lighting models [Re: Kotakide] #80997
07/13/06 14:17
07/13/06 14:17

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Yeah, I was looking at that, but the site seems to be down...


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