Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Linear Landscape Features - General Approaches


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 PhillipHamlyn   Members   -  Reputation: 454

Like
0Likes
Like

Posted 08 March 2013 - 08:58 AM

Hi,

 

I'm happy with texture blending on a large terrain (mine created with a mixture of perlin noise and fractal diamond square) and I've made a first pass at implementing rivers + roads. Examples on the web suggest these are done in the same way - i.e. as a layer on a texture blend map. This seems pretty limited to me as;

 

1) linear features tend to be narrow and very well defined; texture blend maps tend not to be able to generate this.

2) a texture blend map for linear features on a landscape would be mostly black and, ignoring the role of texture compression which would tend to distort the desired crispness, would waste lots of space.

 

So long as my roads and rivers are nice and thick, and I dont need a crisp edge to them, it kind of works.... so I'm looking for a recommendation for an alternative approach.

 

I have experimented with creating a geometry based road out of triangle strips and it worked poorly. The need to closely align my terrrain mesh and my "road" mesh was unweildy and unless they were precise I got the road dipping in and out of the terrain mesh.

 

My landscape pass at present is about 10-15ms with 100k triangles, so I can afford another pass with the same height map and terrain surface geometry, but I dont know how to get the location of my road into the vertex shader in the first place, and then how to align it exactly with my terrain mesh.

 

Thanks,

 

Phillip

Attached Thumbnails

  • Landscape.jpg


Sponsor:

#2 PhillipHamlyn   Members   -  Reputation: 454

Like
0Likes
Like

Posted 08 March 2013 - 10:25 AM

... additionally;

 

I have read briefly that some people use a method where linear geometry features are rendered to a rough match to the landscape geometry and then use a stencil buffer to prevent the landscape being painted on top of it. I'd like to know if thats a recommended approach (i've not touched stencil buffers yet, so want to know its a good direction before plunging in)

 

Thanks in advance

 

Phillip






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS