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
Post a Comment