Re: [osg-users] cessnafire.osg...

2008-07-08 Thread J.P. Delport
Hi,

see here:
http://article.gmane.org/gmane.comp.graphics.openscenegraph.user/24544

Also, the gmane interface is the best way to search the archives.
http://news.gmane.org/gmane.comp.graphics.openscenegraph.user

rgds
jp


Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC wrote:
 Robert, 
 
 I understand that you have to move the particle system out in the world
 space and make it local to the moving model, but how do you get at the
 particle system inside the file in the first place? That, to me, is the big
 question. If I read between the lines in your response, I get the impression
 that it can't be done and that I must define my own particle system
 explicitly. 
 
 If it is possible to isolate the particle system out of the cessnafire.osg
 file, I would like to see a code snippet that does this...
 
 -Shayne
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Robert
 Osfield
 Sent: Monday, July 07, 2008 11:49 AM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] cessnafire.osg...
 
 Hi Shayne,
 
 You'll can't put a self contained particle system with file and then
 load it and transform it around the world and expect it to
 automagicaly work as you want.  What you have to do to move the
 particle system out in the world space, and have the emiter local to
 the moving object.
 
 Robert.
 
 2008/7/7 Tueller,  Shayne R Civ USAF AFMC 519 SMXS/MXDEC
 [EMAIL PROTECTED]:
 Robert,

 I've attempted to look at the archives but have been unsuccessful in
 finding
 anything that will help. Perhaps I'm searching for the wrong thing.

 I've seen examples of transforming particles explicitly but I haven't
 found
 anything that gives an example on how to transform particles that are
 implicitly defined in an osg file like the cessnafire.osg example. I read
 this file into a node and then what? How do I get at the particle part to
 transform it?

 I did look at the osgparticleeffect.cpp file and it's still unclear on how
 I
 would transform particles that are implicitly defined in the
 cessnafire.osg
 file. The osg files in the osgparticleeffect code that are read in appear
 to
 be geometry and image only so this really doesn't help in answering my
 question.

 -Shayne



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Robert
 Osfield
 Sent: Monday, July 07, 2008 10:04 AM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] cessnafire.osg...

 Hi Shayne,

 Have a look through the archives on this topic, much of the
 discussions goes way back.

 Also have a look at the osgparticleeffects code block, it has a code
 path that handles moving models and particles systems.

 Robert.

 2008/7/7 Tueller,  Shayne R Civ USAF AFMC 519 SMXS/MXDEC
 [EMAIL PROTECTED]:
 Thanks for the link. While I appreciate the info, it doesn't really
 address
 my original question about transforming the particle emitter that is
 defined
 in the cessnafire.osg file. After reading the cessnafire.osg file into a
 node, I add this node to a MatrixTransform but only the geometry is
 affected. The fire/smoke part is NOT affected by the transform
 whatsoever.
 Anyone else caring to chime in on this? Perhaps it can't be done...

 -Shayne

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of ???
 Sent: Thursday, July 03, 2008 8:09 PM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] cessnafire.osg...

  I'm assuming that the fire/smoke is modeled using osgParticle…

  I think so! You can take a look
 http://faculty.nps.edu/jasullivan/osgtutorials/osgParticle.htm




 在2008-07-04 07:10:57,Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
 [EMAIL PROTECTED] 写道:


I have a simple/silly question regarding cessnafire.osg.



I can load this into a node and display it without trouble,
 however,
 when I apply a MatrixTransform to the node, the geometry is changed but
 the
 fire/smoke animation doesn't follow the geometry. I'm assuming that the
 fire/smoke is modeled using osgParticle…



My question is, is what do I need to do to have fire/smoke undergo
 the same transformation as the geometry so that it moves with the
 airplane?
 Do I need to use the Texture matrix?



Any help here would be welcome…



Thanks,

-Shayne



 

 网易首款免费3D网游天下2,6月6日激情公测 http://tx2.163.com/fab.html

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] cessnafire.osg...

2008-07-07 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
Thanks for the link. While I appreciate the info, it doesn't really address
my original question about transforming the particle emitter that is defined
in the cessnafire.osg file. After reading the cessnafire.osg file into a
node, I add this node to a MatrixTransform but only the geometry is
affected. The fire/smoke part is NOT affected by the transform whatsoever.

Anyone else caring to chime in on this? Perhaps it can't be done...

-Shayne

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ???
Sent: Thursday, July 03, 2008 8:09 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] cessnafire.osg...

 I’m assuming that the fire/smoke is modeled using osgParticle…
 
  I think so! You can take a look
http://faculty.nps.edu/jasullivan/osgtutorials/osgParticle.htm
 
 
 

