Rendering model, getting seams between each mesh

Started by
4 comments, last by kauna 10 years, 9 months ago

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.

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.

FastCall22: "I want to make the distinction that my laptop is a whore-box that connects to different network"

Blog about... stuff (GDNet, WordPress): www.gamedev.net/blog/1882-the-cuboid-zone/, cuboidzone.wordpress.com/

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?

Move your camera's far-clip plane closer maybe that will work. What is your far-clip plane currently set to?

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!

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

This topic is closed to new replies.

Advertisement