I want to set the wind direction and wind power in the snow/rain effect. I can't find a way how to do it. What kind of value do I have to put in osgParticle::PrecipitationEffect::setWind(osg::Vec3(x,y,z))? ... Thank you so much for letting me know.
2022년 7월 9일 토요일 오전 1시 35분 36초 UTC+9에 [email protected]님이 작성: > On Thursday, 7 July 2022 at 08:02:25 UTC+1 [email protected] wrote: > >> Hmm... why does setting wind in an osgParticle::PrecipitationEffect >> effect like snow or rain only apply once? Is there any other way to keep it >> applied continuously? >> > > What do you mean only applied once? It should work on all frame once set. > > >> Also... the effects don't seem to be drawn around me. >> > > No way to know whether it's an issue with your expectations or what you > are doing, or a possible issue with the effect. > > What does > > osgprecipitation lz.osgt > > Look like for you? Could post a screenshot of your own application. > > >> >> In my opinion, the EYE-POINT where the effects are drawn is not the >> center of my camera right now. >> > > The eye point is where the camera is located. > > >> So I looked at the code... >> It looks like you are setting it with the set/getViewMatrixAsLookAt( eye, >> center, up) functions... is that correct? >> > >> Also.. can you explain what the eye, center, up variables are? >> > > The convention used is identical to gluLookAt, have a look online for > documentation - there's 30 years of it out there. > > Cheers, > Robert. > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/d5a1801b-9556-4c32-b7c8-e41bc400535cn%40googlegroups.com.
