Re: Loading textures on an RE

New Message Reply Date view Thread view Subject view Author view

Sharon Clay (src++at++rose.asd.sgi.com)
Tue, 16 Apr 1996 10:58:08 -0700


+>---- On Apr 16, 9:46am, Remi Arnaud wrote:
> Subject: Re: Loading textures on an RE
->From guest++at++holodeck.csd.sgi.com Tue Apr 16 10:48:27 1996
->From: "Remi Arnaud" <remi++at++remi>
->Date: Tue, 16 Apr 1996 09:46:48 -0700
->In-Reply-To: ROY RUDDLE <saprar++at++thor.cf.ac.uk>
-> "Loading textures on an RE" (Apr 16, 12:48pm)
->X-Mailer: Z-Mail (3.2.3 08feb96 MediaMail)
->To: Ruddle++at++cardiff.ac.uk
->Subject: Re: Loading textures on an RE
->Cc: info-performer++at++remi
->
->On Apr 16, 12:48pm, ROY RUDDLE wrote:
->> Subject: Loading textures on an RE
->> This must have a simple answer, but I can't find it anywhere:
->>
->> As I'm running a small DB I want to force all textures to be loaded into
->> the RE's texture memory while (or just after) the DB is loaded. I've got
->> plenty of texture memory. At the moment (ie. by default) textures are
->> being paged in when they first get displayed.
->
->That's it. All textures are mip-mapped the first time they are displayed.
->So, one must display all textures when (or just after) the DB is loaded.
->That's why perfly shows all textures before entering in the 'drive' mode.
->
->It's not mandatory to display the texture, one can use the back-buffer to draw
->a polygon per texture when displaying something else on the front-buffer.
->

Actually, it isn't really necessary to draw them at all.
Having them be bound as the current texture will do it.
The PFUTEX_APPLY option to pfuDownloadTexList() does exactly this by calling
pfApplyTex().
FYI, if you don't have enough total texture memory, but want the
textures to get pre-defined with their mipmaps generated before
starting your simulation, you can use the PFU_DEFINE option which
simply calls pfFormatTex() for each pfTexture.

It is important that textures generally not wait for a polygon to
get downloaded or it would be hard schedule or pre-load textures
when database paging.

src.

-- 
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Systems Dev.
src++at++sgi.com  (415) 933 - 1002  FAX: (415) 965 - 2658  MS 8U-590
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:43 PDT

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