Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  2 Questions on fog  (Read 495 times)
0 Members and 2 Guests are viewing this topic.
Offline Supamagier

JGO n00b
*

Posts: 17



« on: 2009-09-06 11:39:41 »

I have two questions about fog. Please help me out, if you can. Smiley

1) Is it possible to add 'more than 1 fog'? Like you can add light0, light1, etc, with light. Is the same possible for fog? So that you can create some kind of fog bank. If it isn't, how would I create such things otherwise?
2) You only can set the fog start and end, right? how would I put fog on the sides, so that you have a rectangle around which the fog is. If that isn't possible, how would you make the fog look all around, so that you see fog wherever you place the camera. (I would give you an example, but the only example I can think of is RuneScape HD.)

Thanks,

~Matt
Offline Riven
« League of Dukes »

JGO Kernel
*****

Posts: 5862
Medals: 255


Hand over your head.


« Reply #1 on: 2009-09-06 11:50:50 »

OpenGL Fog is an operation that reads the depthbuffer and calculates a blending operation for it, using the fog color.

You cannot have volumetric fog out of the box, unless you code it yourself.

Hi, appreciate more people! Σ ♥ = ¾

Learn how to award medals... and work your way up the social rankings
Offline Supamagier

JGO n00b
*

Posts: 17



« Reply #2 on: 2009-09-06 12:09:35 »

Okay, thanks.

~Matt
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.063 seconds with 20 queries.