Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Normal So Strange....>.<

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 AquaMacker   Members   

255
Like
0Likes
Like

Posted 29 September 2011 - 11:32 PM

I make a Terrain.


First, Let's see ScreenShot...^^a
English explaination is TOO DIFFICULT ^__^


1. Mesh ver.
mesh.jpg

I make each mesh node And use D3DXComputeNormals().
I use quadtree...
But normal value is SO strange..
And FPS so low. I use Optimize Mesh and D3DPT_TRIANGLESTRIP in Draw....
SO strange..


2. Direct Normal value Manual calculations ver.
IBVB.jpg

This version is So Fast.
FPS so high...
But normal value is SOSOSOSOSOSO strange. T.T
Posted Image


How can I fix it?


Please Help me....HELP !!!!!

#2 Dawoodoz   Members   

459
Like
1Likes
Like

Posted 30 September 2011 - 09:56 AM

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

"App". is an acronym and must always be followed by a dot.

https://en.oxforddictionaries.com/punctuation/punctuation-in-abbreviations


#3 AquaMacker   Members   

255
Like
0Likes
Like

Posted 30 September 2011 - 10:59 AM

Thanks Very very very very much Posted Image
Please forgive my poor English Posted Image




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.