在2008-07-04 07:10:57,Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
[EMAIL PROTECTED] 写道:


I have a simple/silly question regarding cessnafire.osg. 

 

I can load this into a node and display it without trouble, however,
when I apply a MatrixTransform to the node, the geometry is changed but the
fire/smoke animation doesn’t follow the geometry. I’m assuming that the
fire/smoke is modeled using osgParticle…

 

My question is, is what do I need to do to have fire/smoke undergo
the same transformation as the geometry so that it moves with the airplane?
Do I need to use the Texture matrix?

 

Any help here would be welcome…

 

Thanks,

-Shayne





网易首款免费3D网游“天下2”,6月6日激情公测 http://tx2.163.com/fab.html 


smime.p7s
Description: S/MIME cryptographic signature
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] cessnafire.osg...

2008-07-07 Thread Robert Osfield
Hi Shayne,

Have a look through the archives on this topic, much of the
discussions goes way back.

Also have a look at the osgparticleeffects code block, it has a code
path that handles moving models and particles systems.

Robert.

2008/7/7 Tueller,  Shayne R Civ USAF AFMC 519 SMXS/MXDEC
[EMAIL PROTECTED]:
 Thanks for the link. While I appreciate the info, it doesn't really address
 my original question about transforming the particle emitter that is defined
 in the cessnafire.osg file. After reading the cessnafire.osg file into a
 node, I add this node to a MatrixTransform but only the geometry is
 affected. The fire/smoke part is NOT affected by the transform whatsoever.

 Anyone else caring to chime in on this? Perhaps it can't be done...

 -Shayne

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of ???
 Sent: Thursday, July 03, 2008 8:09 PM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] cessnafire.osg...

  I'm assuming that the fire/smoke is modeled using osgParticle…

  I think so! You can take a look
 http://faculty.nps.edu/jasullivan/osgtutorials/osgParticle.htm




 在2008-07-04 07:10:57,Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
 [EMAIL PROTECTED] 写道:


I have a simple/silly question regarding cessnafire.osg.



I can load this into a node and display it without trouble, however,
 when I apply a MatrixTransform to the node, the geometry is changed but the
 fire/smoke animation doesn't follow the geometry. I'm assuming that the
 fire/smoke is modeled using osgParticle…



My question is, is what do I need to do to have fire/smoke undergo
 the same transformation as the geometry so that it moves with the airplane?
 Do I need to use the Texture matrix?



Any help here would be welcome…



Thanks,

-Shayne



 

 网易首款免费3D网游天下2,6月6日激情公测 http://tx2.163.com/fab.html

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] cessnafire.osg...

2008-07-07 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
Robert,

I've attempted to look at the archives but have been unsuccessful in finding
anything that will help. Perhaps I'm searching for the wrong thing.

I've seen examples of transforming particles explicitly but I haven't found
anything that gives an example on how to transform particles that are
implicitly defined in an osg file like the cessnafire.osg example. I read
this file into a node and then what? How do I get at the particle part to
transform it?

I did look at the osgparticleeffect.cpp file and it's still unclear on how I
would transform particles that are implicitly defined in the cessnafire.osg
file. The osg files in the osgparticleeffect code that are read in appear to
be geometry and image only so this really doesn't help in answering my
question.

-Shayne



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Monday, July 07, 2008 10:04 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] cessnafire.osg...

Hi Shayne,

Have a look through the archives on this topic, much of the
discussions goes way back.

Also have a look at the osgparticleeffects code block, it has a code
path that handles moving models and particles systems.

Robert.

2008/7/7 Tueller,  Shayne R Civ USAF AFMC 519 SMXS/MXDEC
[EMAIL PROTECTED]:
 Thanks for the link. While I appreciate the info, it doesn't really
address
 my original question about transforming the particle emitter that is
defined
 in the cessnafire.osg file. After reading the cessnafire.osg file into a
 node, I add this node to a MatrixTransform but only the geometry is
 affected. The fire/smoke part is NOT affected by the transform whatsoever.

 Anyone else caring to chime in on this? Perhaps it can't be done...

 -Shayne

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of ???
 Sent: Thursday, July 03, 2008 8:09 PM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] cessnafire.osg...

  I'm assuming that the fire/smoke is modeled using osgParticle…

  I think so! You can take a look
 http://faculty.nps.edu/jasullivan/osgtutorials/osgParticle.htm




 在2008-07-04 07:10:57,Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
 [EMAIL PROTECTED] 写道:


I have a simple/silly question regarding cessnafire.osg.



I can load this into a node and display it without trouble,
however,
 when I apply a MatrixTransform to the node, the geometry is changed but
