[info-performer] Can .flt loader throw texture coords

New Message Reply Date view Thread view Subject view Author view

From: Terry Welsh (mogumbo++at++totalmail.com)
Date: 02/26/2003 13:58:14


  I'm trying to load an .flt file and then assign a cliptexture to it. The model I'm loading references a texture with an extension that it doesn't know how to load. From what I'm seeing, I suspect that maybe since the texture doesn't get loaded, the .flt loader throws out all the tex coords, so the geosets are only left with vertex coords and normals.
  I can assign a regular texture to the model by creating a new geostate that loads a texture and uses pfTexGen to make new texture coords. The texture won't show up if I don't use pfTexGen.
  I try to replace that texture with a cliptexture, but my app crashes like so:

#0 0x403c7420 in pfGeoSet::calcTexBBox () at eval.c:41
#1 0x403ccecc in pfGeoSet::updateCteRefs () at eval.c:41
#2 0x403cd369 in pfGeoSet::setGState () at eval.c:41
#3 0x0804bd32 in metaflight::setAllGeoStates () at eval.c:41
#4 0x0804bd81 in metaflight::setAllGeoStates () at eval.c:41
#5 0x0804bd81 in metaflight::setAllGeoStates () at eval.c:41
#6 0x0804bd81 in metaflight::setAllGeoStates () at eval.c:41
#7 0x0804bd81 in metaflight::setAllGeoStates () at eval.c:41
#8 0x0804b88b in metaflight::loadGeometryGridDataset () at eval.c:41
#9 0x0804be16 in metaflight::loadDatabase () at eval.c:41
#10 0x0804b341 in metaflight::metaflight () at eval.c:41
#11 0x0804addf in main () at eval.c:41
#12 0x409c6507 in __libc_start_main (main=0x804ad68 <main>, argc=1, ubp_av=0xbffffbc4, init=0x804a100 <_init>, fini=0x804eae0 <_fini>, rtld_fini=0x4000dc14 <_dl_fini>, stack_end=0xbffffbbc) at ../sysdeps/generic/libc-start.c:129

This reminded me of a message that I got from Paolo a while ago that said this:

> 2. You must make sure that texture coordinates are already set on gsets,
> and that gstate already points to your pfClipTexture when you assign
> the geostate to the geoset. This is when pf will look to see whether
> texcoord bounds need to be computed for the geoset.

My gstate already points to my cliptexture when I assign it, but maybe the geoset doesn't have any tex coords. Does this make sense, or am I barking up the wrong tree?

Terry Welsh
http://www.reallyslick.com

_____________________________________________________________
  Get Your Free Email at http://www.totalmail.com

_____________________________________________________________
Select your own custom email address for FREE! Get you++at++yourchoice.com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Feb 26 2003 - 13:58:59 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.