performance - How do I generate a bitmap from a model using using XNA? -


i wish dynamically create image (as texture2d) camera view of 3d model using xna-4.0. can set model , camera view desire, because need concurrently many large , complicated models every frame, best performance think substantially less computationally expensive if can instead somehow draw or write view bitmap once , repeatedly blit screen.

use rendertarget put viewport contents texture. create it, bind before draw, unbind , call gettexture. pretty fast , can used simultaneously (mrt - multiple render targets, afaik). example, use 4 render targets feed data deferred rendering pipeline.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -