Dynamic Lights Changes

Problems with Canvas, OpenGL, etc...

Dynamic Lights Changes

Postby lukasz.iwanski » Tue Nov 09, 2010 3:07 pm

Hi Guys,

I have a bit of code:

float[] lightAmbient = {0.0f, temp, 0.0f, 1.0f};
float[] lightDiffuse = {0.0f, temp, 0.0f, 1.0f};
float[] lightPosition = {this.finishPointX, 0.5f, this.finishPointY, temp};

where temp is updated on every draw stage by 0.1f until is 1.0f then return to 0.2f

and that is working fine on my PC but on my HTC desire I can see only black screen.

My Question is.. is that normal?

Kind Regards,
Luke
Deep Beta - That's the way the cookie crumbles
User avatar
lukasz.iwanski
Freshman
Freshman
 
Posts: 2
Joined: Fri Nov 05, 2010 8:56 pm
Location: Edinburgh

Top

Re: Dynamic Lights Changes

Postby seed » Tue Nov 09, 2010 7:37 pm

lukasz.iwanski wrote:Hi Guys,

I have a bit of code:

float[] lightAmbient = {0.0f, temp, 0.0f, 1.0f};
float[] lightDiffuse = {0.0f, temp, 0.0f, 1.0f};
float[] lightPosition = {this.finishPointX, 0.5f, this.finishPointY, temp};

where temp is updated on every draw stage by 0.1f until is 1.0f then return to 0.2f

and that is working fine on my PC but on my HTC desire I can see only black screen.

My Question is.. is that normal?

Kind Regards,
Luke


Not sure what you mean? By "on my PC" do you mean in the emulator? You aren't showing your GL calls. That would be more helpful. Are you using float buffers for your lights?
Visit Exit 4 Gaming - http://www.exit4games.com/
Home of LavaBall - http://exit4games.com/?page_id=3
Home of Rebound - http://exit4games.com/?page_id=138
Home of Tap Crazy - http://exit4games.com/?page_id=219
Download "Caveman Pool" From the Market Today!
seed
Senior Developer
Senior Developer
 
Posts: 103
Joined: Mon Mar 15, 2010 3:22 pm

Top

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

Who is online

Users browsing this forum: No registered users and 2 guests