From: Stace Peterson (stacep++at++sgi.com)
Date: 09/12/2005 18:57:10
Ben,
Sorry about the slow response. The most likely culprit is an invalid
minification or magnification filter (due to a small bug in our cube map
implementation). Try explicitly setting the filters to PFTEX_BILINEAR
like so:
tex->setFilter(PFTEX_MINFILTER, PFTEX_BILINEAR);
tex->setFilter(PFTEX_MAGFILTER, PFTEX_BILINEAR);
Most likely, the defaults are set to mipmapping filters, and the
textures themselves are not mipmapped. Thus, the errors.
Hope this helps,
Stace
ben chang wrote:
>
> 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
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
-- ------------------------------------------------------------------ Stace Peterson stacep++at++sgi.com Silicon Graphics, Inc. (650) 933-2323
This archive was generated by hypermail 2b29 : Mon Sep 12 2005 - 18:57:14 PDT