Yes that's what I call "visible only faces"; the outside walls. The only difference is that I have one geometry object for each face now. But it meets the requirements now.
Once again, thanks for the amazingly fast and helpful messages today, Can 2008/10/23 Robert Osfield <[EMAIL PROTECTED]> > HI Can, > > If you can live with a fixed geometry, then recreate a new one when > required, then I'd recommend creating your own geometry for the boxes > and placing them into small number of large geometries. > > Given a static datasets you could even potentially just create the > outside walls of the boxes and use repeating texturing to make it look > like you have many boxes. > > W.r.t use of osg::Box + ShapeDrawable for rendering, this path is not > at all efficient, the only thing going for it is that its convenient. > ShapeDrawable is written purely for convinience, for performance > rendering your should roll your own geometry and place it in an > osg::Geometry. > > Robert. > > On Thu, Oct 23, 2008 at 3:12 PM, Can T. Oguz <[EMAIL PROTECTED]> wrote: > > For my case, once a box is piled, there's no need to move the object, I > can > > even regenerate the whole entity if a change is necessary (this is a CAD > > app. not a game). But I'm sure if someone needs both optimization and > > manipulation, there will be a little bit pain, he/she'll have to traverse > to > > the point list and change the values. > > > > By the way, I've been experiencing a strange situation here. Now I have > two > > versions, both optimized and PAT free. The one with the Box shapes has > twice > > as long Cull & Draw & GPU cycles; so I prefer the "visible faces only" > > version for now. But, if I don't run the osgUtil::Optimizer after > > regeneration, the visible only version has changing texture colors from > pale > > to bright every now and then (that's the kind of behaviour when you don't > > set the 1,1,1,1 color for a textured face) > > > > Any ideas ? > > > > > > 2008/10/23 Mike Greene <[EMAIL PROTECTED]> > >> > >> What happens if you need to periodically update size, position, > >> orientation of objects? Without using a PAT and putting everything in a > >> single geometry is this possible? > >> > >> Mike Greene > >> _______________________________________________ > >> osg-users mailing list > >> [email protected] > >> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > _______________________________________________ > > osg-users mailing list > > [email protected] > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

