[osg-users] fog

2008-06-22 Thread Peter Wraae Marino
hi users, i have tried to create a simple example using fog. As I understand it the start and end values define where the fog starts and ends relative to the camera? but not matter what values I use it doesn't effect my rendering. I seem to always get the same fog rendering. can someone exp

Re: [osg-users] fog

2008-06-22 Thread Raymond de Vries
Hi Peter, As the osg fog is a wrapper for the (fixed functionality) OpenGL fog, you can use the OpenGL docs for this. There you will see that the start and end values only make sense for the linear mode, not for exp or exp2. However, density does make sense for exp and exp2. Regards, good lu

Re: [osg-users] Fog problem

2008-07-10 Thread Robert Osfield
Hi Eric, What happens when you run: osgprecipitation lz.osg Robert. On Thu, Jul 10, 2008 at 11:22 AM, Eric ZAREMBA <[EMAIL PROTECTED]> wrote: > Hi, > > > > > > Since yesterday, I have a problem with fog. > > When I turn it one, my scene becomes black, even if I deactivate the > lighting. > >

Re: [osg-users] Fog problem

2008-07-10 Thread Eric ZAREMBA
origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Robert Osfield Envoyé : jeudi 10 juillet 2008 13:00 À : OpenSceneGraph Users Objet : Re: [osg-users] Fog problem Hi Eric, What happens when you run: osgprecipitation lz.osg Robert. On Thu, Jul 10, 2008 at 11:22 A

Re: [osg-users] Fog problem

2008-07-10 Thread Robert Osfield
On Thu, Jul 10, 2008 at 12:29 PM, Eric ZAREMBA <[EMAIL PROTECTED]> wrote: > Now, I think it is normal to obtain undefined result if I enable fog without > set the other attributes... But I still ask me why it worked until yesterday, > since I introduced precipitation two weeks ago! I can't answe

Re: [osg-users] Fog problem

2008-07-10 Thread Paul Martz
> Now, I think it is normal to obtain undefined result if I > enable fog without set the other attributes... If you enable fog, behavior is defined. In OpenGL, the defaults are: FOG_MODE is EXP FOG_DENSITY is 1.0 FOG_COLOR is 0,0,0,0 FOG_COORDINATE_SOURCE is FRAGMENT_DEPTH I don't believe

Re: [osg-users] Fog problem

2008-07-10 Thread Jean-Sébastien Guay
Hello Eric, Computers drive me crazy! good will be the retirment, I will breed rabits. I don't have any input into your specific problem, but I just wanted to let you know you made my day with that line! My co-workers liked it too. :-) J-S --

[osg-users] Fog and desired usage

2008-08-18 Thread brettwiesner
Hi, I just had a couple of questions about the desired usage of the fog state attribute. 1) What does it mean to have different fog states on different branches of the scene graph? Would this have any effect? 2) Is the desired usage to set the fog attribute on the root node? Thanks, Bret

Re: [osg-users] Fog and desired usage

2008-08-19 Thread Robert Osfield
Hi Brett, On Mon, Aug 18, 2008 at 10:05 PM, brettwiesner <[EMAIL PROTECTED]> wrote: > I just had a couple of questions about the desired usage of the fog state > attribute. > > 1) What does it mean to have different fog states on different branches of > the scene graph? Would this have any effect?

[osg-users] FOG: applying both kinds at the same time. How?

2009-04-10 Thread Allen Saucier
Hi, everyone!!javascript:emoticon(':)') I'm new to OSG and I am struggling with applying both linear and exponential types of fog. Would someone mind showing me what I'm doing wrong? Thx for the help! I really appreciate it. // Fog: Linear osg::ref_ptr m_ofgFogLinear = new osg::Fog();

Re: [osg-users] FOG: applying both kinds at the same time. How?

2009-04-10 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Allen Saucier Sent: Friday, April 10, 2009 10:27 AM To: osg-users@lists.openscenegraph.org Subject: [osg-users] FOG: applying both kinds at the same time. How? Hi, everyone!!java

Re: [osg-users] FOG: applying both kinds at the same time. How?

2009-04-10 Thread Robert Osfield
> > -Original Message- > From: osg-users-boun...@lists.openscenegraph.org > [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Allen > Saucier > Sent: Friday, April 10, 2009 10:27 AM > To: osg-users@lists.openscenegraph.org > Subject: [osg-users

Re: [osg-users] FOG: applying both kinds at the same time. How?

2009-04-13 Thread Allen Saucier
Thxs guys! I never knew that the Linear & Exponential fog were mutually exclusive. [Idea] But that explains why when I attempt to have both types of fog w/in the same state only the last fog type enabled is used. I was thinking about applying the fog types to 2 different matrices and putting t

Re: [osg-users] FOG: applying both kinds at the same time. How?

2009-04-13 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Allen Saucier Sent: Monday, April 13, 2009 9:17 AM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] FOG: applying both kinds at the same time. How? Thxs guys! I never knew that

Re: [osg-users] FOG: applying both kinds at the same time. How?

2009-04-13 Thread Allen Saucier
Write my own shader??? ha, ha,ha, ha ... that's a good one. What's a shader? [Embarassed] really, I've NO idea how to write one so the canned versions, I'll make do with. Thx... Tueller, Shayne R Civ... wrote: > Glad to help. > > The OpenGL drivers underneath OSG support different fog funct

Re: [osg-users] FOG: applying both kinds at the same time. How?

2009-04-13 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
er Sent: Monday, April 13, 2009 2:03 PM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] FOG: applying both kinds at the same time. How? Write my own shader??? ha, ha,ha, ha ... that's a good one. What's a shader? [Embarassed] really, I've NO idea how to write one s

Re: [osg-users] FOG: applying both kinds at the same time. How?

2009-04-17 Thread Allen Saucier
Thx everyone! I've got my stuff working now and I'm glad that I can only have 1 type of fog active. It makes my job easier. Allen -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=10356#10356 __