Jump to content
  • Advertisement
Sign in to follow this  
kapru

Terrain Engine

This topic is 4476 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Here is my latest terrain project.(sorry no idea how to link a picture) press 'o' to change the light source direction. Hold the right mouse button to look around wasd to move http://members.iinet.net.au/~fitz9/engine.zip What do ya think of it so far. And the main 2 questions what is the best way to join up the terrain patches that have different detail levels? Currently ive set it to not render the border tiles. And in my shader how do i set it to render wireframe

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by kapru
Here is my latest terrain project.(sorry no idea how to link a picture)
just like you'd do on a HTML page: upload the picture somewhere, then write an >img src="URL"< in the text (with > and < reversed).

Quote:
What do ya think of it so far.
On my machine, parts of the terrain are black. Also, the gaps are very noticable at the borders. It runs at around 3-5 FPS on my GF7800GTX, so it'll definitely need some optimizations in the future. But at the places it works good, it looks good! [smile]
Oh, and next time, please choose a starting camera position that is not under the terrain but instead one that provides a good look at the scenery :)

Quote:

what is the best way to join up the terrain patches that have different detail levels? Currently ive set it to not render the border tiles.
The article called "Terrain Geomorphing in the Vertex Shader" by Daniel Wagner in ShaderX2 - Tips and Tricks is a must read for you. It gives a solution right to this problem.

Quote:
And in my shader how do i set it to render wireframe
You don't set it in the shader, you have to set the D3DRS_FILLMODE renderstate to D3DFILL_WIREFRAME.

kp

Share this post


Link to post
Share on other sites
I get an error on both my ATI X700 and X300 (Failed to lock Patch Vertex Buffer).

You can set the fill mode in you effects file using

FillMode = WIREFRAME;

I believe (or FILL_WIREFRAME, I'm not sure).

Edit: A quick search of google shows a result that uses the first one, so I'd say thats the right way.

HTH!

Share this post


Link to post
Share on other sites
I get ~60fps regardless of where I am, but the terrain is completely chopped up, and many of the patches I can see are black. Changing the light direction appears to work fine for the terrain patches that render correctly. As mentioned, the starting camera position needs to be set! The detail is very nice though!

Edit: I tried to take a screenshot, however your program seems to be intercepting the printscreen key event...

Anyway, I noticed from this it doesn't recover from a lost device correctly. No errors though, it just doesn't continue rendering the terrain.

Radeon 9600XT.

Share this post


Link to post
Share on other sites
its a pritty rought copy. I'll upload a new version tomorrow that fixes most of the problems

Share this post


Link to post
Share on other sites
it runs on my pc (radeon 9800pro, AMD64 3200+)
with frames from 60-130...

but the terrain was missing parts until I came
very close to it...


Marc

Share this post


Link to post
Share on other sites
Ive uplodaed a new version.

I thing i covered all issues

No u can press M to go into wireframe mode

Share this post


Link to post
Share on other sites
Very good work, all bugs appear to be fixed for me!

As you said, there is still patch gaps between the different LOD levels though.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!