Re: Problems loading textures

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++sgi.com)
Tue, 17 Nov 1998 11:19:56 -0800


Your application shouldn't lock but may pause briefly as
textures are downloaded.

To avoid tou need to call pfuDownloadTexList ahead of time.

perfly has an example of traversing to build a list then
downloading that list in the draw process at the start.

Cheers,Angus.

José María López wrote:
>
> Hi,
> I have a problem loading a scene with Performer 2.2: it seems that when
> I load all geometries with pfdLoadFile,its textures are loaded into RAM no
> into texture's memory. Then sometimes when I run my app, locks itself. It's
> strange, because depend on where I looking at first my app crashes or don't.
> I debug my app and I see that it crashes when I call pfDraw() (I use only
> one process for app,cull & draw). i only can think that my problem it's if I
> try to look at a part of scene no loaded into memory yet (but it has been
> loaded with pfdLoadFile) my app crashes.
> how can I know that I have loaded all my textures into textures' memory
> before I call pfDraw() by first time?
> I would need something similar to perfly when shows all textures at
> beginning, wouldn't I ?
>
> Any idea?
>
> Thanks very much,
>
> Jose M. Lopez
>
> ************************************************************
> Jose M. Lopez
> Project Manager
> ESPELSA STC
> Acanto 22
> 28045 Madrid, Spain
> Phone: +34 1 527 02 15
> Fax: +34 1 530 10 25
> email: jmlopez++at++espelsa.es
> ***********************************************************
>
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
"Only the mediocre are always at their best." -- Jean Giraudoux 

For advanced 3D graphics Performer + OpenGL based examples and tutors: http://www.dorbie.com/


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Nov 17 1998 - 11:20:00 PST

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