Forum

Loading a TGA for a Quake model...

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Postby mh » Thu Aug 11, 2011 8:15 pm

Hmmm; I'd recommend that you only change one thing at a time. Less places for possible bugs and problems to happen, you know. So first add TGA support to Fitz, then add the new model format. Cos otherwise there is really no way of knowing if it's your model loader, your TGA loader, your renderer, or a combination of all 3 that's causing this problem.
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Postby hogsy » Thu Aug 11, 2011 8:15 pm

TGA support is already in.
User avatar
hogsy
 
Posts: 198
Joined: Wed Aug 03, 2011 3:44 pm
Location: UK

Postby hogsy » Thu Aug 11, 2011 10:19 pm

Sorry about the double post but here's where I am with this. I decided to try something else however it appears to be causing a crash in gl_mesh.c at this line in BuildTris.


// emit s/t coords into the commands stream
s = stverts[k].s;
t = stverts[k].t;


Any idea why this might be happening?
User avatar
hogsy
 
Posts: 198
Joined: Wed Aug 03, 2011 3:44 pm
Location: UK

Postby mh » Thu Aug 11, 2011 11:46 pm

Debugger!
Debugger!
Debugger!

Seriously. Break out the debugger, run it, and it will tell you exactly what the problem is.
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Postby leileilol » Fri Aug 12, 2011 12:31 am

if you exported that model through blender using that mdl exporting script, it flips uvs vertically which may mismatch your TGA replacement
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby hogsy » Fri Aug 12, 2011 2:03 am

mh wrote:Debugger!
Debugger!
Debugger!

Seriously. Break out the debugger, run it, and it will tell you exactly what the problem is.


I would if it wasn't fucked up :lol:
User avatar
hogsy
 
Posts: 198
Joined: Wed Aug 03, 2011 3:44 pm
Location: UK

Postby revelator » Fri Aug 12, 2011 3:18 am

if its fubared msvc debugger you can mostly repair it (wont even take long) just pop in the cd/dvd what ever media it came on and select to repair. usually only takes a couple a minutes.

if its gdb its even easier allthough if used from codeblocks new internal debugger plugin its not.

if you need a standalone gdb with some kind of gui i can help with that.
its called insight and is a very old well proven one using a tcl gui.

its also very easy to learn how to use ;)
User avatar
revelator
 
Posts: 2567
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Postby hogsy » Fri Aug 12, 2011 12:11 pm

leileilol wrote:if you exported that model through blender using that mdl exporting script, it flips uvs vertically which may mismatch your TGA replacement


The model is from the Daikatana pre-alpha so I wouldn't know (Blender wasn't even around back when this game was in development anyway).

Also I recommend someone else look at the model I uploaded as you'd probably have a better idea than I do.

Edit:
Updated my first post with all the information so far for those that seem to skip all previous posts.
User avatar
hogsy
 
Posts: 198
Joined: Wed Aug 03, 2011 3:44 pm
Location: UK

Previous

Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest