Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Akow, AndrewAMD, Quad), 733 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 3
Page 24 of 24 1 2 22 23 24
Re: Shader Problem [Re: Matt_Aufderheide] #37003
12/31/05 23:40
12/31/05 23:40
Joined: Jul 2003
Posts: 893
Melbourne, Australia
Matt_Coles Offline

User
Matt_Coles  Offline

User

Joined: Jul 2003
Posts: 893
Melbourne, Australia
I have adjusted code to incorporate fog with this shader. pm if interested

Re: Shader Problem [Re: Matt_Coles] #37004
01/03/06 21:29
01/03/06 21:29
Joined: Jul 2003
Posts: 893
Melbourne, Australia
Matt_Coles Offline

User
Matt_Coles  Offline

User

Joined: Jul 2003
Posts: 893
Melbourne, Australia
You can find the normal mapping ps2.0 with 7 lights and Fog in a zip file here:

Normal Mapping With Fog

Enjoy,
Matt Coles

Re: Shader Problem [Re: Matt_Coles] #37005
01/04/06 00:41
01/04/06 00:41
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline OP
Expert
Matt_Aufderheide  Offline OP
Expert
M

Joined: Oct 2003
Posts: 4,131
The only problem with this shader is that it passes through the same color fog for each pass... Think about it for a second, if you have the same fog for 3 or 4 passes, each being additive blended, your fog color will be all funky, and not match the actual fog value...becasue it fogs each pass seperately, anbd adds that to last pass..

A good way to handle this problem is to have the fog as normal in the first pass, then in all subsequent passes, change the fog color to black, then becasue it is additive, it will just dim down the passes, instead of fogging them with a color.. this will then give correct fog colors throughout all the passes.

You can set the fog color in the passes (except for the first pass, you shouldnt need to change that) like this:
fogcolor={0.0,0.0,0.0,1.0}; // this will be black..


Sphere Engine--the premier A6 graphics plugin.
Re: Shader Problem [Re: Matt_Aufderheide] #37006
01/04/06 01:30
01/04/06 01:30
Joined: Jul 2003
Posts: 893
Melbourne, Australia
Matt_Coles Offline

User
Matt_Coles  Offline

User

Joined: Jul 2003
Posts: 893
Melbourne, Australia
thanks, I'll change it round then

Re: Shader Problem [Re: Matt_Coles] #37007
03/23/06 15:18
03/23/06 15:18
Joined: Nov 2004
Posts: 181
Germany, Saarland, Nohfelden
L
Locutus_of_Borg Offline
Member
Locutus_of_Borg  Offline
Member
L

Joined: Nov 2004
Posts: 181
Germany, Saarland, Nohfelden
is it somehow possible to use this shader with static lights?
because in commertial edition you can only use 7 dynamic lights or so, static would be better here.

Page 24 of 24 1 2 22 23 24

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