Colored 3D Cube

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

Postby fanno » Mon Aug 10, 2009 11:39 pm

I can't seem to figure out how i can color each side a solid color ? can i use this method to do this ?

it will also be ok if i can do it using bitmap ... but how do i apply different bitmap to each side ?

Thanks.
fanno
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Aug 10, 2009 11:35 pm

Top

Re: Colored 3D Cube

Postby herman » Tue Aug 18, 2009 12:09 pm

Ery86 wrote:
plusminus wrote:import android.graphics.OpenGLContext;


this import "cannot be resolved"... why?
Are you developing in 1.5 or 1.1?

OpenGLContext is not available in 1.5. Use GLSurfaceView.
herman
Once Poster
Once Poster
 
Posts: 1
Joined: Tue Aug 18, 2009 12:05 pm

Postby mangaluve » Tue Aug 18, 2009 11:07 pm

Is it not possible to render OpenGL graphics into a regular View (and not a SurfaceView) in 1.5? I want to use some 3D-effects in na otherwise "normal" application.
mangaluve
Experienced Developer
Experienced Developer
 
Posts: 82
Joined: Mon Mar 23, 2009 8:59 pm

Re: Colored 3D Cube

Postby hohoanganh205 » Tue May 29, 2012 4:59 am

I import to Eclipse and have many errors, see pic:

[img]http://nm3.upanh.com/b5.s26.d1/e02a810dcb11a2b8ce7e3f10ce8139bc_45396343.1.jpg

[/img]

Then I move images and code to another new project (using android 2.3.1) and have some errors again:

[img]http://nm1.upanh.com/b2.s27.d1/e2f0d975f6d6b36db1b682f24b6e56a8_45392571.2.png
[/img]

[img]http://nm7.upanh.com/b1.s26.d2/d5e38901a3d410a138c277b578bbd375_45392547.3.png
[/img]

This is code mediafire.com/?yiocm8li8dwl87t ( using android 2.3.1)


Thanks for help
hohoanganh205
Once Poster
Once Poster
 
Posts: 1
Joined: Tue May 29, 2012 3:31 am

Top
Previous

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: No registered users and 5 guests