Need help with manually loading a Heightmap

Denyos

15-01-2007 22:05:57

Hi all,

i'll try to explain my problem. I'm using OgreDotNet with c# for the graphics of my game, but for the physics i use ODE. For ODE i need to create a triangle mesh from my heightmap. So i searched the internet but found nothing about creating a heightmap from scratch that is not using directX.

The loading of the bitmap is no problem, but now i need to create an triangle mesh from it. So i gues i need to calculate the indices and the vertices. But i don't know how i can create this in c#.

I hope some of you can help me!