[font="Verdana"]I make a Terrain.[/font]
[font="Verdana"]
[/font]
[font="Verdana"]First, Let's see ScreenShot...^^a [/font]
[font="Verdana"]English explaination is TOO DIFFICULT ^__^[/font]
[font="Verdana"]
[/font]
[font="Verdana"]1. Mesh ver.[/font]
[font="Verdana"][attachment=5623:mesh.jpg]
[/font]
[font="Verdana"]I make each mesh node And use D3DXComputeNormals().[/font]
[font="Verdana"]I use quadtree...[/font]
[font=Verdana][size=2]But normal value is SO strange..[/font]
[font="Verdana"]And FPS so low. I use Optimize Mesh and D3DPT_TRIANGLESTRIP in Draw....[/font]
[font="Verdana"]SO strange..[/font]
[font="Verdana"]
[/font]
[font="Verdana"]2. Direct Normal value [color=#333333]Manual calculations ver.[/font]
[font="Verdana"][color=#333333][attachment=5624:IBVB.jpg]
[/font]
[font="Verdana"][color="#333333"]This version is So Fast.[/font]
[font="Verdana"][color="#333333"]FPS so high...[/font]
[font="Verdana"][color="#333333"]But normal value is SO[/font][color=#333333][font=Verdana][size=2]SO[/font][color=#333333][font=Verdana][size=2]SO[/font][color=#333333][font=Verdana][size=2]SO[/font][color=#333333][font=Verdana][size=2]SO[/font][color=#333333][font=Verdana][size=2]SO strange. T.T[/font]
[font="Verdana"][color="#333333"][/font]
[font="Verdana"][color=#333333]
[/font]
[font="Verdana"][color=#333333]How can I fix it?[/font]
[font="Verdana"][color=#333333]
[/font]
[font="Verdana"][color="#333333"]Please Help me....HELP !!!!![/font]
Normal So Strange....>.<
1.
The first image show light from faceted normals because each vertice's normal is only using the vertices on the same triangle.
2.
I don't understand the second error but the .x model format was never made to be used outside of the DirectX SDK.
"Tutorial07" in the DirectX SDK show an easier way to store model data in your own array for more speed, stability and control.
I recomend using bump mapping in the pixel shader so that you can get a higher detail level without any work on the CPU.
Just sample the bump map multiple times with offsets to get smooth derivatives and use normalize(DX, 1, DY) as the current pixel's normal.
The bump map can be reused as a displacement map for the vertex shader so that you can get dynamic detail adaptive GPU accelerated terrain.
The bump/displacement map can then be modified on runtime when playing the game.
Dynamic terrain in my engine:
http://www.youtube.c...h?v=v_IYPFLC5D0
The first image show light from faceted normals because each vertice's normal is only using the vertices on the same triangle.
2.
I don't understand the second error but the .x model format was never made to be used outside of the DirectX SDK.
"Tutorial07" in the DirectX SDK show an easier way to store model data in your own array for more speed, stability and control.
I recomend using bump mapping in the pixel shader so that you can get a higher detail level without any work on the CPU.
Just sample the bump map multiple times with offsets to get smooth derivatives and use normalize(DX, 1, DY) as the current pixel's normal.
The bump map can be reused as a displacement map for the vertex shader so that you can get dynamic detail adaptive GPU accelerated terrain.
The bump/displacement map can then be modified on runtime when playing the game.
Dynamic terrain in my engine:
http://www.youtube.c...h?v=v_IYPFLC5D0
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement