Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Direct2D but generate background from 3D Model

$
0
0
So the application itself is 2D and layered but I want to build the background bitmap from a Blender 3D model. When I make an appeal to Saint Google there seem to be an awful lot of ways of getting to the desired result. The process I have in mind is to do the following. Please comment on the practicality or otherwise of this approach. Use a background thread to: Load the model Create a 3D buffer for rendering into Render into the buffer Copy the 3D buffer to a 2D buffer somewhere The main loop will Blit? copy the 2D background to the backbuffer of the swap chain Overlay the background with various sprites Swap buffers Which leads to the following questions. What is the best option for exporting a Blender model for use by DirectX. Which API should I use to create a 3D buffer for rendering the model into? As it only gets rendered on scene changes, every 10-20 seconds, am I correct in assuming it shouldn't be part of the swap chain? In managing the background buffer is it best to, or must I, use a "dummy" device of some kind? How do I turn a 3D buffer into a 2D bitmap for load into the 2D swap chain? What is the best way to set up the 2D buffer so asto minimise the cost of the copy for every frame by the main loop?

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>