Solved

Terrain rendering engine

Posted on 2003-10-24
5
8,925 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

623 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