Original Post
hi!
i'm learning Direct3D 9.
i wrote an application (code attached), and those are the problems.
1. lights, as you can see in the attachment, there is a problem with the light. i'm using D3DLIGHT_DIRECTIONAL type, and it is not enough to light all the terrain, so i added another light (light one toggled by '1' key and light 2 by '2' key).
2. culling problem. when i rotating the camera around the terrain, (using Right and Left Keys, Up and Down key form zooming) the mountains sometimes look cut.
i'm using IndexBuffer for rendering the terrain. (as wrote in the Andy Pike's Terrain tutorial)
ScreenShot:
Download Source code
Thanks,
InfraRed.
[edited by - InfraRed on April 29, 2003 2:13:18 PM]
Download Source code
Thanks,
InfraRed.
[edited by - InfraRed on April 29, 2003 2:13:18 PM]