OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

how to draw a Curved Surface on the top of terrain?


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
cnugis
Newbie


Joined: 03 Aug 2009
Posts: 3

PostPosted: Mon Aug 03, 2009 11:15 am    Post subject:
how to draw a Curved Surface on the top of terrain?
Reply with quote

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
Back to top
View user's profile Send private message
Jason Beverage
Guest





PostPosted: Tue Aug 04, 2009 4:14 pm    Post subject:
how to draw a Curved Surface on the top of terrain?
Reply with quote

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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
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




_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



------------------
Post generated by Mail2Forum
Back to top
cnugis
Newbie


Joined: 03 Aug 2009
Posts: 3

PostPosted: Wed Aug 05, 2009 1:34 am    Post subject:
Reply with quote

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 OverlayNode??

Thank you!

Cheers,
Pan
Back to top
View user's profile Send private message
john_larring
User


Joined: 19 Feb 2009
Posts: 40

PostPosted: Wed Aug 05, 2009 9:45 am    Post subject:
how to draw a Curved Surface on the top of terrain?
Reply with quote

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 great news if this has been fixed i later versions of
osggis! Please let me know.

// John

Jason Beverage wrote:
Quote:
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 <
<mailto:>> wrote:

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




_______________________________________________
osg-users mailing list

<mailto:>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
This message has been scanned for viruses and
dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
believed to be clean.


------------------------------------------------------------------------




--
Best regards,
John
WeatherOne



------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Glenn Waldron
Guest





PostPosted: Wed Aug 05, 2009 12:34 pm    Post subject:
how to draw a Curved Surface on the top of terrain?
Reply with quote

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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
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 great news if this has been fixed i later versions of osggis! Please let me know.

// John

Jason Beverage wrote:
Quote:
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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
) <mailto: (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>> wrote:

   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




   _______________________________________________
   osg-users mailing list
    (
Only registered users can see emails on this board!
Get registred or enter the forums!
)

   <mailto: (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
   http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




--
This message has been scanned for viruses and
dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
believed to be clean.


------------------------------------------------------------------------

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
Best regards,
John
WeatherOne


_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




------------------
Post generated by Mail2Forum
Back to top
cnugis
Newbie


Joined: 03 Aug 2009
Posts: 3

PostPosted: Thu Aug 06, 2009 8:11 am    Post subject:
Reply with quote

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);
osgSim::OverlayNode::OverlayTechnique technique
                     = osgSim::OverlayNode::OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY;
osgSim::OverlayNode* overlayNode = new osgSim::OverlayNode(technique);
overlayNode->setOverlaySubgraph(geode);
overlayNode->setOverlayTextureSizeHint(1024);
overlayNode->setOverlayTextureUnit(1);

// insert the OverlayNode between the coordinate system node and its children.
for(unsigned int i=0; i<root->getNumChildren(); ++i)
{
   overlayNode->addChild( root->getChild(i) );
}
root->removeChildren(0, root->getNumChildren());
root->addChild(overlayNode);

thanks for your help!!!!!

Thank you!

Cheers,
Pan
Back to top
View user's profile Send private message
Chris 'Xenon' Hanson
Guest





PostPosted: Thu Aug 06, 2009 3:09 pm    Post subject:
how to draw a Curved Surface on the top of terrain?
Reply with quote

Pan Li wrote:
Quote:
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 need to take the perimeter data you have, rasterize it into a 2D texture
(GDAL can do this for you) and add the texture as a second layer.

--
Chris 'Xenon' Hanson, omo sanza lettere Xenon AlphaPixel.com
PixelSense Landsat processing now available! http://www.alphapixel.com/demos/
"There is no Truth. There is only Perception. To Perceive is to Exist." - Xen


------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Draw through a mask JD General 1 Mon Apr 03, 2017 12:24 pm View latest post
No new posts wireframe darker wrt the surface color gambr General 9 Tue Mar 21, 2017 4:00 pm View latest post
No new posts How to query height of terrain given ... vinothrajendran4 VirtualPlanetBuilder [vpb] 0 Tue Mar 14, 2017 2:43 pm View latest post
No new posts Height of terrain bhanu406 General 5 Fri Mar 03, 2017 7:56 am View latest post
No new posts Error building terrain with shapefile... robertosfield VirtualPlanetBuilder [vpb] 0 Mon Feb 06, 2017 9:11 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP