Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


what is an edge ?

This topic is 6294 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi, i want to write a simple bsp renderer. i read a tutorial so i only know the theoretical part of bsp-tree generating and bsp rendering. i decided to use quake2-bsp''s because i found the tutorial from flipcode about the quake2 bsp-file format. first of all i dont''t want to render only the cluster i am in, i want to render all faces in the map. but i don''t understand what an edge is. if i understood it correctly, an edge has two indices into the vertexarray. but ... aaammm ... ?????!!!???? can someone explain me what an edge is or how can i use it ??

Share this post

Link to post
Share on other sites
Well think of what an edge is in reality and thats pretty much what it is in 3D theory.

Lets say you have a cube:

|\ |\
| \______|_\
| |H | |G
D \| \|

A-B is an edge, B-C is an edge, C-D is an edge D-A is an edge
D-E is an edge E-F is an edge, F-G is an edge G-B is an edged, G-H is an edge, etc...

A-C is not an edge, B-D is not an edge. A-F is not an edge, B-E is not an edge, etc...


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!