• Advertisement
Sign in to follow this  

Rendering model, getting seams between each mesh

This topic is 1663 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

seam_in_the_model.png

 

 

 

  • I made a class to create models off of basic shapes.
  • Each block in this image is exactly 1 unit wide and 1 unit apart from each other

 

What could be the cause of all the seams I'm getting in this image?

 

Note: I'm not doing any special rendering techniques, not even depth sorting.

Edited by Muzzy A

Share this post


Link to post
Share on other sites
Advertisement

It could be z fighting, try seperating them just a bit more, or go very close to them and see if they are 'inside' eachother by enabling wireframe.

Share this post


Link to post
Share on other sites

everything seems fine in wireframe mode, and I tried moving them apart from each other a tiny bit by adding FLT_EPSILON and then by .00001f and neither of them worked. Any other ideas?

Share this post


Link to post
Share on other sites

It's .001 right now. Could it just simply be that I'm not doing any depth sorting? Now that I think about it that would actually make sense lol.

 

 

EDIT:

 

That was the problem, as soon as I set up depth sorting everything just turned out perfectly fine. Thanks for your time!

Edited by Muzzy A

Share this post


Link to post
Share on other sites

zNear of 0.001 is pretty close. You'll be loosing most of your z-buffer accuracy in the range between 0.001 and 0.01 (or something like that).

 

Cheers!

 

[edit] definetely a z-buffering problem 

Edited by kauna

Share this post


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

  • Advertisement