[osg-users] I want to darken the osg::fog at night too, what should I do?

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Tue Jun 23 01:30:32 PDT 2020


Hi, 

 

Yes, in FFP they don’t interact. If you want some Light+Fog interaction you need to write a shader.

Fog is simply a color “added” with respect to the distance from the viewpoint

 

Cheers

Sebastian 

 

From: osg-users <osg-users-bounces at lists.openscenegraph.org> On Behalf Of OpenSceneGraph Users
Sent: Dienstag, 23. Juni 2020 10:03
To: OpenSceneGraph Users <osg-users at googlegroups.com>
Subject: Re: [osg-users] I want to darken the osg::fog at night too, what should I do?

 

hi, Sebastian

 

Is fog operating independently of light?

 

Cheers.



2020년 6월 23일 화요일 오후 4시 47분 48초 UTC+9, OpenSceneGraph Users 님의 말:

Hi, 

 

As there is no concept of day/night in OSG you need to adapt the color based on the time passed (you can use the osg-time for this or use a separate timer) .

Simply adapt the fog-color during the update-traversal.

 

Cheers

Sebastian 

 

From: osg-users <osg-user... at lists.openscenegraph.org <javascript:> > On Behalf Of OpenSceneGraph Users
Sent: Dienstag, 23. Juni 2020 09:02
To: OpenSceneGraph Users <osg-... at googlegroups.com <javascript:> >
Subject: Re: [osg-users] I want to darken the osg::fog at night too, what should I do?

 

hi,

 

I don’t change the color to make it dark

I want to express that it darkens naturally as time passes by the influence of light.



2020년 6월 23일 화요일 오후 3시 55분 40초 UTC+9, OpenSceneGraph Users 님의 말:

Hi, ?

 

Simply set the fog-color to a darker color?

 

From: osg-users <osg-user... at lists.openscenegraph.org <mailto:osg-user... at lists.openscenegraph.org> > On Behalf Of OpenSceneGraph Users
Sent: Dienstag, 23. Juni 2020 04:21
To: OpenSceneGraph Users <osg-... at googlegroups.com <mailto:osg-... at googlegroups.com> >
Subject: Re: [osg-users] I want to darken the osg::fog at night too, what should I do?

 

plz.. help.. I want to darken fog at night .

2020년 5월 29일 금요일 오전 4시 23분 1초 UTC+9, DAE WOO Ryu 님의 말:

I want to darken the osg::fog at night too, what should I do?

There seems to be a simple way, but I can't find it.

I need help..

-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-... at googlegroups.com <mailto:osg-... at googlegroups.com> .
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/e017cee5-49e8-4190-89d4-c5e86e18afe8o%40googlegroups.com <https://groups.google.com/d/msgid/osg-users/e017cee5-49e8-4190-89d4-c5e86e18afe8o%40googlegroups.com?utm_medium=email&utm_source=footer> .

-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-... at googlegroups.com <javascript:> .
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/6d379ba6-d5c8-4df7-a39b-5a9bf4325b3co%40googlegroups.com <https://groups.google.com/d/msgid/osg-users/6d379ba6-d5c8-4df7-a39b-5a9bf4325b3co%40googlegroups.com?utm_medium=email&utm_source=footer> .

-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com <mailto:osg-users+unsubscribe at googlegroups.com> .
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/f069bfed-dc36-4540-921b-99417208d2f1o%40googlegroups.com <https://groups.google.com/d/msgid/osg-users/f069bfed-dc36-4540-921b-99417208d2f1o%40googlegroups.com?utm_medium=email&utm_source=footer> .

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200623/2beff5b4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5593 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200623/2beff5b4/attachment.bin>


More information about the osg-users mailing list