yes, I suspect so.
 
Regards,
 
Rene

________________________________

Van: [EMAIL PROTECTED] namens CG
Verzonden: vr 27-6-2008 4:32
Aan: OpenSceneGraph Users
Onderwerp: Re: [osg-users] manipulating vertices from a nodeloaded 
byReadNodeFile()


Hi,
 
Sorry for the off thread, if I can recover the vertex list, is it possible to 
create runtime crater (cause by explosion)? Any examples out there?

Regards,
Cg


________________________________

        Date: Thu, 26 Jun 2008 18:25:09 +0200
        From: [EMAIL PROTECTED]
        To: [email protected]
        Subject: Re: [osg-users] manipulating vertices from a node loaded 
byReadNodeFile()
        
        
        thanks for replying, but the problem is that the osg::Node* returned by 
ReadNodeFile() is not a osg::Geode().

________________________________

        From: [EMAIL PROTECTED] on behalf of Serge Lages
        Sent: Thu 6/26/2008 4:07 PM
        To: OpenSceneGraph Users
        Subject: Re: [osg-users] manipulating vertices from a node loaded 
byReadNodeFile()
        
        
        Hi Rene,
        
        From you geodes, take the drawables, cast them into geometries and 
recover the vertex list with getVertexArray.
        
        
        On Thu, Jun 26, 2008 at 3:56 PM, Bokhorst,Rene R. <[EMAIL PROTECTED]> 
wrote:
        

                Hey there,
                
                I've been browsing the mail archive to find the answer to my 
question but I haven't found anything at all. I basically want to manipulate 
the vertices of a model loaded by the osgDB::ReadNodeFile() function. 
ReadNodeFile() returns a osg::Node. I was hoping this might actually be a 
osg::Geode, but apparently it isn't.
                
                Reason I want to do this is because I have 1600 different 
building models. But all of these building models are already positioned in 
their correct position and rotation (instead of each building being built 
around 0,0,0). So basically if I load my 1600 models and all position them on 
0,0,0 I have a complete and perfectly aligned town. I want to move every 
building back to 0,0,0 so that I can re-use them. I've already used osg to find 
their position by finding the center of their bounding box. And now I want to 
substract that position from the vertices of every building and save them. 
Anyone know how to achieve this?
                
                Thank you in advance,
                
                Rene
                
                
                ----------------------------------------------------------------
                Op deze e-mail zijn de volgende voorwaarden van toepassing:
                
                http://www.fontys.nl/disclaimer
                
                The above disclaimer applies to this e-mail message.
                ----------------------------------------------------------------
                _______________________________________________
                osg-users mailing list
                [email protected]
                
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
                




        -- 
        Serge Lages
        http://www.tharsis-software.co m <http://www.tharsis-software.com/>  


________________________________

Always-on security tools provide safer ways to connect and share anywhere. Find 
out more. Windows Live <http://get.live.com/familysafety/overview>  


----------------------------------------------------------------
Op deze e-mail zijn de volgende voorwaarden van toepassing:

http://www.fontys.nl/disclaimer

The above disclaimer applies to this e-mail message.
----------------------------------------------------------------

<<winmail.dat>>

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to