Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
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
3 registered members (VoroneTZ, AndrewAMD, Akow), 1,481 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 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 | 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