Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT - a 3d engine for Java
»
Support
»
Atmospheric haze
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Atmospheric haze (Read 2687 times)
AW999
int
Posts: 57
Atmospheric haze
«
on:
December 21, 2009, 12:11:19 pm »
Since the built-in fog effect apparently works well only when the fog is 'black' (according to one of the files or wiki articles), what's the best way to produce atmospheric haze - i.e., making distant parts of the landscape look bluer?
Logged
EgonOlsen
Administrator
quad
Posts: 12298
Re: Atmospheric haze
«
Reply #1 on:
December 21, 2009, 12:29:42 pm »
...using which renderer?
Logged
AW999
int
Posts: 57
Re: Atmospheric haze
«
Reply #2 on:
December 21, 2009, 08:11:00 pm »
Quote from: EgonOlsen on December 21, 2009, 12:29:42 pm
...using which renderer?
Well, ideally I'd need my applet to be as widely compatible as possible, so presumably all of the rendering modes.
Logged
EgonOlsen
Administrator
quad
Posts: 12298
Re: Atmospheric haze
«
Reply #3 on:
December 21, 2009, 08:53:52 pm »
I see. The limitation of the fading color is valid only for the per polygon fog mode, which is default but actually outdated. You can enable per pixel fog for both renderers with any target color you like. For the hardware renderers, there's no problem with that at all. For the software render, the fog is applied in a post processing step based on the data in the depth buffer. This costs some performance (but benefits from multi core machines) and it has a problem with transparent objects. If this applies to your application, have a look at
http://www.jpct.net/forum2/index.php/topic,1436.0.html
for solution.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT - a 3d engine for Java
»
Support
»
Atmospheric haze