GameSpy Posted January 6 Share Posted January 6 (edited) Hi! I'm not a programmer but I'm trying to write a program to process models. So, I encountered a problem: conversion of binary level aka env files does not occur correctly, which is some of the faces are drawn incorrectly + some of the faces are inverted. As far as I know, this problem is related to incorrect processing of indices. Can someone help me with this? Example of a level + screenshots of problem: Env.7z Some information about levels aka env's: After the information marked in orange comes the following: 4 byte value about the number of vertices, 4 byte value about the number of indices, vertices, indices. And so on. ENV Level Vertices have the following structure: struct VERTEX { float pos[3]; float normal[3]; float unknown[1]; float tc[2]; }; I can also provide the code of my program, but the code there is terrible so be prepared for that 😄 https://github.com/gabengaGamer/JAMC Edited January 6 by GameSpy Link to comment Share on other sites More sharing options...
GameSpy Posted January 6 Author Share Posted January 6 (edited) Here is an example of a converted level. .obj format. All conversion problems are clearly visible there output.7z Edited January 6 by GameSpy Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now