Questions tagged [rendertarget]

83 questions
0
votes
1 answer

RenderTarget content changes when game is minimized

So I'm working on a GUI library for XNA and I've come across an issue I can't find a solution to. I'm working with rendertargets a lot, which is annoying in itself, but I have a really weird and specific issue. In my ProgressBar class I'm drawing…
pixartist
  • 1,137
  • 2
  • 18
  • 40
0
votes
1 answer

How do I resolve this argument error for RenderTarget2D?

I'm working with a bit of XNA code, as a beginner. So i use this tutorial, but it appears that i am doing something and i do not know why. http://www.xnadevelopment.com/tutorials/theroadnottaken/theroadnottaken.shtml I am at the part with Path…
0
votes
1 answer

Load texture resized in XNA

I'm developing for Windows Phone XNA and would like to load textures with a smaller size to decrease memory impact where the full image isn't required. My current solution is to use a rendertarget to draw and return that rendertarget as a smaller…
0
votes
1 answer

Scaling RenderTarget2D doesn't scale SourceRectangles

I develop a 2D match3 game in XNA. The core logic and animations are done. I use RenderTarget2D to draw the entire board. The board has 8 rows and 8 columns with 64x64 textures (the tiles), which could be clicked and moved. To capture the mouse…
Sprint Debugger
  • 113
  • 1
  • 1
  • 11
0
votes
1 answer

what is the difference between getBuffer() and CreateRenderTargetView in directx 11?

I am new to DirectX11 and learning it. (I come from openGL background). I am confused and trying to understand what exactly does the following API calls do and what is the difference between them: ID3D11Texture2D* pBackBuffer = NULL; hr =…
brainydexter
  • 19,826
  • 28
  • 77
  • 115
0
votes
1 answer

OMSETRENDERTARGETS_INVALIDVIEW on switching RenderTargets (DirectX)

i was trying to render to a texture to use it for post-processing. I've read a lot of tutorials about this stuff und have tried it for myself now, but apparently i am doing something wrong. I already was asking another question regarding this topic,…
puelo
  • 5,464
  • 2
  • 34
  • 62
0
votes
2 answers

Storing render from RenderTarget2D to Color Array Error

So I am trying to store the result from a render target into an array of Colors so I can manipulate them individually with an iterator. For some reason, the below code sets every value in the array to R=0, G=0, B=0, A=0. As though it was never…
Kartik
  • 104
  • 1
  • 2
  • 10
-1
votes
2 answers

How do you update a UTextureRenderTarget2D in C++?

I'm referenced @J. Rehbein's ask. How do you update a UTextureRenderTarget2D dynamically in C++? And use public modules ("Core", "CoreUObject", "Engine", "InputCore", "UMG", "GameplayTasks", "Landscape", "RHI", "RenderCore"). Why printed assertion…
NedCrow
  • 101
  • 1
  • 5
1 2 3 4 5
6