So i am trying to render a view from a second camera in the upper right hand side of the screen. However when I do this, the render window/viewport is slightly transparent so the image gets distorted by what is "behind" the viewport. If it moves over well lit terrain, it changes siginficantly. Is there a way to make it so that the image "behind" the viewport is not slightly transparent?
As an example, i opened the Tutorial -> 14 - Game Basics -> 14 - Camera Modes. If you create "Camera Cam2;" at the beginning and then replace the draw function with the following, you will see what i mean. I have also attached a short video showing the issue.
Code:
Camera mainCam = Cam;
Renderer(Render);
D.text (0, 0.9, "Press Tab to switch camera modes");
Check out the render to texture tutorial. You could try to render your smaller camera view to a texture similarly to how you are doing it now and draw the texture up in that corner.
Yeah, I know that is possible but I want to understand why these images are blending together. My goal really is to understand how the engine works and all it capabilities.
Thank you for the advice though Rubeus, it is very much appreciated.
Can you attach the full code of your app?
With the changes you've mentioned I cannot reproduce the issue. (the small camera is not the same as in your video)
Ohh, that explains it. Sounds like an excuse to upgrade my graphics card to me!!
I feel better that I was doing it right though. I think i tried nearly every Render Mode and Alpha mode you have thinking that I was doing something wrong there.