Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (SBGuy), 712 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
More skills needed #20548
11/30/03 01:21
11/30/03 01:21
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 think there shoud be more skills passed directly to the shader from the entity.. one vector isnt really enough if you are trying to do multiple per pixel lights for instance. Ideally you could pass as many vecskills as you want.


Sphere Engine--the premier A6 graphics plugin.
Re: More skills needed [Re: Matt_Aufderheide] #20549
11/30/03 10:06
11/30/03 10:06
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
you could pass 4 vectors with the user matrix!

Re: More skills needed [Re: ventilator] #20550
11/30/03 10:55
11/30/03 10:55
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline OP
Expert
Matt_Aufderheide  Offline OP
Expert
M

Joined: Oct 2003
Posts: 4,131
yes sure... but what if you want to have 5 lights in a room.. you really need 10, or ideally 15 vectors for that. one for position, one for color, one for range. I cant think of any other way to do it. In my lighting system, you can have as many lights as you want... but the light radii can not intersect. An entity can only be in one light radius at a time. The only way to blend the lights is to have multiple passes fill them in.. and to do that i need more vectors. Also, since the shader needs to get the vector directly from the entity, you can cant feasibly use the matrix or the material skills. Cause the whole thing would change in each pass.. ive tried it.


Sphere Engine--the premier A6 graphics plugin.
Re: More skills needed [Re: Matt_Aufderheide] #20551
12/02/03 09:54
12/02/03 09:54
Joined: Nov 2003
Posts: 60
Baltimore, MD, USA
RogerLevy Offline
Junior Member
RogerLevy  Offline
Junior Member

Joined: Nov 2003
Posts: 60
Baltimore, MD, USA
this might be a dumb suggestion but.... could you use a pointer to a large enough array?

Re: More skills needed [Re: RogerLevy] #20552
12/02/03 16:01
12/02/03 16:01
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline OP
Expert
Matt_Aufderheide  Offline OP
Expert
M

Joined: Oct 2003
Posts: 4,131
No i dont think so.. the array cant be passed to the shader on a per-entity basis.


Sphere Engine--the premier A6 graphics plugin.
Re: More skills needed [Re: Matt_Aufderheide] #20553
12/02/03 18:58
12/02/03 18:58
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Light vectors will be available for shaders as soon as the new light management system from the forecast page is ready.

Re: More skills needed [Re: jcl] #20554
12/03/03 01:10
12/03/03 01:10
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline OP
Expert
Matt_Aufderheide  Offline OP
Expert
M

Joined: Oct 2003
Posts: 4,131
oh.. awsome


Sphere Engine--the premier A6 graphics plugin.

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