Re: Texturing fails silently, objects are all white
From: Jack Hoxley (Jack.Hoxley_at_ntlworld.com)
Date: 08/17/04
- Next message: Clafou: "Re: Texturing fails silently, objects are all white"
- Previous message: Jack Hoxley: "Re: Loading big textures asynchronously, without interfering with"
- In reply to: Clafou: "Texturing fails silently, objects are all white"
- Next in thread: Clafou: "Re: Texturing fails silently, objects are all white"
- Reply: Clafou: "Re: Texturing fails silently, objects are all white"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 17 Aug 2004 17:23:16 +0100
As a thought... even with the managed pool where it pages it in/out of VRAM
as/when needed, surely it still must be in VRAM when the Draw*( ) call is
made? With 4mb of RAM you'd struggle to fit a 24bit 1024x1024 texture in
(3mb exactly iirc). The front/back buffers will probably knock the usable
space down to ~2mb at a guesstimate.
Thus if the image simply cannot fit in at all, then there isn't anything
that can be done about it... Maybe the only solution then would be to
downsample the image until it fits? or tile-it so that only a small %age of
it needs to be in memory at each Draw*( ) call?
hth
Jack
"Clafou" <Clafou@discussions.microsoft.com> wrote in message
news:88358A09-840D-470B-B6BA-F964E8B4731C@microsoft.com...
> Hi
>
> I am using D3DXCreateTextureFromFileEx to load textures into the managed
> pool. These textures are big photos, and on old graphics cards with low
> memory (4Mb of VRAM), the textures are not displayed at all and my objects
> are all white. I imagine this is because the video memory is too low? Is
> there a workaround?
>
> I would need to at least detect that texturing fails (currently, rendering
> executes without returning any error code), so that I can try to reduce
the
> size of the texture or output a meaningful error message. But so far I
> couldn't find any way to detect failure. Should I used the default pool
> instead of the managed pool, would that help me detect a failure?
>
> Many thanks in advance!
> Clafou
- Next message: Clafou: "Re: Texturing fails silently, objects are all white"
- Previous message: Jack Hoxley: "Re: Loading big textures asynchronously, without interfering with"
- In reply to: Clafou: "Texturing fails silently, objects are all white"
- Next in thread: Clafou: "Re: Texturing fails silently, objects are all white"
- Reply: Clafou: "Re: Texturing fails silently, objects are all white"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|