Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
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

3D Clipping question

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

#1 Lutrosis   Members   

122
Like
Likes
Like

Posted 10 December 1999 - 03:11 AM

Ok guys, quick question. I'm writing my first 3d engine, real simple stuff. Flat shaded, nothing but triangles. Anyway, before making my poly list to send to the renderer, I have a simple 3d clipping filter. It excludes all polys outside the near and far clipping frustums, and the viewing planes. The problem is, I need to remove any poly that has even one vertice behind the near clipping frustum, or the projection will get all screwed up. How would I implement proper projection if a poly is partway past the clipping frustum, for example if there are two tris making a rectangular floor and the camera is in the middle? I've never actually seen anyone address this problem. For further clarification, here's a little diagram hope you're not using proportional fonts)

|
|
Camera |---->
|
| _____|_____ <- tri
|

There's gotta be a way to properly transform the tri, even though one of the vertices is behind the near frustum. Anyone have any suggestions?





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.