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