Home Technical Talk

Camera projection in UDK

keyframe
Offline / Send Message
Sharvo keyframe
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

  • Butthair
    Offline / Send Message
    Butthair polycounter lvl 11
    I'm not quite sure what you're trying to accomplish.

    Are you trying to render a screenshot through the camera?

    Are you trying to render an environment map to a 2d texture cube map?
  • Sharvo
    Offline / Send Message
    Sharvo keyframe
    Sorry for the confusion, basically you know when your playing a sports game and you have those giant televisions (jumbotrons) i think they are called.

    They show what is happening from a cameras perspective.

    newhdscreen-680uw.jpg

    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?
  • elementrix
    Offline / Send Message
    elementrix polycounter lvl 16
    Yes this is pretty easy in UDK

    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
Sign In or Register to comment.