Hello, On Tue, 2012-02-07 at 17:45 +0100, Florent Berthaut wrote: > Hi everyone, > > > We are trying to load large VRML (or OBJ) models with OpenSG 2. > > We don't know if this is an export or loading problem but either OpenSG > crashes while loading, or models load but fps drop, making the system > unusable, whereas the same model loads perfectly in Ogre, or Meshlab. > Furthermore, textures are not applied ... > We simply use source code from the tutorials.
if you can send the code offline it would be a great help, so I'm sure what you are using, my test programs might be off. If it is just a simple tutorial, which one ? > In particular, we work with this model : > http://sketchup.google.com/3dwarehouse/details?mid=83b612b13966d0b61bbbde9ceef87cd9&prevstart=0 > > (exported to vrml and obj). I see the texture problem when exporting from meshlab to vrml, the obj export unfortunately crashes. But if I reimport the vrml model into meshlab it also misses textures, so there seems to be a problem with the vrml export from meshlab. If I look at the resulting vrml file, it just contains a single geometry with a single texture, so something is not quite right during the export. > Does anyone have an idea on this problem ? > Is anyone using large models in OpenSG2 ? Which format ? For this model you can load the collada (dae) file directly into OpenSG and it should work with all the textures. The general problem is that though the geometry is small, due to assigning multiple textures to a single geometry OpenSG will have to split the collada geometries into multiple instances, one for each texture (I see around 3000 nodes for the resulting tree). This kind of node heavy structures are still a weak point of OpenSG. I'll see if there are some straight forward optimization, but the ideal solution would be to build a texture atlas and come back to only use a single geometry as defined in the collada file. kind regards gerrit ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users