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 <[email protected]> On Behalf Of OpenSceneGraph Users Sent: Dienstag, 23. Juni 2020 10:03 To: OpenSceneGraph Users <[email protected]> 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 <[email protected] <javascript:> > On Behalf Of OpenSceneGraph Users Sent: Dienstag, 23. Juni 2020 09:02 To: OpenSceneGraph Users <[email protected] <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 <[email protected] <mailto:[email protected]> > On Behalf Of OpenSceneGraph Users Sent: Dienstag, 23. Juni 2020 04:21 To: OpenSceneGraph Users <[email protected] <mailto:[email protected]> > 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 [email protected] <mailto:[email protected]> . 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 [email protected] <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 [email protected] <mailto:[email protected]> . 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> .
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

