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


Re: Textured Pfhactory N’Utopia in Unity
Posted By: ehytoDate: 2/21/24 12:43 a.m.

In Response To: Re: Textured Pfhactory N’Utopia in Unity (ehyto)

: The portal rendering and level building is separate.

: The level converter isn't ready, but the new level format and portal
: rendering is ready.

: https://github.com/huriettic/portalrenderingexperimental

I can explain how the experimental portal rendering works.

Start() and Awake() run one time and Update() runs every frame.
Load() loads the text file containing the level information.
There are three class objects.
Polyhedron contains indexes to a list of Faces.
Polyhedron has planes indexes to check if the player is inside it.
Polyhedron has portals indexes to know which face is a portal.
Polyhedron has render indexes to know what faceMesh to render.
Polyhedron has Collision indexes to know what faceMesh to collide with the player.
Face contain vertices and ints to Plane, portals, rendering and collision.
Face has a int to FaceMesh list.
FaceMesh contain triangles and vector2 UVs for textures.
There is a list of level meshes that match FaceMesh list and a list of level objects from GetlLists().
CreatePolygonPlane() makes a list of mathematical planes that match the list of face objects.
A mathematical plane is made with three vertices going in clockwise order.
Playerstart() gets the player starts and sets the current polyhedron the player is in.
Controller() moves the player and camera.
GetPolyhedrons() checks for the polyhedron the player is in and gathers the polyhedrons the player is in contact with then it does collision.
ReadFrustumPlanes() puts the mathematical planes in the main camera before the GetPortals() function.
GetPortals() has a for loop that renders level mesh objects and gets portals to go to the next polyhedron to render.

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

Replies:

Textured Pfhactory N’Utopia in Unityehyto 2/19/24 8:39 a.m.
     Re: Textured Pfhactory N’Utopia in UnityVikingBoyBilly 2/20/24 8:15 a.m.
           Re: Textured Pfhactory N’Utopia in Unityehyto 2/20/24 11:13 a.m.
                 Re: Textured Pfhactory N’Utopia in Unityehyto 2/20/24 4:27 p.m.
                       Re: Textured Pfhactory N’Utopia in Unityehyto 2/21/24 12:43 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.