[info-performer] linux + cubemap?

Date view Thread view Subject view Author view

From: ben chang (bchang++at++artic.edu)
Date: 07/21/2005 23:58:01


are cubemaps supported in linux (other than Prism)? when i try to create one, i
just seem to get a null texture. no errors, and according to perfly's
diagnostics the dimensions are correct, but it's not showing up.

tex->setFormat (PFTEX_CUBE_MAP,1);

tex->loadMultiFile("nvlobby_negx.rgb",0);
tex->loadMultiFile("nvlobby_posx.rgb",1);
tex->loadMultiFile("nvlobby_negy.rgb",2);
tex->loadMultiFile("nvlobby_posy.rgb",3);
tex->loadMultiFile("nvlobby_negz.rgb",4);
tex->loadMultiFile("nvlobby_posz.rgb",5);
geostate->setMode(PFSTATE_ENTEXTURE,PF_ON);
geostate->setAttr(PFSTATE_TEXTURE,tex);

perfly output:

Loading texture:
File name = (null)
Image size (SxTxR) = 512x512x1
Total texture use = 1.500 MB
This texture uses = 5.085% of 29MB memory
Total texture use = 5.085% of 29MB memory

if i ask it to load bogus image files, i do get the correct errors ("cannot find
file", "all 6 images must be specified for a cube map!")

thanks,

--ben


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Jul 21 2005 - 23:58:12 PDT