Jump to content

  • Log In with Google      Sign In   
  • Create Account

XNA Terrain Heightmap Reach Mode (SL2)


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
No replies to this topic

#1 PhillipHamlyn   Members   -  Reputation: 454

Like
0Likes
Like

Posted 07 January 2013 - 02:40 PM

I have two implementations of my terrain project, one for SL3+ and one for SL2 for both HiDef and Reach modes of XNA. I want to support Reach really just for the joy of it (its a hobby, not commercial).

 

The HiDef mode uses a texture heightmap and a quadtree of tiles, all sharing the same mesh and skirts which I scale as needed.

 

The Reach mode doesn't support texture lookups in the vertex shader, so I've got seperate meshes for each of the tiles in the quadtree, which I load as needed.

 

Can anyone suggest a way of optimizing the Reach mode to use less Vertex Buffers and therefore less resources, akin to the heightmap based one, but compatible with SL2 ?

 

A further annoyance which hadn't occured to me when going down the "fixed mesh" route for Reach support was the limited nature of the scaling - essentially by adding in a standard wave function (encoded in a texture) I can make the HiDef mode scale to a very high number of triangles at very close range, but with the Reach mode those need to be encoded into the Vertex Buffer meaning high level of detail of the near-to-camera mesh is too resource heavy, and I end up with an obviously triangle based near-to-camera level of detail.

 

Thanks for any suggestions;

 

Phillip



Sponsor:



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