Re: DirectX and ScreenSaverProc



Use FindFirstFile() and FindNextFile() to loop on files in a directory, and
load each one into a texture...
At runtime, just set the new texture pointer for changing it on the cube...

Wessam Bahnassi
Microsoft DirectX MVP,
Lead Programmer
In|Framez

"Bryan" <kashmir76@xxxxxxxxxx> wrote in message
news:MZCdnZbFuqmDvR_fRVn-jg@xxxxxxxxxxxxx
> Thanks for replying.
>
> How do you suggest that I load all the pictures of a given directory? I
> want the pictures to change while the cube is spinning. Any ideas?
>
> Bryan
>
> "Wessam Bahnassi" <wbahnassi@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
> message news:uhnTiLfVFHA.1384@xxxxxxxxxxxxxxxxxxxxxxx
>> Load the textures before playing anything. Loading such big resources
> amidst
>> app main loop is a big no-no for performance...
>>
>> Wessam Bahnassi
>> Microsoft DirectX MVP,
>> Lead Programmer
>> In|Framez
>>
>> "Bryan" <kashmir76@xxxxxxxxxx> wrote in message
>> news:VKidnbuJZp9LRR3fRVn-pg@xxxxxxxxxxxxx
>> > Hi all,
>> >
>> > I hope that someone will be able to help me. I created a screensaver
> of
>> > a cube that I can map my pictures to all 6 surfaces. I call the render
>> > function each time a WM_TIMER messageis recieved and then after every
>> > 10
>> > (or
>> > 20 ect ) WM_TIMER calles I also call D3DXCreateTextureFromFile to load
>> > another file on to the cube. The problems is that while the file is
>> > loading
>> > the cube stops spinning. Does anyone have an idea how I can avoid this
> and
>> > keep the cube from stopping while mesh changes?
>> > Thanks in advance.
>> >
>> > Bryan
>> >
>> >
>>
>>
>
>


.



Relevant Pages

  • Re: DirectX and ScreenSaverProc
    ... > Use FindFirstFileand FindNextFile() to loop on files in a directory, ... > load each one into a texture... ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Fast mip-map generation
    ... Mip-Map Generation of this memory ... The next step is linear averaging, where you simply take 0.25*sum(four_source_pixels), possibly after ungamma-conversion of each of the source pixels. ... If you do go this route, then you should probably first convert the source texture to linear format, then generate all the reduced size texture before converting back to whatever format you want your texture to be in. ... load four source pixels into xmm0..xmm3. ...
    (comp.lang.asm.x86)
  • Re: Converting fom cube face to texture
    ... You'll need to specify 3D texture coordinates on your object to correctly ... That would be very simple for a cube object. ... >> Wessam Bahnassi ... >>> Ultimatly im trying to render a cube map round my scene. ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Two simple meshes - memory gone
    ... I load two meshes, tiger.x and bigship1.x (both ... calling a method from an invalid ID3DXBuffer pointer if the model fails to ... name, but there can be materials that don't have a texture mapped to them, ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Compressed textures
    ... then load the texture into a plain surface in system memory and use ... When a movie is small enough, I readit into system memory as a binary stream defining the texels of different frames. ... Whenever I need a new video frame in the texture, I lock the texture, write the bytes and unlock it. ...
    (microsoft.public.win32.programmer.directx.graphics)