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);

and finally added the matrix transformation call to the end of the
onLaonLayout() function:
float src[] = new float[] { 0, 0, width, 0, width, height, 0,
height };
float dst[] = new float[] { 0, 0, width, 0, width*2, height, -width,
height };
mMatrix.setPolyToPoly(src, 0, dst, 0, src.length >> 1);

and here's what it looks like:
http://censorednet.org/3dmapview.jpg

On Oct 11, 4:39 pm, Esteem <[EMAIL PROTECTED]> wrote:
> 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 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.
>
> > > 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 method is possible, but if it can
> > > be applied to MapView, i think it would do the trick.
>
> > > On Oct 9, 1: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 OpenGL.  For example, I have a MapView
> > > > which shows a particular location and I want to treat this as a 2D
> > > > plane in 3D so that I can rotate the plane along the y or x axis.
> > > >     Right now I have no idea how to approach this problem.  My initial
> > > > idea is to somehow render the output from MapView to a texture, and
> > > > then render that texture to the screen using OpenGL.
>
> > > > I got the idea from looking at the app Marvin, where the MapView looks
> > > > like a plane receding into the horizon.
>
> > > > -Marc
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to