Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Jpez1432

GLBsp rendering

Recommended Posts

I am working on a opengl port, the gwa files from glbsp are loaded, linedefs are drawn (no textures) but what I can't figure out is how to render the floors, ceiling planes... anyone know anything reply to this post.

-James Pezold
-Jpezold@mail.win.org
-Jpez1432

Share this post


Link to post

It's simply a polygon that has shape of the current subsector you are rendering.

Share this post


Link to post

But getting the shape of the polygon is the tricky part...

Take a look at this article to learn how to walk through a BSP tree: http://www.gamedev.net/reference/articles/article654.asp

You will need the BSP structures created by the nodebuilder (NODES, SEGS, SSECTORS) to render the map and figure out the polygon needed for subsectors. You need to use each split in the BSP tree down to the subsector, as well as all segs of the subsector to cut a polygon to get the subsector shape. Like cutting a large paper in a little shape, but you only cut straight lines :)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×