The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
60 views

RenderTexture is not cleared after it was released

I want to create some image effect. I've written a script that draws a cube mesh at the render target and then copies the render texture at the screen. I don't want to render anything except Mesh(M) ...
1
vote
1answer
107 views

Is setting the render target back to backbuffer supposed to take long?

I am creating a game in Monogame (XNA extension). I draw to a render target to display menu items for my game. Everything works fine, however... Whenever I set the render target back to the back ...
1
vote
1answer
72 views

XNA Render Targets Depth Testing

I imagine this is a problem that gets asked quite often, but reading up on it I can't seem to get a definitive answer on how to solve it. I've got two HLSL shaders (I've simplified them in the ...
0
votes
1answer
952 views

SDL2 render to texture support

I'd like to use the function int SDL_SetRenderTarget(SDL_Renderer *renderer, SDL_Texture *texture) in my 2D game. At this point I am using only the SDL 2.0 API, and using openGL seems overkill to ...
2
votes
0answers
90 views

Writing to a D3DFMT_R32F render target clamps to 1

I'm currently implementing a picking system. I render some objects in a frame buffer, which has a render target, which has the D3DFMT_R32F format. For each mesh, I set an integer constant ...
2
votes
1answer
127 views

Resolution independence - resize on the fly or ship all sizes?

My game relies heavily on textures of various sizes with some being full-screen. The game is targeted for multiple resolutions. I found that resizing textures (downsizing) works quite well for this ...
2
votes
1answer
88 views

XNA Scale and Render Targets

I'm working on a top down Strategy/RPG/Tower Defense XNA Game for Windows, and I'm running into an issue while scaling. My display mode is 1680 X 1050, and that is what I'm setting the ...
2
votes
1answer
186 views

Issues upscaling pixel art with SampleState.PointClamp

I'm developing a 2D game, and I'm striving to create a nice blocky low-res appearance for the game, yet allow it to be played at variable resolutions. So, I've researched resolution independency and ...
-2
votes
1answer
204 views

XNA rendertarget sprite batch problem [closed]

When using this code: public static Texture2D ShowHealthBar(SpriteBatch spriteBatch,Texture2D empty, Texture2D full, float health) { spriteBatch.Begin(); RenderTarget2D ...
1
vote
0answers
240 views

DX9 Deferred Rendering, GBuffer displays as clear color only

I'm trying to implement Catalin Zima's Deferred Renderer in a very lightweight c++ DirectX 9 app (only renders a skydome and a model), at this moment I'm trying to render the gbuffer, but I'm having a ...
1
vote
0answers
68 views

XNA - Obtaining depth from the scene's render target? [duplicate]

Possible Duplicate: Depth buffer and render target I'm currently rendering my scene to a render target so it can be used for rendering methods such as post processing and order independent ...
0
votes
1answer
649 views

Proper way to use a RenderTarget2D to draw multiple textures?

In the process of trying to resolve a split screen issue, I've been trying to use a RenderTarget2D to draw a portion of my scene to a Texture2D, and then again to another Texture2D, but the end result ...
1
vote
1answer
119 views

Possible to draw a select portion of a render target? (in XNA)

I'm going to try to do this in reverse fashion and skip straight to the punch line, and then give the back story afterward: Is it possible to, after drawing a scene to a RenderTarget2D, only draw a ...
0
votes
1answer
259 views

Possible / How to render to multiple back buffers, using one as a shader resource when rendering to the other, and vice versa?

I'm making a game in Direct3D10. For several of my rendering passes, I need to change the behavior of the pass depending on what is already rendered on the back buffer. (For example, I'd like to do ...
3
votes
0answers
523 views

Copying render target texture loses all depth [duplicate]

I have a render target RenderTargetScene that holds my scene texture with the scene's depth buffer rtScene = new RenderTarget2D( graphicsDevice, ...
4
votes
3answers
178 views

What should I do if my text exceeds my text render target boundaries?

I have a method for drawing strings in 3D that does the following: Set a render target Draw each character as a quadrangle using a orthographic projection to the render target Unset the render ...
0
votes
1answer
115 views

Can I animate render targets or the swap chain?

I want to animate some synthetic video bits to fullscreen w/o tearing. Can I set up D3D 9/10/11 in exclusive mode, and have it present a series of buffers that I'm writing to? I know how to copy ...
9
votes
3answers
1k views

Pixel-perfect rendering to a rendertarget with a fullscreen quad

I have some trouble rendering a bunch of values to a rendertarget. The values never end up in the exact range I want them to. Basically I use a fullscreen quad and a pixel shader to render to my ...
1
vote
1answer
463 views

Writing to multiple RenderTarget2D's from HLSL shader

I need to write to two render targets: one for colour and another for depth+normal (for post-processing). I have a problem, though. Both targets seem to be getting the value output by COLOR0, while ...
2
votes
2answers
415 views

How to manage drawing loop when changing render targets

I'm managing my game state by having a base GameScreen class with a Draw method. I then have (basically) a stack of GameScreens that I render. I render the bottom one first, as screens above might ...