Jump to content

  • Log In with Google      Sign In   
  • Create Account

Implementing a single D3D surface in a 2D game/app!


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 SikCiv   Members   -  Reputation: 122

Like
Likes
Like

Posted 01 October 1999 - 11:45 AM

My game/app is totally in 2D using DirectDraw.
I have heard that using 3D hardware (using a TNT, Voodoo or similar) as the primary surface instead of the standard DirectDraw primary surface is heaps faster!?!? And I will be able to use the extra features 3D cards deliver (like smoothing etc..).

How do I implement a 3D Primary Surface without really implementing Direct3D?
I dont want to add 50,000,000,000 lines of code to my app just to get access to a simple 3D surface, and I dont really have the time to learn Direct3D at the moment, so...

.-==-..-==-..-==-..-==-..-==-..-==-..-==-.




Sponsor:

#2 Facehat   Members   -  Reputation: 696

Like
Likes
Like

Posted 01 October 1999 - 11:45 AM

A plain DirectDraw primary surface is always used whether you using Direct3D or not -- there is no special primary surface for Direct3D (Direct3D uses DirectDraws primary surface).

I think the method your hearing about is this: using 3d hardware to draw polygons with texture maps on them instead of plain old sprites. This allows you to use all the features 3D hardware lets you use (Alpha Blending, Shading, etc.), while not having a huge affect on performance (drawing 20-50 polygons isn't going to be terribly slow, heck, even 100 wouldn't be too bad).

Sadly, youll need to learn Direct3D (or OpenGL) to do this. Luckily they aren't too hard to learn, but unless you absolutely need these features I'd just stick with plain DirectDraw.

--TheGoop





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS