#### Archived

This topic is now archived and is closed to further replies.

# Problem with Normals

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

## Recommended Posts

I''ve recently created a fractal terrain generator using a series of triangle strips lined up right beside one another. I certain that I calculated the normals for the face of each triangle correctly, but maybe I''m wrong. Though it does shade the landscape, the shading is in such a way that the strips are very visible. Take a look: http://www.geocities.com/diatan/fractal_filled.jpg Can anyone tell me how to fix this problem? Should I go further than calculating the normal for each triangle and figure out what the normal is for each vertex instead? Or should I use GL_TRIANGLE instead of strips and draw each one individually? Any suggestions are appreciated. Thanks

##### Share on other sites
defintly wrong normals
i recommend start off simple calculate one normal per face + dont use strips.
once youve got that sussed try a normal per vertex. and then later use strips as well

http://members.xoom.com/myBollux

##### Share on other sites
When i look on the picture, i would say, you have calculated the vertex normals
but only in one direction. (every stripe)

Check your code for calculating the normals.

##### Share on other sites
how to compute nomals at each vertex:
first pass on triangles
compute a normal for each triangle of the whole mesh

second pass on each vertex:
for any given vertex, find out wich triangles are incident to the vertex, and compute the weighted average of the three triangle''s normals, and assign it to the vertex. Use the angle of each triangle at the vertex as coefficient in the wheighted average.

a bit boring bu it looks so good.

##### Share on other sites
I recomend checking out this site amir.cfxweb.net !!

He has some really great tutorials on normals and vector math!!
Helped me out when having the same problem as you got!!

if you check my site i made a little prog that calculates the
with the source!! (Wacky FPS demo)!!!

http://home.no.net/cybertux
Hope this helps...

Take Care!

- -- ---[XaOs]--- -- -

Edited by - XaOs on June 28, 2001 7:26:08 PM

##### Share on other sites
Cool, thanks. I''ll check those out. I almost forgot to post that I finally figured out the vector math for it and its looking great so far :-)

Thanks again for all the help.

1. 1
2. 2
Rutin
22
3. 3
JoeJ
18
4. 4
5. 5

• 37
• 23
• 13
• 13
• 17
• ### Forum Statistics

• Total Topics
631705
• Total Posts
3001826
×