Good work Jahrain! I wish you luck in further development!
Good work Jahrain! I wish you luck in further development!
I cannot be held responsible for my actions
honkies
Thank you jahrain and friends![]()
Are you serious? That has nothing to do with anything.
The reason that you get degenerate triangles is because of the way the JMS was imported in Halo 1. The post-processing done in Tool created degens, which the game ignores. In Halo 2, the processing done by the exporter breaks down verts along smoothing groups so the compiler doesn't have to distinguish. Undoing the process in the gbxmodel tag isn't that hard. How else do you think I made a gbxmodel importer?
I'll translate that to English for you...Code:triangle_vertices = (geometry_part_triangle_blocks[g][p] * 3) for t = 1 to triangle_vertices do ( append vertex_order ((readShortB "#signed") + 1) ) vo_count = vertex_order.count if vertex_order[vo_count] == 0 do deleteItem vertex_order (vo_count) if vertex_order[vo_count-1] == 0 do deleteItem vertex_order (vo_count-1) for w = 1 to (vertex_order.count - 2) do ( triangles[w] = [vertex_order[w],vertex_order[w+1],vertex_order[w+2]] ) for r = 1 to triangles.count by 2 do ( a = triangles[r][1] triangles[r][1] = triangles[r][3] triangles[r][3] = a ) for d = triangles.count to 1 by -1 do ( if (triangles[d][1] == triangles[d][2]) or (triangles[d][2] == triangles[d][3]) or (triangles[d][1] == triangles[d][3]) then ( deleteItem triangles d ) )
There are 4 for-loops, each has a purpose:
- Read the vertex order from the tag
- Create triangles from every 3 vertices
- Reverse the vertex indices
- Remove degenerate triangles
Voila, your model no longer looks like crap.![]()
^_^ Ghosty's awesome!
I really don't know anything about this but could you guys talk to the halo 2 xbox boys that import new models and stuff for some tips? They have figured out how to do it.
Those xbox boyos are in a totally different mind set compared to a HEK vet like le ghost
This is awesome Jahrain, one step closer to the original HEK now ;)
The North Star has shown us to Bethlehem! Nice work!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks