Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Particles and fog?? #414033
12/21/12 13:28
12/21/12 13:28
Joined: May 2009
Posts: 5,365
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,365
Caucasus
I've noticed that particles are still visible throw the fog.. Played with "particle_mode", but I couldn't still fix this problem:

I have some workarounds in my head, but I wanted to know, is there a way to prevent particles be visible throw the fog??


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Particles and fog?? [Re: 3run] #414034
12/21/12 14:06
12/21/12 14:06
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
particles are rendered seperatly...
The only method that I know right now is using the red / green / blue values and 'fade' them to the fog color at high distances.
but this won't work for particles with the BRIGHT flag.
EDIT: and will only work if the particles are colored with their red / green / blue -values smirk

or you could use sprites.
not that fast but it'll work wink

Last edited by Kartoffel; 12/21/12 14:09.

POTATO-MAN saves the day! - Random
Re: Particles and fog?? [Re: Kartoffel] #414036
12/21/12 14:12
12/21/12 14:12
Joined: May 2009
Posts: 5,365
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,365
Caucasus
I know that particles are rendered separately (and I know that I could use sprite as well).. thank you anyway.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Particles and fog?? [Re: Kartoffel] #414038
12/21/12 14:25
12/21/12 14:25
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Originally Posted By: Kartoffel
the only method that I know right now is using the red / green / blue values and 'fade' them to the fog color at high distances


Very nice idea, but as they colorize the bitmap the particle won't get completely green or something, but "greenish" (if your fog is green). I would try to change the alpha value: calculate the fog-factor and multipliy it with your non-fogged alpha value.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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