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
render plane on top of rectangle in rajawali #1608
Comments
This sounds like you want to render over a section of an android native view. Is this correct? |
Yes . I want to render it on android surface view. |
Well you have a few options. You could either use android's layout system to confine the surface view to the area you wish to render, or you can do an inverse projection to map the screen coordinates to GL coordinates. Similar to how |
Thanks for your reply. But I am using Rajawali for the first time. |
We do not have a tutorial or example of this. Google "GLU unproject" or look at how the method I pointed out works. You don't need to understand how Rajawali or the GLU unproject methods work to be able to use them. |
I tried to use setScreenCoordinates() method like this
but it gives me following errors java.lang.IllegalArgumentException: array == null Do I need to find those "model view projection" matrices by myself or are those calculated internally? |
What version of rajawali are you using? Looking at the current |
I am using version 0.9. |
Here is the link to the code. please tell me how to integrate setScreenCoordinates() method in the above code. |
Version 0.9 has been unsupported for some time now. To be honest I can't even remember how some of it worked. The Google Plus community will have users who are more familiar with the 0.9 version than I am at this point. Since this issue is related to an unsupported version, I am closing the ticket. |
I have an image in android with a rectangle on it. I have found the coordinates of that rectangle which is in the following format.
rect(left,top,right,bottom)
I have created a plane in rajawali and I want to render/draw the plane exactly on top of the original rectangle.
How do I render the plane, because rect method gives coordinates in different coordinate system and rajawali uses different coordinate system to render objects.
How do I map the rect coordinates to rajawali coordinates?
The text was updated successfully, but these errors were encountered: