Jump to content

Judge Dredd vs Death: Level Models | Asura Engine


GameSpy

Recommended Posts

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

image.thumb.png.5ef701ae3d66f5f73d4e62cefea4170f.png

image.thumb.png.00e6dd8b6ff7849127d494fdf22f423f.png

image.thumb.png.ff5ad33bde23c6b9143075cda9151de8.png

Some information about levels aka env's:

-1.thumb.png.ea1185c06b949f3f33c640e782adbd48.png

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 by GameSpy
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...