This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Direct3D w/ GapiDraw


Direct3D w/ GapiDraw

Postby v0101 » Apr 12, 2005 @ 3:31am

I have been using my own 3D engine with GapiDraw on the Pocket PC, but I'm porting my program to the PC and would like to use Direct3D for the desktop version.

I'm new to Direct3D, and the only way I could figure out how to use GapiDraw and Direct3D together was to copy the contents of my Direct3D back buffer to my GapiDraw back buffer, but this is really slow.

Does anyone know the best way to use GapiDraw and Direct3D together? Thanks.
v0101
pm Insider
 
Posts: 147
Joined: Feb 1, 2002 @ 12:04am


Postby Johan » Apr 12, 2005 @ 8:21am

Hm. I guess that the problem is that you want to use GapiDraw as an overlay to your 3D background. That way you have to read the contents of the backbuffer, which is painfully slow (reading videomemory is much slower than writing to it).

I guess I could add an interface to CGapiSurface that returns the LPDIRECTDRAW surface pointer behind it. And that way I guess you could create a texture based on that surface. But then it's the problem with alpha blending the texture in front of the 3D render (to simulate an overlay).. Hm.

Unfortunately I don't have any good ideas to this.
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby v0101 » Apr 12, 2005 @ 8:18pm

v0101
pm Insider
 
Posts: 147
Joined: Feb 1, 2002 @ 12:04am


Postby v0101 » Apr 14, 2005 @ 6:56am

Is there a way I can have GapiDraw only update to a portion of the screen defined by a RECT?
v0101
pm Insider
 
Posts: 147
Joined: Feb 1, 2002 @ 12:04am


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron