Jump to content
  • Advertisement
Sign in to follow this  
AquaMacker

Normal So Strange....>.<

This topic is 2487 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

[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"]blink.gif[/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]

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!