[android-beginners] Re: Manipulate 2D View in 3D OpenGL

2008-10-14 Thread Romain Guy
Do not use the Context(GL) constructor, it is *not* supported. On Tue, Oct 14, 2008 at 9:42 AM, Anm <[EMAIL PROTECTED]> wrote: > > > On Oct 12, 4:38 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote: >> Rendering to OpenGL is a feature that got dropped for 1.0. Note that it >> would simply render the sa

[android-beginners] Re: Manipulate 2D View in 3D OpenGL

2008-10-14 Thread Anm
On Oct 12, 4:38 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote: > Rendering to OpenGL is a feature that got dropped for 1.0. Note that it > would simply render the same way as with a normal Canvas, it would not > automagically draw on an arbitrary mesh. On Oct 12, 5:25 pm, "Romain Guy" <[EMAIL PROTE

[android-beginners] Re: Manipulate 2D View in 3D OpenGL

2008-10-12 Thread Romain Guy
OpenGL is not supported by the Canvas. On Oct 12, 2008 5:11 PM, "sandroid" <[EMAIL PROTECTED]> wrote: I just found another useful trick. Originally I wanted to use OpenGL because the ModelView matrix makes it very easy to rotate objects in 3D. I found something very similar in android.graphi

[android-beginners] Re: Manipulate 2D View in 3D OpenGL

2008-10-12 Thread sandroid
I just found another useful trick. Originally I wanted to use OpenGL because the ModelView matrix makes it very easy to rotate objects in 3D. I found something very similar in android.graphics.camera which has three different routines for rotating (RotateX, RotateY, and RotateZ). Here is the co

[android-beginners] Re: Manipulate 2D View in 3D OpenGL

2008-10-12 Thread Romain Guy
Rendering to OpenGL is a feature that got dropped for 1.0. Note that it would simply render the same way as with a normal Canvas, it would not automagically draw on an arbitrary mesh. On Oct 12, 2008 4:33 PM, "sandroid" <[EMAIL PROTECTED]> wrote: Yes, I'm getting some good results too. I al

[android-beginners] Re: Manipulate 2D View in 3D OpenGL

2008-10-12 Thread sandroid
Yes, I'm getting some good results too. I also found out that you can get a Bitmap of the MapView by do the following 1) Create a Bitmap 2) Construct a Canvas with Bitmap as an input argument 3) call something like mMapView.draw(canvas) and it will draw the view to the canvas instead of to the s

[android-beginners] Re: Manipulate 2D View in 3D OpenGL

2008-10-11 Thread Esteem
I just experimented real quick on implimenting the PolyToPoly method to the MapViewCompassDemo.java APIDemo and it worked! I added mMatrix as a variable for the class: private Matrix mMatrix = new Matrix(); added a concat call to the protected void dispatchDraw() function: canvas.concat(mMatrix

[android-beginners] Re: Manipulate 2D View in 3D OpenGL

2008-10-11 Thread Esteem
check out 3:10-3:20 of their video. I dont think thats street view. Also 5:35-6:00 where they specifically show driving directions in a 3D landscape mode :) On Oct 11, 8:10 am, Fugita <[EMAIL PROTECTED]> wrote: > actually they are using the street view and I think this means it is > only possibl

[android-beginners] Re: Manipulate 2D View in 3D OpenGL

2008-10-11 Thread Fugita
actually they are using the street view and I think this means it is only possible were street view can be used. On Oct 11, 3:11 am, Esteem <[EMAIL PROTECTED]> wrote: > Enkin's (http://www.enkin.net/) "landscape mode" does this. I'm not > sure what method is used or anything but its possible. > >

[android-beginners] Re: Manipulate 2D View in 3D OpenGL

2008-10-11 Thread Esteem
Enkin's (http://www.enkin.net/) "landscape mode" does this. I'm not sure what method is used or anything but its possible. But check out the PolyToPoly API Graphics demo which shows how to transform a canvas to make it look 3D without opengl. I havnt really looked over MapView to see if this meth

[android-beginners] Re: Manipulate 2D View in 3D OpenGL

2008-10-10 Thread Fugita
If you get this up and running I know I would like to see a copy of it. I am really looking for something to replace my MobileNavigator from Navigon. And it would seem that none of the navigation software companies are going to support Android since when I asked if they would they all said.. "At

[android-beginners] Re: Manipulate 2D View in 3D OpenGL

2008-10-10 Thread sandroid
Yes, that's the right idea. Right now I'm looking into the getDrawingCache() routine which returns a bitmap. Then I might load that bitmap into a view with OpenGL enabled. Unfortunately, the only code examples I have found for getDrawingCache() are only snippets of code and I can't tell when or

[android-beginners] Re: Manipulate 2D View in 3D OpenGL

2008-10-10 Thread Fugita
Hey if you get this to work then maybe we can get something like a 3D turn by turn driving direction program for Google finally! On Oct 9, 3:23 pm, sandroid <[EMAIL PROTECTED]> wrote: > Hi, >     Is there a way to take the frame from a view, such as the MapView, > and manipulate it in 3D with Ope