Re: [osg-users] [vpb] Terrain Height as Texture

2011-11-25 Thread Jonathan Klein
Hi, what about the GeometryType Parameter in osgdem? http://www.openscenegraph.org/projects/VirtualPlanetBuilder/wiki/CommandLineOptions I can't find any documentation what the difference between HEIGHT_FIELD, POLYGONAL and TERRAIN is, but I think, HEIGHT_FIELD might be able to solve my

[osg-users] [vpb] osgdem Colormap gets flipped

2011-11-25 Thread Jonathan Klein
Hi, I'm using the puget textures from the osgdem example (http://www.cc.gatech.edu/projects/large_models/ps.html) to create a terrain. But now my colormap is flipped along the Y-Axis. At first I thought that it would not be a problem and that I could just transform the texturecoordinates and

Re: [osg-users] osgTerrain::getTile returns nothing

2011-11-25 Thread Jonathan Klein
Hi Brad, well, than I might try to traverse the terrain first. But I just realized that Tileaccess might not be a solution for my problem (http://forum.openscenegraph.org/viewtopic.php?t=9416). @zonk: Terrain is a ref_ptr Object, not a normal pointer. -- Read this topic online

[osg-users] Intersectors with double precision

2011-11-25 Thread Leandro Motta Barros
Hello, In a project I am working on, I need to use intersectors (PolytopeIntersectors, in particular) with double precision floating point, but with the intersectors provided by OSG (using 3.0.1 here), I get only single precision. I noticed that osgUtil::PolytopeIntersector already contains code

Re: [osg-users] Vertex picker - multiple selection

2011-11-25 Thread Leandro Motta Barros
Hi, A naïve approach would be to use a LineSegmentIntersector towards each of the points selected by the PolytopeIntersector (let's call this point P). If P is not the first intersection found by the LineSegmentIntersector (that is, it is not the closest to the camera), it means that there is

[osg-users] Problem updating vertex

2011-11-25 Thread Diego R. Hachmann
Hi, I having problem updating my geometric vertex manually. First, I copy the original node: Code: osg::ref_ptrosg::Node node = dynamic_castosg::Node*(original-clone(osg::CopyOp::DEEP_COPY_ALL)); . After, I update the y coordinate of each Vertex according to the value of reference

Re: [osg-users] Intersectors with double precision

2011-11-25 Thread Peter Hrenka
Hi Leandro, Am 25.11.2011 12:47, schrieb Leandro Motta Barros: Hello, In a project I am working on, I need to use intersectors (PolytopeIntersectors, in particular) with double precision floating point, but with the intersectors provided by OSG (using 3.0.1 here), I get only single

Re: [osg-users] Vertex picker - multiple selection

2011-11-25 Thread Aurelien Albert
Hi, That's naive, but it's also a good idea, I'll try that Aurelien -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44038#44038 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Intersectors with double precision

2011-11-25 Thread Leandro Motta Barros
Hi Peter, On Fri, Nov 25, 2011 at 10:52 AM, Peter Hrenka p.hre...@science-computing.de wrote: [...] So, I am ready to change the few bits of osgUtil::PolytopeIntersector still using hardcoded osg::Vec3 and to modify osgUtil::LineSegmentIntersector so that it uses a similar approach (that is,

Re: [osg-users] Problem updating vertex

2011-11-25 Thread Filip Arlet
Hi, I think you need to call dirtyBound() and dirtyDisplayList() on geometry. Cheers, Filip -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44041#44041 ___ osg-users mailing list

Re: [osg-users] Problem updating vertex

2011-11-25 Thread Diego R. Hachmann
I spent hours in it. Now it's ok Thank you very much. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44042#44042 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Vertex picker - multiple selection

2011-11-25 Thread Aurelien Albert
Hum... there's still a problem... how can I retrieve intersected vertices from polytope intersection ? From a LineSegmentIntersector, I use this code : Code: intersection is a osgUtil::LineSegmentIntersector::Intersection instance from LineSegmentIntersector osg::Geometry* pGeometry =

Re: [osg-users] Vertex picker - multiple selection

2011-11-25 Thread Leandro Motta Barros
I've only used PolytopeIntersector to deal with point clouds. In this case, osgUtil::PolytopeIntersector::getIntersections() returns what I need (that is, all the points inside the polytope). I don't know, however, what exactly it counts as intersections when dealing with polygons. :-/ LMB On

[osg-users] How to create a decal on a road segment?

2011-11-25 Thread Raymond Bosman
Hi all, We are trying to create a road with lane lines and other markers on top. For the lane markers and the road segment we create separate geometry. When we place the geometry on top of the asphalt we got Z-fighting. To solve the Z-fighting issues, we tried to use Stencil buffers. In our

[osg-users] [osgPlugins] png plugin - problem loading images

2011-11-25 Thread Andrey Ibe
Hello good ppl! i am quite new to OSG, though i managed to build it from source with several plugins. now one of them is not working - PNG. and i do need it. i am using MinGW gcc compiler suite and w7/x64 system. i built osg 3.xy from sources, with libpng, zlib, libjpg and coin plugins, which

[osg-users] How to manipulate a scene node using the mouse

2011-11-25 Thread jasper zhu
Hi, I know that using Trackballmanipulator as a camera manipulator enables the user to roate/translate/scale the entire scene. In my application, I need to manipulate a specific scene node instead of the entire scene. I wonder whether there is a similar tool in OSG. Thank you! Cheers,

[osg-users] Multiple callbacks problem

2011-11-25 Thread alef truc
Hi, I'm currently working on a simple virtual robot arm, and I want to move each joint thanks to node callbacks. So the first thing I did was to look for pointer adresses of each intersting node. Then I associated a node callback to each of this node with setUpdateCallback() but only one

Re: [osg-users] [forum] How to implement ViewAll

2011-11-25 Thread Sean Sullivan
Hi, If your scene is really simple you won't really need to calculate anything. You can try different values until you see what you want. Set eye to a position away from your objects, set center to the position of one of the objects in your scene, and set the up vector to whatever it should be

[osg-users] switch colored display to grayscale

2011-11-25 Thread Wolfgang Rostek
Hi, I'm new to OSG but need a switch by using flightgear. Is it somewhere simple to switch colored output to grayscale only? It would save me a lot of time. Thank you! Cheers, Wolfgang R -- Read this topic online here:

[osg-users] Looking for a guide on renderbins

2011-11-25 Thread Sean Sullivan
Hey guys, Does anybody know about some sort of guide for how the renderbins work? I'm having to use them quite a bit lately but am having trouble finding in depth coverage of the subject. Cheers, Sean -- Read this topic online here:

[osg-users] New user to OSGexp on Max 2012 and getting an entirely black scene ....

2011-11-25 Thread Jean-Frederic Monod
Hi, I have just downloaded OSGexp 1.0.1 for Max 2012 64 and I'm having a few issues getting started. My scene is a BIM model exported from Autodesk Revit via FBX. Materials are mainly Autodesk Materials (formerly Promaterials) with some Mental Ray ArchDesign. I have not baked textures

Re: [osg-users] osgexport for blender?

2011-11-25 Thread Maia Randria
Hi, Sorry, but I am very confused with the OSG exporter from Blender. Which OSG exporter works for Blender 2.6 (the latest version) ? Could you the right website to download it ? Thanks, Maia Jeremy Moles wrote: On Fri, 2011-09-23 at 16:38 +0200, Alberto Luaces wrote: Benjamin

Re: [osg-users] Multiple callbacks problem

2011-11-25 Thread Paul Martz
On 11/22/2011 1:15 AM, alef truc wrote: Hi, I'm currently working on a simple virtual robot arm, and I want to move each joint thanks to node callbacks. So the first thing I did was to look for pointer adresses of each intersting node. Then I associated a node callback to each of this node

Re: [osg-users] How to create a decal on a road segment?

2011-11-25 Thread Chris 'Xenon' Hanson
On 11/24/2011 10:39 AM, Raymond Bosman wrote: Does anyone know a solution to this problem or another approach to create lane markers on top of the road? We tried to use Polygon Offsets, but doesn't give great results. Have you tried the first multi-pass technique here?