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 

Terrain Deformation as per Road Profile


 
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: 14

PostPosted: Mon Dec 04, 2017 4:44 pm    Post subject:
Terrain Deformation as per Road Profile
Reply with quote

Hi,

I am planning to use VPB for terrain deformation as per road profile. The road mesh has been generated separately and I shall put it on the terrain. The terrain generated by VPB must deform itself as per the road profile. Also additional geometry must be added to terrain geometry close to the road borders for smoothness as the terrain quad tile cells may be too big. This situation I have tried to visualize as shown in the two below images.
Now the best approach I see is to let VPB generate the terrain tiles as OSG files. I know the road border points. I can figure out which terrain tile a segment of the road shall fall. Let’s say I know the road border points for the particular terrain quad tile as per figure 1. Now I need to tessellate or subdivide the Terrain tile cells that are falling on the road path.
Thus I need to deform as well as increase the terrain mesh at the road borders.
Question: What should be my best approach to achieve this?
• I might use tessellation shaders approach, but it might tessellate everywhere I move camera not specifically at road borders. Maybe create a grayscale texture runtime that highlights the road surface & pass it to Tess shaders to tessellate at the road borders?
• I might use old GluTess with winding order to cut holes in terrain where road goes. But those may create very long triangles if cell size is large.
So please can anybody give me some pointers to approach this? I know this goes beyond VPB. By the way, each terrain tile also has its road cut piece.

Thank you, Robert!

Cheers,
umesh
Back to top
View user's profile Send private message
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 MacOSX/Core Profile: Attribute aliasi... remoe General 5 Tue Jul 31, 2018 8:27 am View latest post
No new posts Core Profile: glEnable/glDisable GL_P... Damian Dixon General 2 Sun Jul 29, 2018 1:24 pm View latest post
No new posts GL3 Profile dieslower81 General 15 Sat Jun 23, 2018 5:19 pm View latest post
No new posts How to set the transparency for one o... adrianj General 0 Tue Feb 06, 2018 3:19 am View latest post
No new posts How to get height above terrain in la... smp General 2 Thu Dec 28, 2017 12:25 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