Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (Ayumi, NewbieZorro, TipmyPip), 13,888 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
fog bug? #260630
04/12/09 16:32
04/12/09 16:32
Joined: Jun 2008
Posts: 151
Ukraine
XD1v0 Offline OP
Member
XD1v0  Offline OP
Member

Joined: Jun 2008
Posts: 151
Ukraine
If I switch fog to 1 (fog_color),all objects who is have shader becoming completely black or without texture,why this happening, that I doing wrong?

Code

without fog


with fog


---
GeForce 5500 FX 256 mb
Win XP SP2


A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram
Re: fog bug? [Re: XD1v0] #260709
04/13/09 06:27
04/13/09 06:27
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
Please dont spam the bug forum, its for bugs only. When you want to learn how to do fog and its not covered in the tutorial, then please ask in the shader forum. Im no shader expert but you could just check out the standard Gamestudio shaders for learning how fog is done, I believe they use a "DoFog" function from the shader library:

Out.Fog = DoFog(In.Pos);

Thank you for understanding.

Re: fog bug? [Re: Spirit] #260728
04/13/09 08:42
04/13/09 08:42
Joined: Jun 2008
Posts: 151
Ukraine
XD1v0 Offline OP
Member
XD1v0  Offline OP
Member

Joined: Jun 2008
Posts: 151
Ukraine
Now I understand, so if I want apply fog to entity i must change shader code, I thought that this is an bug.
Spirit thanks for the explanation laugh


A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram

Moderated by  Blink, Hummel, Superku 

Gamestudio download | 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