Hey all,
I am in the middle of a project, a bit like the mutant stadium competition thing where i have some big screens! I was wondering how i would go about projecting what the camera sees in udk onto a texture/mesh/material.
I did a bit of research where someone wrote that parenting a 2drender to texture node on the camera would work? Is this possible and the easiest solution? If so, how would i go about parenting them?
Thanks
Replies
Are you trying to render a screenshot through the camera?
Are you trying to render an environment map to a 2d texture cube map?
They show what is happening from a cameras perspective.
Something like the above image not the best example, but i hope it illustrates what i mean? How would i have a realtime video like that happening in a game?
What you need is a rendertotexture texture in your generic browser (right click and choose "new TextureRenderTarget2D"
then in your scene you'll need a camera to capture what you want, go to the actor classes tab in the generic browser and under uncategorized choose "SceneCapture2DActor" then add this to the scene and you'll see it's a camera that you can move around.
Double click on the camera (or press F4 while selected) and you'll see a tab with "Texture Target", go back to the generic browser and select the rendertotexture target you made, then press the green arrow next to Texture Target.
Now you can use that texturetarget as default texturenode in any material you want it will show the view from the camera in realtime.
More info here: http://udn.epicgames.com/Three/RenderToTexture.html