Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
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

Software 3D Renderer - Do I really need Perspective Correction?

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

#1 SymLinked   Members   

1204
Like
0Likes
Like

Posted 19 December 2012 - 07:55 AM

Hi,

Do I really need Perspective Correction if I'm not going to use any textures/lighting? I just want to render solid triangles and nothing else.
I've heard you still need it for triangles that are big enough or close enough to the camera, is that true?

I was hoping it's just for texturing/lighting so I don't have to implement it. Posted Image

Sincerely,
Sym

Edited by SymLinked, 19 December 2012 - 07:56 AM.


#2 knarkowicz   Members   

2337
Like
5Likes
Like

Posted 19 December 2012 - 09:22 AM

*
POPULAR

Depth should be also interpolated using perspective correction. Without it there will be some z-buffer artifacts in places where two triangles intersect / overlap. More or less visible, depending on triangle position and size.

BTW persp corr interpolation just for zbuffer is simple - just linearly interpolate 1/z in screen space.

#3 SymLinked   Members   

1204
Like
0Likes
Like

Posted 19 December 2012 - 11:06 AM

Thanks a lot Krzysztof, then it's all clear! Useful tip about the zbuffer too.




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.