Offscreen rendering with antialiasing
oleg_babyak_at_yahoo.com
Date: 08/31/04
- Next message: Song.: "How can I access framebuffer?"
- Previous message: Jack Hoxley: "Re: ID3DXSprite not stretching correctly."
- Next in thread: Joerg Wagner: "Re: Offscreen rendering with antialiasing"
- Reply: Joerg Wagner: "Re: Offscreen rendering with antialiasing"
- Messages sorted by: [ date ] [ thread ]
Date: 31 Aug 2004 04:41:11 -0700
Problem: I need offscreen rendering with antialiasing.
My steps:
I create a window that is not shown.
...
Rendering
...
After rendering I'm using following
pDevice->CreateOffscreenPlainSurface( width, height,
D3DFMT_A8R8G8B8, D3DPOOL_SYSTEMMEM, &pOffScreenSurface, NULL );
pDevice->GetRenderTarget( 0, &pRenderTargetSurface );
pDevice->GetRenderTargetData( pRenderTargetSurface,
pOffScreenSurface );
to copy data from render target into off screen surface( without
antialiasing ).
To turn antialiasing on I'm using multisampling
But in this case GetRenderTargetData failed (render target surface is
unlockable too)
In DirectX SDK Doc is mentioned that GetFrontBufferData method is the
only
way to capture an antialiased screen shot.
How can I solve my problem ?
( without using GetFrontBufferData, because I don't need a window on
the
screen )
- Next message: Song.: "How can I access framebuffer?"
- Previous message: Jack Hoxley: "Re: ID3DXSprite not stretching correctly."
- Next in thread: Joerg Wagner: "Re: Offscreen rendering with antialiasing"
- Reply: Joerg Wagner: "Re: Offscreen rendering with antialiasing"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|