/-/S'pht-Translator-Active/-/ |
A new level format then | ||
Posted By: ehyto | Date: 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
: For the time being, perhaps it's enough to export the textures from
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.
|
|
Replies: |
Reverse engineer the data files | ehyto | 7/20/23 6:09 a.m. | |
Re: Reverse engineer the data files | fracai | 7/22/23 5:09 p.m. | |
Re: Reverse engineer the data files | treellama | 7/24/23 4:55 a.m. | |
Re: Reverse engineer the data files | ehyto | 7/24/23 11:20 a.m. | |
Re: Reverse engineer the data files | treellama | 7/24/23 11:37 a.m. | |
A new level format then | ehyto | 7/26/23 7:50 a.m. | |
Re: Reverse engineer the data files | Document | 7/25/23 5:40 a.m. |
|
Problems? Suggestions? Comments? Email maintainer@bungie.org Marathon's Story Forum is maintained with WebBBS 5.12. |