Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Contributor
TheMirzai
Posts: 3
Registered: ‎08-26-2011
My Carrier: wut

Textures

Using the sample found at:

 

http://docs.blackberry.com/en/developers/deliverables/17967/CS_Drawing_a_texture_on_a_GLField_124910...

 

shows up nothing when run on a 9900 with BB OS7 - all I get is the white square where the texture should be. My question is where the error is in the code - the texture is in the correct place and the correct size. I'm completely stumped as to why this sample isn't working on my phone. Any help would be appreciated.

Please use plain text.
Developer
rcmaniac25
Posts: 1,789
Registered: ‎04-28-2009
My Carrier: Verizon

Re: Textures

Welcome

 

First, you have bg.png as a resource correct? Just to make sure it isn't a missing image.

 

If so, and it loads, check this:

http://supportforums.blackberry.com/t5/Java-Development/White-Screen-on-OpenGL-Sample/m-p/592852

 

It's a different sample but similar effect.

------------------------------------------------------------
Three simple rules:
1. Please use the search bar before making new posts.
2. Kudo posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Please use plain text.
New Contributor
TheMirzai
Posts: 3
Registered: ‎08-26-2011
My Carrier: wut

Re: Textures

As far as I can tell there's nothing wrong with drivers/hardware acceleration. I've tried adding in individual pixels as a texture and still nothing is showing up. I have literally tried everything with this -_-

Please use plain text.
Developer
rcmaniac25
Posts: 1,789
Registered: ‎04-28-2009
My Carrier: Verizon

Re: Textures

I just did a straight copy of RIM's code into a project, and made up a little image (bg.png, which has to do 256 x 256).

It worked just fine. Is your "bg.png" the correct size?
------------------------------------------------------------
Three simple rules:
1. Please use the search bar before making new posts.
2. Kudo posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Please use plain text.
New Contributor
TheMirzai
Posts: 3
Registered: ‎08-26-2011
My Carrier: wut

Re: Textures

It's the correct size - at least now I know that it's a local issue, so my reasoning is it's due to OS7 - unfortunately this gets into territory where I have no idea what to do. Surely someone else has had this issue!

Please use plain text.
Developer
rcmaniac25
Posts: 1,789
Registered: ‎04-28-2009
My Carrier: Verizon

Re: Textures

I forgot to mention, I tested it on the 9900 simulator.
------------------------------------------------------------
Three simple rules:
1. Please use the search bar before making new posts.
2. Kudo posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Please use plain text.