Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, alibaba), 1,426 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
shaders using level lights... #74341
05/16/06 14:08
05/16/06 14:08
Joined: Apr 2006
Posts: 36
India
G
gamespider Offline OP
Newbie
gamespider  Offline OP
Newbie
G

Joined: Apr 2006
Posts: 36
India
most shaders and material effects ive seen use sun light or dynamic lights, which, I believe are limited to 32. is there a way to use static lights for shaders to give a doom3 type look? metal shaders on my weapons and skin shaders on my characters look odd when they appear to me lit from one direction when the rest of the level is lit from another direction......

Re: shaders using level lights... [Re: gamespider] #74342
05/16/06 16:57
05/16/06 16:57
Joined: Dec 2000
Posts: 4,608
mk_1 Offline

Expert
mk_1  Offline

Expert

Joined: Dec 2000
Posts: 4,608
You can use vecSkill1, vecSkill5, vecSkill ... to send light positions to the shader


Follow me on twitter
Re: shaders using level lights... [Re: mk_1] #74343
05/16/06 18:48
05/16/06 18:48
Joined: Jun 2005
Posts: 4,875
broozar Offline
Expert
broozar  Offline
Expert

Joined: Jun 2005
Posts: 4,875
dynamic lights are limited to 8, not 32.

render in shaded mode, rewrite the mapping coordinates of skin1 (the diffuse map), add the skin2 (the shadow map generated in the build process) and that is it. but beware, my experiments were limited to 12 fps in a damn small level.

the alternative is a ffe which does almost the same, though it does not react dynamically on light changes. these ffes slow down even more.

atm, there seems to be no other good and fast way than presented in sphere engine.

[EDIT] i just re-read your post. do you refer to level blocks (the method i described above) or models (then forget what you read).
what about switching some dynamic light off when thy are not visible (or at a certain distance)?

Re: shaders using level lights... [Re: broozar] #74344
05/17/06 13:32
05/17/06 13:32
Joined: Apr 2006
Posts: 36
India
G
gamespider Offline OP
Newbie
gamespider  Offline OP
Newbie
G

Joined: Apr 2006
Posts: 36
India
I was referring 2 models.

anyway, I followed up on what u sais about dynamic lights. The manual mentions that dlights are limited 2 8 in one section and 32 on another.

I believe the 32 limit comes to play when dynamic lights are created using my.lightrange flag for entities.so is there another way 2 create dlights that are limited to 8?

shaders 4 level blocks will be gOOd. I believe there is a demo caleed shadercollection. But I still havent figured out how 2 use it


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