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), 636 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
standard Gs lighting shaders #248341
01/26/09 09:37
01/26/09 09:37
Joined: Jan 2007
Posts: 651
Germany
R
RedPhoenix Offline OP
User
RedPhoenix  Offline OP
User
R

Joined: Jan 2007
Posts: 651
Germany
Hi conitec,

The standard Gs and directX formular for calculating lighting is: diffuse + specular + ambient + emissive.
The standard A7 lighting engine works exactly this way and uses the material parameters for controling the lighting.

Why isn't it the same way with the lighting shaders that come with Gs in the codes folder???

(I mean nomralmapping bumbmapping parallaxmapping specularmapping etc.)

Everytime a adjust a shader to any levelobeject I have to modify the hole thing with relative values (different for each shader) to make it fit to the lighting situation. This annoyed me that much that I rewrote the shaders I want to use to calculate the lighting exactly the same way as the normal engine lighting calculation does it, only improved by the features of the specific shader. Using the material parameters just like the engine itsef would do it.

I think a shader standard that uses the standard material parameters and lighting formula would improve the Gs shader system a lot.
If your interested in some prototypes of such shaders I can send them to the support.

Re: standard Gs lighting shaders [Re: RedPhoenix] #248343
01/26/09 09:46
01/26/09 09:46
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Yes, you're right. The current shaders did not take the material into account. I'm just at modifying the standard shaders and we'll add the material parameters on that occasion. Your prototypes would be very welcome.

Re: standard Gs lighting shaders [Re: jcl] #248562
01/27/09 18:02
01/27/09 18:02
Joined: Jan 2007
Posts: 651
Germany
R
RedPhoenix Offline OP
User
RedPhoenix  Offline OP
User
R

Joined: Jan 2007
Posts: 651
Germany
I sent you some prototypes. I hope they will be a help.


Moderated by  aztec, Spirit 

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