I’ve got a task coming up that I’m not entirely sure how to handle yet, so I thought I’d come ask for some advice. The problem is this:
I want to render a 3d object (In this case, a bust of a character) to the HUD. I want it to be able to have a transparent background, and I want it to have its own lighting. For vizualization, the problem is almost exactly the same as rendering the friendly face of doomguy in 3d, if you were attempting to ‘modernize’ classic doom.
The functionality I want is to have an animatable, independantly lit, ‘green-screened’ model of a face capable of receiving input on my HUD.
How I would solve it if I had ultimate power is this:
I’d have a secondary render space (so, not on the current level) with the model I want to render, giving me complete control over lighting and everything as I want it.
Then, set a camera up and get that camera to render its view as a 2d texture (I know how to do this!)
Then, chromakey that texture… somehow… and render that to the HUD.
The problem is, I have no idea how to set up a ‘secondary level’ to render from short of just making a floating box far off the normal level’s bounds and setting up my model and lights in that contained environment. I also have no idea how to chromakey a texture in-line, and suspect it’d involve some C++ coding.
Thoughts? Advice? How would you approach this problem?