Re: [osg-users] Draw line in 3D screen

2012-01-12 Thread Lalit Manchwari
Hi, Thks Robert and Shayne I solve my problem with your direction. Cheers, Lalit -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44767#44767 ___ osg-users mailing list

Re: [osg-users] Draw line in 3D screen

2012-01-09 Thread Lalit Manchwari
Dear Robert: Thanks for input. I am trying to re-phrase my question. I have loaded a 3D data (X,Y,Z) on screen and can see these points as in screenshot_1. Also, I can, using mouse, draw line through these points (also shown.) However, if I want to draw a line as shown in screenshot_2, I am

Re: [osg-users] Draw line in 3D screen

2012-01-09 Thread Lalit Manchwari
Dear Shayne I use polytope to pick the 3D coordinate of data. …….. osg::ref_ptrosgUtil::PolytopeIntersector picker; picker = new osgUtil::PolytopeIntersector(osgUtil::Intersector::WINDOW, x-w, y-h, x+w, y+h ); osgUtil::IntersectionVisitor iv( picker ); viewer-getCamera()-accept( iv );

[osg-users] setUseVertexBufferObjects(..) create problem in osg 3.0.1

2012-01-04 Thread Lalit Manchwari
Hi, I have written a program using visual studio 2008 and osg 2.8.5. In this program I was using geometry-setUseDisplayList( false ); //Disable display lists geometry-setUseVertexBufferObjects( true ); //Enable VBO But when I switch higher version of visual studio (2010) and osg ( 3.0.1),

Re: [osg-users] [osgPlugins] Problem in loading Shape file

2011-12-23 Thread Lalit Manchwari
Thanks ulrich for your answer I followed your instruction and now program is not crashing. But in some file it does not load the complete shape file. I have attached here a shape file and its snapshot (with complete view). Please could you help. Thank you! Cheers, Lalit

[osg-users] [osgPlugins] Problem in loading Shape file

2011-12-22 Thread Lalit Manchwari
Hi, I am loading *.shp file in my program. In some files program works fine (mostly shape file with lines) but in some other files program crashed. My code is : ... osg::Geode* geode = dynamic_cast osg::Geode* (osgDB::readNodeFile(Test.shp)); osg::ref_ptr osg::Group group(new

[osg-users] Draw line in 3D screen

2011-12-02 Thread Lalit Manchwari
Hi, I am loading a large number of 3D points (X, Y, Z) on OSG. I want to draw line on screen not necessarily passing through loaded points. I am using osgUtil::PolytopeIntersector but it draws lines which essentially pass through loaded points. What can be done to draw line by movement of

Re: [osg-users] Flush event stack

2011-05-02 Thread Lalit Manchwari
Thanks for reply, I have some another question. Using osgUtil::PolytopeIntersector we get the x, y, and z coordinates at current mouse position. Can I do opposite of it, means if I have x, y and z coordinate then, can I calculate the screen coordinate. Actually I have to find points

[osg-users] Flush event stack

2011-04-30 Thread Lalit Manchwari
Hello friends, I am working on 3-D point data and using osgUtil::PolytopeIntersector to get the x, y, and z coordinates on mouse move event and show it on status bar. But my program becomes very slow. I had make a class: class CMousePickHandle : public osgGA::GUIEventHandler and working on

[osg-users] Identify whether Geode is inside the viewport or not...

2010-11-19 Thread Lalit Manchwari
Hi, I am working with LiDAR data. Its a huge data containing the information of X, Y, Z co-ordinates. I have divided this data into spatial blocks and making a Geode for every block. I want to increase the density of point cloud as the user zoom in the data. I want to know how can I identify

Re: [osg-users] Disable the Mouse default event in osg

2010-10-29 Thread Lalit Manchwari
Hi, ... Thanks for reply.. If i comment the manipulator then data is not displaying. I m using code... ... ... lasGeometry-setVertexArray( lasVertices); lasGeometry-setColorArray(colors); lasGeometry-setColorBinding(osg::Geometry::BIND_PER_VERTEX);

[osg-users] Disable the Mouse default event in osg

2010-10-28 Thread Lalit Manchwari
Hi, ... I am new in OpenSceneGraph. I want to disable the mouse event and use these event (Rotate, Zoom, Pan ) in separate buttons. Thank you! Cheers, Lalit Manchwari -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=33198#33198