Re: [osg-users] how to draw a Curved Surface on the top of terrain?

2009-08-06 Thread Pan Li
Hi, thanks for all your replies; use overlaynode,but the projected texture is not right, any ideas?thanks!! attached : yellow lines-profile of geometry Code: geometry-addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::POLYGON,0,v-size())) ; geode-addChild(geometry);

Re: [osg-users] how to draw a Curved Surface on the top of terrain?

2009-08-06 Thread Chris 'Xenon' Hanson
Pan Li wrote: I want to draw a curved surface dynamic, like the function Mesure area in skyline. now i have the profile line of the curved surface,but just lines,not a polygon or a surface. Well, the example you showed is using texturing. I suspect if that's the effect you want, you'll

Re: [osg-users] how to draw a Curved Surface on the top of terrain?

2009-08-05 Thread John Vidar Larring
Hi Jason, Last time I checked (half a year ago), osggis did no create a curved polygon when creating a filled polygon for e.g. Russia. Since no sampling points are created inside the polygon the tessellated triangles goes straight from one edge to the other thought the ground. It would be

Re: [osg-users] how to draw a Curved Surface on the top of terrain?

2009-08-05 Thread Glenn Waldron
No - osggis does not drape polygon geometries. Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791 On Wed, Aug 5, 2009 at 5:45 AM, John Vidar Larring larr...@weatherone.tvwrote: Hi Jason, Last time I checked (half a year ago), osggis did no create a curved polygon

[osg-users] how to draw a Curved Surface on the top of terrain?

2009-08-04 Thread Pan Li
Hi, 1、how to draw a Curved Surface on the top of terrain? like the fig1. 2、how to compute the surface area of the Curved Surface? any examples?? thanks a lot!! Cheers, lipan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15723#15723

Re: [osg-users] how to draw a Curved Surface on the top of terrain?

2009-08-04 Thread Jason Beverage
Hi Lipan, You could look into using projected textures with the osgSim::OverlayNode or if you are rendering vector data such as that from an ESRI shapefile I'd recommend looking at osggis at http://www.osggis.org. Jason On Mon, Aug 3, 2009 at 7:15 AM, Pan Li osg...@163.com wrote: Hi, 1、how

Re: [osg-users] how to draw a Curved Surface on the top of terrain?

2009-08-04 Thread Pan Li
Thanks for your reply! I want to draw a curved surface dynamic, like the function Mesure area in skyline. now i have the profile line of the curved surface,but just lines,not a polygon or a surface. my issue is: how to display the profile line to be a enclosed area, not lines. use