Re: Problem with DirectX6 -> DDSURFACEDESC2 structure and lpSurfac
From: Exorsus (Exorsus_at_discussions.microsoft.com)
Date: 12/02/04
- Next message: PKH: "Re: How to render meshes with transparent areas"
- Previous message: Fabian Schmied: "Re: Problem with DirectX6 -> DDSURFACEDESC2 structure and lpSurface"
- In reply to: Exorsus: "Re: Problem with DirectX6 -> DDSURFACEDESC2 structure and lpSurfac"
- Next in thread: Fabian Schmied: "Re: Problem with DirectX6 -> DDSURFACEDESC2 structure and lpSurface"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 2 Dec 2004 02:15:09 -0800
I am loading data from RAW 24-bit file format (R8G8B8, you know) into my
unsigned char pointer and then i lock the surface and memcpy data into
lpSurface.....and, indeed it's not working -> it looks like interlaced image.
And the question is: what the hell is that?
"Exorsus" wrote:
> Thanks for your reply ->
> there is no problem with pitch and width, i have studied DX Help and there
> was explained lPitch and Width.....so that's not the problem....
> Aah, if i may ask ->
> what's the RGB Color Mask and how to use it???
>
> "Phil Taylor" wrote:
>
> > what surface format?
> >
> > are you using the pitch of the surface and not the width in your loop?
> >
> > are you using the R,G,B color masks to convert the raw data?
> >
> > "Exorsus" <Exorsus@discussions.microsoft.com> wrote in message
> > news:81AE605D-ECC8-4FB1-BEEA-63771FC058FB@microsoft.com...
> > > Hi,
> > > (First sorry for my english, i'm from central europe...)
> > > i've got one little problem with copying my own data acquired from custom
> > > image file format into the lpSurface.
> > > I've tried almost everything, but i simply don't know how to setup
> > > DDSURFACEDESC2.
> > > I copied 24-bit RAW RGB image into the lpSurface and there was some sort
> > > of
> > > graphics corruption in the loaded image, i think it's all in
> > > DDSURFACEDESC2......
> > > So i am interested...what's the problem......???
> > >
> > > (for entusiast, my source code ->
> > > www.freewebs.com/stallionengine/sourcecode/stallionsourcecode.rar )
> > >
> > > Thank you and have a nice day....;)
> >
> >
> >
- Next message: PKH: "Re: How to render meshes with transparent areas"
- Previous message: Fabian Schmied: "Re: Problem with DirectX6 -> DDSURFACEDESC2 structure and lpSurface"
- In reply to: Exorsus: "Re: Problem with DirectX6 -> DDSURFACEDESC2 structure and lpSurfac"
- Next in thread: Fabian Schmied: "Re: Problem with DirectX6 -> DDSURFACEDESC2 structure and lpSurface"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|