PDA

View Full Version : edges not smooth



guille
11-05-2001, 02:52 AM
Hi!

I would like to know why my objects (Quads and POLYGONS) EDGES are not smooth (at all) when my pointview is far from them. When I am close to them they are perfect.
I do not know very well how does it work with the depth buffer, but I think that the problem is there. I am using it for hidden-surface removal.

Thanks for any suggestion.

Cheers,

g

chowe6685
11-05-2001, 07:26 AM
I'm not sure if your problem is depthbuffer related, but try moving the near clipping plane further away from the screen, the closer the plane is to the screen the less accurate the depthbuffer becomes
You could also move the far clipping plane back toward the screen, but this would have less of an effect, and if you are trying to do something far away you will need to leave it out there.

chowe6685
11-05-2001, 07:30 AM
I forgot this earlier
You could always try
glEnable(GL_LINE_SMOOTH)
or
glEnable(GL_POLYGON_SMOOTH)
those might help fix things up, but might slow things down

Selva
11-05-2001, 07:51 AM
I tried using GL_POLYGON_SMOOTH. But it sometime creates distorted images. May be the Microsoft's implementation is not smooth.

guille
11-06-2001, 02:29 AM
THANKS!
Yes, I've moved the near clipping plane and it works better.
About glEnable(GL_POLYGON_SMOOTH), I've tried and it decreases the performance too much.