<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Malgun Gothic";
panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
{font-family:"\@Malgun Gothic";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Hi, <o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>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) .<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>Simply adapt the fog-color during the update-traversal.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>Cheers<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>Sebastian <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US>From:</span></b><span lang=EN-US> osg-users <osg-users-bounces@lists.openscenegraph.org> <b>On Behalf Of </b>OpenSceneGraph Users<br><b>Sent:</b> Dienstag, 23. Juni 2020 09:02<br><b>To:</b> OpenSceneGraph Users <osg-users@googlegroups.com><br><b>Subject:</b> Re: [osg-users] I want to darken the osg::fog at night too, what should I do?<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>hi,<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal>I don’t change the color to make it dark<o:p></o:p></p></div><div><p class=MsoNormal>I want to express that it darkens naturally as time passes by the influence of light.<o:p></o:p></p></div><p class=MsoNormal><br><br>2020<span style='font-family:"Malgun Gothic",sans-serif'>년</span> 6<span style='font-family:"Malgun Gothic",sans-serif'>월</span> 23<span style='font-family:"Malgun Gothic",sans-serif'>일</span> <span style='font-family:"Malgun Gothic",sans-serif'>화요일</span> <span style='font-family:"Malgun Gothic",sans-serif'>오후</span> 3<span style='font-family:"Malgun Gothic",sans-serif'>시</span> 55<span style='font-family:"Malgun Gothic",sans-serif'>분</span> 40<span style='font-family:"Malgun Gothic",sans-serif'>초</span> UTC+9, OpenSceneGraph Users <span style='font-family:"Malgun Gothic",sans-serif'>님의</span> <span style='font-family:"Malgun Gothic",sans-serif'>말</span>:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Hi, ?<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>Simply set the fog-color to a darker color?</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span lang=EN-US>From:</span></b><span lang=EN-US> osg-users <<a href="javascript:" target="_blank">osg-user...@lists.openscenegraph.org</a>> <b>On Behalf Of </b>OpenSceneGraph Users<br><b>Sent:</b> Dienstag, 23. Juni 2020 04:21<br><b>To:</b> OpenSceneGraph Users <<a href="javascript:" target="_blank">osg-...@googlegroups.com</a>><br><b>Subject:</b> Re: [osg-users] I want to darken the osg::fog at night too, what should I do?</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>plz.. help.. I want to darken fog at night .<br><br>2020<span style='font-family:"Malgun Gothic",sans-serif'>년</span> 5<span style='font-family:"Malgun Gothic",sans-serif'>월</span> 29<span style='font-family:"Malgun Gothic",sans-serif'>일</span> <span style='font-family:"Malgun Gothic",sans-serif'>금요일</span> <span style='font-family:"Malgun Gothic",sans-serif'>오전</span> 4<span style='font-family:"Malgun Gothic",sans-serif'>시</span> 23<span style='font-family:"Malgun Gothic",sans-serif'>분</span> 1<span style='font-family:"Malgun Gothic",sans-serif'>초</span> UTC+9, DAE WOO Ryu <span style='font-family:"Malgun Gothic",sans-serif'>님의</span> <span style='font-family:"Malgun Gothic",sans-serif'>말</span>:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'><div><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:12.0pt;font-family:"Verdana",sans-serif;color:black'>I want to darken the osg::<b><span style='background:#FFFF99'>fog</span></b> at night too, what should I do?<br><br>There seems to be a simple way, but I can't find it.<br><br>I need help..</span><o:p></o:p></p></div></div></div></blockquote></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>-- <br>You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br>To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank">osg-...@googlegroups.com</a>.<br>To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/e017cee5-49e8-4190-89d4-c5e86e18afe8o%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/osg-users/e017cee5-49e8-4190-89d4-c5e86e18afe8o%40googlegroups.com</a>.<o:p></o:p></p></div></div></blockquote></div></div><p class=MsoNormal>-- <br>You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br>To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br>To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/6d379ba6-d5c8-4df7-a39b-5a9bf4325b3co%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/6d379ba6-d5c8-4df7-a39b-5a9bf4325b3co%40googlegroups.com</a>.<o:p></o:p></p></div></body></html>