Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
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

Rendering model, getting seams between each mesh

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
5 replies to this topic

#1 Muzzy A   Members   

737
Like
0Likes
Like

Posted 01 July 2013 - 04:02 AM

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, 01 July 2013 - 04:04 AM.


#2 Migi0027 (肉コーダ)   Members   

4568
Like
0Likes
Like

Posted 01 July 2013 - 04:14 AM

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/


#3 Muzzy A   Members   

737
Like
0Likes
Like

Posted 01 July 2013 - 04:23 AM

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?



#4 BrentChua   Members   

1066
Like
0Likes
Like

Posted 01 July 2013 - 04:29 AM

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



#5 Muzzy A   Members   

737
Like
2Likes
Like

Posted 01 July 2013 - 04:33 AM

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, 01 July 2013 - 06:00 AM.


#6 kauna   Members   

2922
Like
0Likes
Like

Posted 01 July 2013 - 05:59 AM

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, 01 July 2013 - 11:34 AM.





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.