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 

Roads as Shapefiles in VPB?


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> VirtualPlanetBuilder [vpb]
View previous topic :: View next topic  
Author Message
umesh
Newbie


Joined: 13 May 2014
Posts: 13

PostPosted: Thu Dec 18, 2014 4:04 pm    Post subject:
Roads as Shapefiles in VPB?
Reply with quote

Hi All,

I have road geometry (3D) that I might be able to convert to SHP file using shapelib library.

If I load the shapefile for the road, shall I expect the terrain in VPB to be modified to accompany the road on top?
My Aim: Wherever the road is present, the terrain must be flattened (go below the road).

At least, VPB experts can be able to tell if this is feasible with existing SHP file support in VPB?

Thank you!

Cheers,
umesh
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 10989

PostPosted: Thu Dec 18, 2014 4:07 pm    Post subject:
Roads as Shapefiles in VPB?
Reply with quote

HI Umesh,

There isn't any support for matching terrain generated by VPB to shape
files. Such functionality would require a great deal of work.

Robert.

On 18 December 2014 at 16:04, umesh ramesh <> wrote:
Quote:
Hi All,

I have road geometry (3D) that I might be able to convert to SHP file using shapelib library.

If I load the shapefile for the road, shall I expect the terrain in VPB to be modified to accompany the road on top?
My Aim: Wherever the road is present, the terrain must be flattened (go below the road).

At least, VPB experts can be able to tell if this is feasible with existing SHP file support in VPB?

Thank you!

Cheers,
umesh

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=62117#62117








------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
umesh
Newbie


Joined: 13 May 2014
Posts: 13

PostPosted: Thu Dec 18, 2014 4:31 pm    Post subject:
Terrain Modification in VPB for Roads
Reply with quote

Hi Robert,

After posting this, I quickly realized that SHP files might be doing some sort of "draping" rather than modifying the terrain. Anyway,It will not do the job I Feel now.

There was osgTDS (Terrain Deformation s/w) sometime back. Now it seems to be out of shape. That was doing something similar to what I trying to achieve. Isn't it?
I do not prefer osgEarth. VPB satisfies my needs good enough except with this road issue.

Anything you can suggest to try out to modify Terrain to adjust to my 3D roads (using VPB/ osgTerrain etc)? I can try out your concepts.

Please reply to this part if you have little spare time Smile .

Thank you!

Cheers,
umesh
Back to top
View user's profile Send private message
umesh
Newbie


Joined: 13 May 2014
Posts: 13

PostPosted: Thu Dec 18, 2014 4:50 pm    Post subject:
VPB terrain height modification for Road
Reply with quote

Hi Robert,

How about osg Delaunay (Cutting terrain for road)? Or modifying the heightmap image itself (may be 2048X2048), modifying the pixels where the road falls with proper height value? VPB shall do the rest.

Thank you!

Cheers,
umesh
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 10989

PostPosted: Thu Dec 18, 2014 4:56 pm    Post subject:
Roads as Shapefiles in VPB?
Reply with quote

HI Umesh,

On 18 December 2014 at 16:50, umesh ramesh <> wrote:
Quote:
How about osg Delaunay (Cutting terrain for road)? Or modifying the heightmap image itself (may be 2048X2048), modifying the pixels where the road falls with proper height value? VPB shall do the rest.

VPB and osgTerrain are built around height fields rather than
irregular triangle networks. VPB and osgTerrain is not something that
one could easily add remeshing to a road network.

While it is possible to implement re-tessellation of meshes to fit
roads and other cultural data it's not a trivial task to implement,
I'm not about to go an write an essay for you on a complex topic. Go
search the internet.

Robert.


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





PostPosted: Fri Dec 19, 2014 5:10 am    Post subject:
Roads as Shapefiles in VPB?
Reply with quote

Umesh, I think maybe Torben with the osgVisual project might have done something like this.
I have done something similar but it is not open source. On Dec 18, 2014 9:50 AM, "Robert Osfield" < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
HI Umesh,

On 18 December 2014 at 16:50, umesh ramesh < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
How about osg Delaunay (Cutting terrain for road)? Or modifying the heightmap image itself (may be 2048X2048), modifying the pixels where the road falls with proper height value? VPB shall do the rest.

VPB and osgTerrain are built around height fields rather than
irregular triangle networks.  VPB and osgTerrain is not something that
one could easily add remeshing to a road network.

While it is possible to implement re-tessellation of meshes to fit
roads and other cultural data it's not a trivial task to implement,
I'm not about to go an write an essay for you on a complex topic.  Go
search the internet.

Robert.
_______________________________________________
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
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> VirtualPlanetBuilder [vpb] 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 About Shapefiles and .dbf files in os... Rambabu General 0 Tue Apr 25, 2017 4:57 am View latest post
No new posts Limitation of Displaying buildings,ro... Rambabu General 1 Fri Apr 21, 2017 4:47 am View latest post
No new posts Roads bhanu406 VirtualPlanetBuilder [vpb] 0 Tue Mar 21, 2017 12:25 pm View latest post
No new posts Drawing shapefiles on a sphere scitts2000 General 2 Thu Dec 17, 2009 3:29 am View latest post
No new posts Integration of roads martifa VirtualPlanetBuilder [vpb] 12 Wed Dec 09, 2009 1:18 pm 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