PDA

View Full Version : Null mesh texture


smogo
09-26-2004, 04:18 AM
Hello,

after compiling wld2ter successfully in Windoze, i'm now working on openEq. So just converted arena.s3d to generate a ter file, then renamed .s3d to .eqg (as it's the way i suppose it works :/

Now i get the following error :



(gdb) set args arena.ter arena.eqg
(gdb) run
Starting program: /home/smogo/wrk/openeq/openeq.exe arena.ter arena.eqg

Program received signal SIGSEGV, Segmentation fault.
0x0040472f in Draw (mesh=0x22efb0, s3d=0x22efd0) at src/draw.c:668
668 obj.textures = (GLuint *) malloc(sizeof(GLuint) * mesh->tex->count);
(gdb) display mesh->tex
1: mesh->tex = (Texture *) 0x0
(gdb) kill
Kill the program being debugged? (y or n) y


Can it be that a mesh has no texture ? ... (more questions arise from this)

Maybe just the arena.ter is wrong, or ... i don't know
Freaku 0.2a was running correctly on this machine (although very slow, still software rendering :()

Would anyone help me ?
TIA

RangerDown
09-26-2004, 05:29 AM
Your output suggests you're trying to compile an arena.eqg?

Arena is an old world zone and should use the s3d format, not eqg.

smogo
09-26-2004, 06:06 AM
hmm, you are right, it's a plain s3d zone.

but it seems openEQ handles them, provided you produce a ground mesh (ter file) from the s3d, and alos you rename the s3d. That's what i guesed though, but can't tell of any details, as i don't know.

Actually we worked that outa bit with Daeken, it seems the ter file i generate from the s3d s wrong, so ... i have to rework on that.