the
 fire/smoke animation doesn't follow the geometry. I'm assuming that the
 fire/smoke is modeled using osgParticle…



My question is, is what do I need to do to have fire/smoke undergo
 the same transformation as the geometry so that it moves with the
airplane?
 Do I need to use the Texture matrix?



Any help here would be welcome…



Thanks,

-Shayne



 

 网易首款免费3D网游天下2,6月6日激情公测 http://tx2.163.com/fab.html

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


smime.p7s
Description: S/MIME cryptographic signature
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] cessnafire.osg...

2008-07-07 Thread Robert Osfield
Hi Shayne,

You'll can't put a self contained particle system with file and then
load it and transform it around the world and expect it to
automagicaly work as you want.  What you have to do to move the
particle system out in the world space, and have the emiter local to
the moving object.

Robert.

2008/7/7 Tueller,  Shayne R Civ USAF AFMC 519 SMXS/MXDEC
[EMAIL PROTECTED]:
 Robert,

 I've attempted to look at the archives but have been unsuccessful in finding
 anything that will help. Perhaps I'm searching for the wrong thing.

 I've seen examples of transforming particles explicitly but I haven't found
 anything that gives an example on how to transform particles that are
 implicitly defined in an osg file like the cessnafire.osg example. I read
 this file into a node and then what? How do I get at the particle part to
 transform it?

 I did look at the osgparticleeffect.cpp file and it's still unclear on how I
 would transform particles that are implicitly defined in the cessnafire.osg
 file. The osg files in the osgparticleeffect code that are read in appear to
 be geometry and image only so this really doesn't help in answering my
 question.

 -Shayne



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Robert
 Osfield
 Sent: Monday, July 07, 2008 10:04 AM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] cessnafire.osg...

 Hi Shayne,

 Have a look through the archives on this topic, much of the
 discussions goes way back.

 Also have a look at the osgparticleeffects code block, it has a code
 path that handles moving models and particles systems.

 Robert.

 2008/7/7 Tueller,  Shayne R Civ USAF AFMC 519 SMXS/MXDEC
 [EMAIL PROTECTED]:
 Thanks for the link. While I appreciate the info, it doesn't really
 address
 my original question about transforming the particle emitter that is
 defined
 in the cessnafire.osg file. After reading the cessnafire.osg file into a
 node, I add this node to a MatrixTransform but only the geometry is
 affected. The fire/smoke part is NOT affected by the transform whatsoever.

 Anyone else caring to chime in on this? Perhaps it can't be done...

 -Shayne

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of ???
 Sent: Thursday, July 03, 2008 8:09 PM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] cessnafire.osg...

  I'm assuming that the fire/smoke is modeled using osgParticle…

  I think so! You can take a look
 http://faculty.nps.edu/jasullivan/osgtutorials/osgParticle.htm




 在2008-07-04 07:10:57,Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
 [EMAIL PROTECTED] 写道:


I have a simple/silly question regarding cessnafire.osg.



I can load this into a node and display it without trouble,
 however,
 when I apply a MatrixTransform to the node, the geometry is changed but
 the
 fire/smoke animation doesn't follow the geometry. I'm assuming that the
 fire/smoke is modeled using osgParticle…



My question is, is what do I need to do to have fire/smoke undergo
 the same transformation as the geometry so that it moves with the
 airplane?
 Do I need to use the Texture matrix?



Any help here would be welcome…



Thanks,

-Shayne



 

 网易首款免费3D网游天下2,6月6日激情公测 http://tx2.163.com/fab.html

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] cessnafire.osg...

2008-07-07 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
Robert, 

I understand that you have to move the particle system out in the world
space and make it local to the moving model, but how do you get at the
particle system inside the file in the first place? That, to me, is the big
question. If I read between the lines in your response, I get the impression
that it can't be done and that I must define my own particle system
explicitly. 

If it is possible to isolate the particle system out of the cessnafire.osg
file, I would like to see a code snippet that does this...

-Shayne

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Monday, July 07, 2008 11:49 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] cessnafire.osg...

Hi Shayne,

You'll can't put a self contained particle system with file and then
load it and transform it around the world and expect it to
automagicaly work as you want.  What you have to do to move the
particle system out in the world space, and have the emiter local to
the moving object.

Robert.

2008/7/7 Tueller,  Shayne R Civ USAF AFMC 519 SMXS/MXDEC
[EMAIL PROTECTED]:
 Robert,

 I've attempted to look at the archives but have been unsuccessful in
finding
 anything that will help. Perhaps I'm searching for the wrong thing.

 I've seen examples of transforming particles explicitly but I haven't
