/-/S'pht-Translator-Active/-/


A new level format then
Posted By: ehytoDate: 7/26/23 7:50 a.m.

In Response To: Re: Reverse engineer the data files (treellama)

: You may use any of the files in Weland's level/ directory for your proof of
: concept directly, as long as you share any changes you make to them. That
: will get you started loading maps at least.

: For the time being, perhaps it's enough to export the textures from
: ShapeFusion, rather than trying to load the shapes file. If not, you can
: use the files in Weland's shapes/ directory as inspiration, or go back to
: the revision for which I was the sole author of the files, and use the
: same exception.

I'll go with a GPL license, I don't have to open source it with a MIT license.

How about a new level format to convert map files to?

I've been using groups of polygons as the level.

The new format is based on clockwise or counter clockwise polygon vertices and the direction of a plane.

A list of vertices.

Sectors share vertices with indexes to vertices.

Each plane has a side and sector owner.

The clockwise vertices tell what way a plane direction is.

A method that takes a frustum and sector.

Sector has indexes to planes.

A frustum clips all the planes vertices in a sector.

If it has a flag of a wall then it gets clipped and is rendered.

If it has a flag of a portal then you ask it if is a clockwise or counter clockwise plane and the sector owner on the opposite side of the plane is visible when clipped.

A polygon is visible after clipping when a list is filled with vertices that is greater than 2.

The visible sector is put in the method with the frustum planes of a portal to continue the process.

Infinite loops are bad when checking for backwards facing portals.

You ask the portal what side the player is on with the plane to stop infinite loops.

The clipping is line plane intersection.

I'm going to build and test this or go back to using groups of polygons for the level.

[ Post a Reply | Message Index | Read Prev Msg | Read Next Msg ]
Pre-2004 Posts

Replies:

Reverse engineer the data filesehyto 7/20/23 6:09 a.m.
     Re: Reverse engineer the data filesfracai 7/22/23 5:09 p.m.
     Re: Reverse engineer the data filestreellama 7/24/23 4:55 a.m.
           Re: Reverse engineer the data filesehyto 7/24/23 11:20 a.m.
                 Re: Reverse engineer the data filestreellama 7/24/23 11:37 a.m.
                       A new level format thenehyto 7/26/23 7:50 a.m.
     Re: Reverse engineer the data filesDocument 7/25/23 5:40 a.m.

[ Post a Reply | Message Index | Read Prev Msg | Read Next Msg ]
Pre-2004 Posts

 

 

Your Name:
Your E-Mail Address:
Subject:
Message:

If you'd like to include a link to another page with your message,
please provide both the URL address and the title of the page:

Optional Link URL:
Optional Link Title:

If necessary, enter your password below:

Password:

 

 

Problems? Suggestions? Comments? Email maintainer@bungie.org

Marathon's Story Forum is maintained with WebBBS 5.12.