Re: [osg-users] Animated Models

2009-12-04 Thread Simon Hammett
2009/12/4 J.P. Delport jpdelp...@csir.co.za

 Hi,


 Paul Martz wrote:

 Danny Lesnik wrote:

 How can I create animations within OSG models (similar to cessnafire.osg
 sample scene).?
 for example, how this file was created?


 Look at the OSG file in a text editor and see what nodes it uses.
   -Paul


 Delta3D also has a particle system editor that you might be able to use.

 jp

 And the blender to osg exporter does animations:

http://projects.blender.org/projects/osgexport/

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


Re: [osg-users] Animated Models

2009-12-04 Thread Ulrich Hertlein
On 4/12/09 3:14 AM, Danny Lesnik wrote:
 And the second question: Can OSG view animated gifs as model textures? 

I haven't personally used this but the code is there so it should work.

You probably have to start the animation manually.  To do that you need to find 
the
respective image, dynamic_cast it to an ImageStream and (if successful) call 
play() on
that object.

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


Re: [osg-users] Animated Models

2009-12-04 Thread Danny Lesnik

Ulrich Hertlein wrote:
 On 4/12/09 3:14 AM, Danny Lesnik wrote:
 
  And the second question: Can OSG view animated gifs as model textures? 
  
 
 I haven't personally used this but the code is there so it should work.
 
 You probably have to start the animation manually.  To do that you need to 
 find the
 respective image, dynamic_cast it to an ImageStream and (if successful) 
 call play() on
 that object.
 
 /ulrich
 ___
 osg-users mailing list
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
  --
 Post generated by Mail2Forum


Hi Ulrich,

How can I find this respective  image?

Best regards,
Danny.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=20931#20931





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


Re: [osg-users] Animated Models

2009-12-04 Thread Ulrich Hertlein
On 4/12/09 10:46 PM, Danny Lesnik wrote:
 And the second question: Can OSG view animated gifs as model textures? 

 I haven't personally used this but the code is there so it should work.

 You probably have to start the animation manually.  To do that you need to 
 find the
 respective image, dynamic_cast it to an ImageStream and (if successful) 
 call play() on
 that object.
 
 Hi Ulrich,
 
 How can I find this respective  image?

You'll have to write a custom NodeVisitor.

This NV could collect all Images of type ImageStream or it could search for a 
specific
filename.  Have a look at the FindImageStreamsVisitor in 
examples/osgmovie/osgmovie.cpp
for an example.

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


[osg-users] Animated Models

2009-12-03 Thread Danny Lesnik
Hi,

How can I create animations within OSG models (similar to cessnafire.osg sample 
scene).?
for example, how this file was created? 

And the second question: Can OSG view animated gifs as model textures? 



Thank you!

Cheers,
Danny

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=20851#20851





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


Re: [osg-users] Animated Models

2009-12-03 Thread Paul Martz

Danny Lesnik wrote:

How can I create animations within OSG models (similar to cessnafire.osg sample 
scene).?
for example, how this file was created? 


Look at the OSG file in a text editor and see what nodes it uses.
   -Paul

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


Re: [osg-users] Animated Models

2009-12-03 Thread J.P. Delport

Hi,

Paul Martz wrote:

Danny Lesnik wrote:
How can I create animations within OSG models (similar to 
cessnafire.osg sample scene).?
for example, how this file was created? 


Look at the OSG file in a text editor and see what nodes it uses.
   -Paul


Delta3D also has a particle system editor that you might be able to use.

jp



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



--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.


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