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
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
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 );
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),
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
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
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
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
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
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
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);
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
12 matches
Mail list logo