found
 anything that gives an example on how to transform particles that are
 implicitly defined in an osg file like the cessnafire.osg example. I read
 this file into a node and then what? How do I get at the particle part to
 transform it?

 I did look at the osgparticleeffect.cpp file and it's still unclear on how
I
 would transform particles that are implicitly defined in the
cessnafire.osg
 file. The osg files in the osgparticleeffect code that are read in appear
to
 be geometry and image only so this really doesn't help in answering my
 question.

 -Shayne



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Robert
 Osfield
 Sent: Monday, July 07, 2008 10:04 AM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] cessnafire.osg...

 Hi Shayne,

 Have a look through the archives on this topic, much of the
 discussions goes way back.

 Also have a look at the osgparticleeffects code block, it has a code
 path that handles moving models and particles systems.

 Robert.

 2008/7/7 Tueller,  Shayne R Civ USAF AFMC 519 SMXS/MXDEC
 [EMAIL PROTECTED]:
 Thanks for the link. While I appreciate the info, it doesn't really
 address
 my original question about transforming the particle emitter that is
 defined
 in the cessnafire.osg file. After reading the cessnafire.osg file into a
 node, I add this node to a MatrixTransform but only the geometry is
 affected. The fire/smoke part is NOT affected by the transform
whatsoever.

 Anyone else caring to chime in on this? Perhaps it can't be done...

 -Shayne

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of ???
 Sent: Thursday, July 03, 2008 8:09 PM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] cessnafire.osg...

  I'm assuming that the fire/smoke is modeled using osgParticle…

  I think so! You can take a look
 http://faculty.nps.edu/jasullivan/osgtutorials/osgParticle.htm




 在2008-07-04 07:10:57,Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
 [EMAIL PROTECTED] 写道:


I have a simple/silly question regarding cessnafire.osg.



I can load this into a node and display it without trouble,
 however,
 when I apply a MatrixTransform to the node, the geometry is changed but
 the
 fire/smoke animation doesn't follow the geometry. I'm assuming that the
 fire/smoke is modeled using osgParticle…



My question is, is what do I need to do to have fire/smoke undergo
 the same transformation as the geometry so that it moves with the
 airplane?
 Do I need to use the Texture matrix?



Any help here would be welcome…



Thanks,

-Shayne



 

 网易首款免费3D网游天下2,6月6日激情公测 http://tx2.163.com/fab.html

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


smime.p7s
Description: S/MIME cryptographic signature
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http

Re: [osg-users] cessnafire.osg...

2008-07-07 Thread Jean-Sébastien Guay

Hi Shayne,


If it is possible to isolate the particle system out of the cessnafire.osg
file, I would like to see a code snippet that does this...


Anytime you want to find a node in the scene graph, you probably need to 
should make a node visitor. Looks like ParticleEffect is a subclass of 
osg::Group, so you'll have to override the accept(osg::Group group) 
method and try to dynamic_castosgParticle::ParticleEffect*(group) and 
then do what you want with it.


Hope this helps,

J-S
--
__
Jean-Sebastien Guay[EMAIL PROTECTED]
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] cessnafire.osg...

2008-07-03 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
I have a simple/silly question regarding cessnafire.osg. 

 

I can load this into a node and display it without trouble, however, when I
apply a MatrixTransform to the node, the geometry is changed but the
fire/smoke animation doesn't follow the geometry. I'm assuming that the
fire/smoke is modeled using osgParticle.

 

My question is, is what do I need to do to have fire/smoke undergo the same
transformation as the geometry so that it moves with the airplane? Do I need
to use the Texture matrix?

 

Any help here would be welcome.

 

Thanks,

-Shayne



smime.p7s
Description: S/MIME cryptographic signature
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] cessnafire.osg...

2008-07-03 Thread 浣曚紵
 I’m assuming that the fire/smoke is modeled using osgParticle…
 
  I think so! You can take a look 
http://faculty.nps.edu/jasullivan/osgtutorials/osgParticle.htm
 
 
 

在2008-07-04 07:10:57,Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC [EMAIL 
PROTECTED] 写道:


I have a simple/silly question regarding cessnafire.osg. 

 

I can load this into a node and display it without trouble, however, when I 
apply a MatrixTransform to the node, the geometry is changed but the fire/smoke 
animation doesn’t follow the geometry. I’m assuming that the fire/smoke is 
modeled using osgParticle…

 

My question is, is what do I need to do to have fire/smoke undergo the same 
transformation as the geometry so that it moves with the airplane? Do I need to 
use the Texture matrix?

 

Any help here would be welcome…

 

Thanks,

-Shayne___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org