Hi,
I m trying to get parts of my model appearing transparent.
I have the texture as a 1024 x 1024 24 bit PNG with some transparency on it.
I have added the following lines to my renderFrameQCAR method:
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
This does make the model transparent where it should be but it also makes the view that shows the camera appear black.
Any ideas?
Hi Gary,
Make sure that this is done after the QCAR::Renderer::getInstance().begin() otherwise you are interfering with QCAR's render of the camera view.
And do remember to switch it off at the end of your drawing code.