-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
addTexture() and updateTexture() functions do nothing #6
Comments
Can you please paste some snippets/gist of how you have already tried? addTexture is just a helper function and if you pass incorrect type the shader compilation errors should explain how to fix this |
Yes of course, this is my subclass of CameraRenderer (A modified copy of Example Renderer): `public class WriteDrawRenderer extends CameraRenderer
}` I modified the camera renderer a little bit by just removing the bitmap.recycle function because I need my bitmap again to keep the canvas saved. Thanks in advance for your help. |
I want to render a Canvas object into the camera surface so it appears in the recording. After googling it I found that it is done by adding a the bitmap from the canvas as a texture. I found something that does this in your app: the "addTexture" and the "updateTexture" functions, however It's been two working weeks and I'm trying to get this to work, with no result.
I tried extracting the canvas to a file as a bitmap to check if it is drawing successfully, and it does. It seems that there is a problem with those functions found in the "CameraRenderer.java".
Please I need your help, I don't know whether those functions should be used/working or not, nor if this is the way to do it. I also tried to do it using codes copied from from google search without success. Please let me know if it is an error in the function, or if it is not the way it's done, and in both cases, I am kindly asking for your support to do it, because it's been the only way to do my "drawing on camera while recording" app. I tried many ways and found the openGL way the best one.
The text was updated successfully, but these errors were encountered: