Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Don't forget to read Tuesday's email newsletter for your chance to win a free copy of Construct 2!


Ghyrome

Member Since 03 Feb 2013
Offline Last Active Nov 01 2014 09:31 AM

Topics I've Started

Creating a 2D texture for use by BitmapFactory.

03 May 2013 - 08:32 AM

I would like to convert a simple brushed steel image to a 2D texture for use by BitmapFactory's decodeResource method.

 

Is there a public domain program that does this conversion?  My environment is: Android, Java and OPENGL ES 2.0.  

 

Thanks for any help in advance.


Can't see the front face in simple rotating cube

03 February 2013 - 06:02 PM

When rotating a simple 1x1x1 cube on all three axis, I cannot see the front face.  

 

I have set "GLES20.glClear (GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT).  And I have tried to no avail the following: GLES20.glDisable (GLES20.GL_CULL_FACE), and GLES20.glFrontFace(GLES20.GL_CCW) and GLES20.glFrontFace(GLES20.GL_CW).  

 

I also have set the following view-port and frustum in the onSurfaceChanged method: GLES20.glViewport(0, 0, width, height), final float ratio = (float) width / height;  final float left = -ratio; final float right = ratio; final float bottom = -1.0f; final float top = 1.0f; final float near = 1.0f; final float far = 10.0f; Matrix.frustumM(mProjectionMatrix, 0, left, right, bottom, top, near, far).

 

I've wound the front face both CW & CCW. I specifically wound the front face in the following orders: CCW [(0, 1, 2) (2, 3, 0)] & CCW [(0, 1, 2) (0, 2, 3)].

 

I changed my right face from blue to red just so I could see RED!  And I'm still seeing red (just joking).

 

In closing, HELP!

 

Thanks in advance, Ghyrome.


PARTNERS