the topic name might not be the best, but its all I could come up for, sorry.
Anyway, to the issue:
I am working on a little fun project and I am trying to do a “radar” sort of thing for the HUD. I know how to render to texture in order to do that but I dont know how to do the “double render” thing with changing materials. This might not even be the best way of going around it, so if you have any better ideas, do let me know
What I am trying to do is:
- main screen is a FPS type of view from the ships cockpit, rendered normally
- then there will be a HUD element, which I want to have a wireframe view from behind the ship (check the video at the end to see how Ive done it so far)
My question is then, how can I achieve this? I tried looking through some of the methods, but I couldnt find a way to save to a variable the default materials that are loaded from the models, which I need in order to revert the objects for the first rednder of the next frame.
vid of the wireframe “radar”: http://youtu.be/nefuAGnCGVw
this is footage from a previous version, done in a different engine, i am rewriting all from scratch, this is just to show how the main view would look: http://youtu.be/xkf4P6fG0u4