Javac

12-02-2003, 01:40 AM

Hi.

I'd like to create 2d height map terrains with relief shading effects(actually 2d image with 3d look - 2d because of no projection),each pixel in image represents an information of height in this coordinate).

I have 2 problems:

1. I don't know how to do it with OpenGL.

(and if should I do this with OpenGL?)

2. I don't know what is the light calculation formula(for color of each pixel) for this kind of pictures.

I did it first without OpenGL and used the usuall diffuse lighting formula ,but picture looks bad.

I found in Google a lot of tools for creating

relief shaded terrains,but they all are connected to 3d max or photoshop,but I need to do this in runtime with code.

So,please - anybody has an idea or experience on this?

I'd like to create 2d height map terrains with relief shading effects(actually 2d image with 3d look - 2d because of no projection),each pixel in image represents an information of height in this coordinate).

I have 2 problems:

1. I don't know how to do it with OpenGL.

(and if should I do this with OpenGL?)

2. I don't know what is the light calculation formula(for color of each pixel) for this kind of pictures.

I did it first without OpenGL and used the usuall diffuse lighting formula ,but picture looks bad.

I found in Google a lot of tools for creating

relief shaded terrains,but they all are connected to 3d max or photoshop,but I need to do this in runtime with code.

So,please - anybody has an idea or experience on this?