Hi guys.. I have some questions, can you help me?

53 views
Skip to first unread message

newli...@gmail.com

unread,
Jul 7, 2022, 3:02:25 AM7/7/22
to OpenSceneGraph Users
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?

Also... the effects don't seem to be drawn around me.

In my opinion, the EYE-POINT where the effects are drawn is not the center of my camera right now.
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?

please. 
thank you.

Robert Osfield

unread,
Jul 8, 2022, 12:35:36 PM7/8/22
to OpenSceneGraph Users
On Thursday, 7 July 2022 at 08:02:25 UTC+1 newli...@gmail.com 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.

newli...@gmail.com

unread,
Jul 13, 2022, 3:54:22 AM7/13/22
to OpenSceneGraph Users
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에 robert....@gmail.com님이 작성:
Reply all
Reply to author
Forward
0 new messages