[osg-users] [Newbie]: Can`t update Ortho2D camera after resize

2009-12-19 Thread Karl Karsten
Hello, I am trying to find the right way to update my 2D camera after a window resize. I check all the mailing list but I can't find the trick. Maybe somebody can help. I try the followings 1. Setting up the camera: ... camera2d = new osg::Camera;

[osg-users] [Newbie]: Best way to load huge amount of models

2009-12-13 Thread Karl Karsten
Hello, I am just experimenting to load huge amount of models. I have a set of ~50.000+ single models (parts) stored on disk in a folder structure in .osg or .ive format, converted from a cad system format. To each of the models I have a transformation matrix to position the model in the scene.

[osg-users] [Newbie]: Cannot build OpenVRML; regex.a is missing

2008-12-20 Thread Karl Karsten
Hello, I am following http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/Linux to build VRML plugin Normally I am using Eclipse CDT4 - MingW environment on my Windows PC. But for this task I have installed cygwin with all needed packages to build the three needed libs:

Re: [osg-users] [Newbie]: PolytopeIntersector in WINDOW CoordinateFrame is not working as expected

2008-11-19 Thread Karl Karsten
Hello Jean-Sébastien, it no big deal for me, coding around OpenSceneGraph is my hobby ... ... to keep a bit on track and good for my brain. A made some other code to select geometry objects within a box. The scenario is that I place 1.000 cows.osg (transform + scale) in a world cube of

Re: [osg-users] [Newbie]: PolytopeIntersector in WINDOW CoordinateFrame is not working as expected

2008-11-19 Thread Karl Karsten
Hello Peter, Combine your two approaches: First check the planes of your Polytope against the bounding volumes of your nodes. Do not use intersect but check if the volume is properly on the inner side of the plane. If this test passes for all planes you don't need to generate all the

[osg-users] [Newbie]: PolytopeIntersector in WINDOW CoordinateFrame is not working as expected

2008-11-18 Thread Karl Karsten
Hello, I am following the osgkeyboardmouse example and would like to implement a selection by a rect (like rubberbanding). I thought PolytopeIntersector in CoordinateFrame WINDOW is the right choice for it. Hmm, but my problem is that I will get always intersection when a model is loaded

Re: [osg-users] [Newbie]: PolytopeIntersector in WINDOW CoordinateFrame is not working as expected

2008-11-18 Thread Karl Karsten
Hello Jean-Sébastien, hey, you are a hero ... It's working, fine. Do you have any experience in terms of performance when expanding a rect (dragging like a rubberband) over a huge number of models (ex. hundreds or thousands of cow.osg) and computing the intersection in a EventHandler

[osg-users] Picking (Intersection) inside a ClipNodeBox, HowTo?

2008-10-04 Thread Karl Karsten
Hello, I am experimenting around a ClipNodeBox and selection by picking of Nodes inside this box. Is there a elegant way to limit the computeIntersections(ea.getX(), ea.getY(), intersections, 0x) method to take my ClipNodeBox into account? I try to do it by my own by using