Solved

Terrain rendering engine

Posted on 2003-10-24
5
8,893 Views
Last Modified: 2013-12-26
Looking for a terrain rendering engine that will take a heightmap (eg 2 dimensional array of height values) and either render them itself or return a set of triangles to be rendered by myself.

Conditions:
- Full source code
- Free
- Working
- DirectX (if it renders itself)
- Optimised, ie LOD-style triangle reduction

If one can be recommended that uses Delphi in C++, that will be a bonus!

I've read loads of tutorials on ROAM and the like but most are theoretical rather than practical.

Thanks

Geoff M.
0
Comment
Question by:gmayo
  • 2
  • 2
5 Comments
 
LVL 1

Expert Comment

by:pvvvp
ID: 9625620
The SOAR alg is a _very_ nice one; I have found it following the links from http://web.interware.hu/bandi/ranger.html (that's an optimized version). However, it is OpenGL :( . Still, this fact is compensated by a thorough mathematical explanations in the papers. It is at the http://www.gvu.gatech.edu/people/peter.lindstrom/papers/tvcg2002.
0
 
LVL 8

Author Comment

by:gmayo
ID: 9625696
Thanks, but OpenGL is no good to me. Nor the maths explanations! I have since found one, in Delphi no less, but based on ROAM with optimisations for triangle strips.

Geoff M.
0
 
LVL 1

Accepted Solution

by:
pvvvp earned 500 total points
ID: 9625796
Hmm. I look at the sources and see a few GLtypes scattered in h-files, GL/GLUT initialization code in "main.c" and some GL commands in "render.c". Those are quite suitable for just-a-technical-replacing, I think. What with originally-D3D versions... I can't recall any algorithm as good as this in my earlier search attempts, be it OGL or D3D. They all seemed to be nothing but variations on the same old themes. Don't be afraid of maths! (Or OGL :) ). The alg clearly overweights those difficulties.
0
 
LVL 8

Author Comment

by:gmayo
ID: 9625831
I understand your point, but to be honest, I've gotten a bit fed up with the swathes of code that I've tried to convert which doesn't work, or only partially works, or doesn't compile properly.

It's one thing understanding the theory *or* the programming conversion. It's quite another to learn *both* at the same time! I will have a look at the stuff you've suggested tonight though.

Cheers

Geoff M.
0
 

Expert Comment

by:Bonneel
ID: 11290617
Hi,

You should look at fBm, and multifractals explained in "Texturing an Modelling, a procedural approach" by K.Perlin, K.Musgrave, D.Ebert, Peachey... You can also look a Fourier synthesis.  That is for generating the heigfield (if it isn't done yet).
For rendering tips, you can look at http://www.vterrain.org : there are a lot of ressources for landscapes generating/rendering.

Nicolas Bonneel
http://www.byosphere.com (rendering landscapes too !)

ps : ...it's my first post here... hope it will help ! :))
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

As game developers, we quickly learn that Artificial Intelligence (AI) doesn’t need to be so tough.  To reference Space Ghost: “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer. (http://www.youtu…
Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now