Hi all,
I’ve been sitting on a new game idea for a year or so, and the new Unreal Engine subscription model has me thinking that I can finally build it. The announcement had me super excited, and I blitzed all the tutorials from my hotel room at GDC.
A core mechanic of my game is the mapping of 3D objects onto 2D space. Hopefully this image explains a little more:
The closest I have been able to get is using a spotlight with a light function to project a 2D image. I assume if I did a little more digging I could hook up a camera to render to texture too. My problem is that the light function is clearly designed for lighting rather than diffuse projection, and hence I don’t have control over blending modes. In terms of how the projection sits atop the scene, the decal seems the closest to what I’m looking for.
So to summarise the image, this is what I’m looking for:
- Camera to capture an object on a transparent background to a texture.
- Captured object is only visible to the projection camera. The player will not see the 3D captured object.
- Camera to project image onto the scene using camera coordinates.
- Projection to be shadeless, sit atop scenery materials, and not render on back faces.
Pretty crazy requirements I’m sure. Really hoping someone can point me in the right direction
Many thanks!