Skip to main content
gamedev.net
๐Ÿ”’ Locked

Problem Rendering to Texture

Started by Rosalia Dec 28, 2011 at 7:44 PM 1 replies 1.2k views
Original Post
Rosalia
Rosalia
Hi,

[color="#000000"]I am a set of tiles to a texture to avoid redrawing each tile every time. For some reason, when rendering to the texture it seems I cannot go outside the bounds of what would be my screen size (my texture is bigger than the screen). Any ideas why that should happen?

[color=#000000]I am creating a new ID3D10DepthStencilView[color=#000000], but using the same ID3D10Device[color=#000000].

[color=#000000]Thank you,
[color=#000000]Rosalia
Rosรกlia G. Schneiderhttp://rosaliaschneider.wordpress.com/
RDragon1
RDragon1
Make sure your Viewport is set correctly - it controls the area that you can render to
Rosalia
Rosalia
Solved the problem, I had forgotten to set a new projection matrix when rendering to the texture.
Rosรกlia G. Schneiderhttp://rosaliaschneider.wordpress.com/

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.