Problem with materials/textures

View previous topic View next topic Go down

Problem with materials/textures

Post  jj on Fri Oct 03, 2008 2:06 am

Hi,

I had a working prototype scene that had all my objects rendering with the correct materials and textures. 2 materials with only vertices color and 2 materials with texture .jpgs.

What are the correct dimensions for a .jpg image again? I thought it had to be the square of a number, but a have a 144x144 jpg that is not being rendered.

This change happened when I added an object and assigned it a new material. I guess I'm still a littel fuzzy on the naming convention of material, material.001, material.002, and textures respectively. This may be causing my problem, as I added the new material without a texture?

Confusing. All I know is that now I can't get any new materials to render with a texture .jpg file mapped...

Maybe I'm just losing it..

jj

Posts : 77
Join date : 2008-09-24

View user profile

Back to top Go down

Re: Problem with materials/textures

Post  sio2interactive on Fri Oct 03, 2008 2:56 am

Allright the rule is simple the width & the height of ALL your texture need to be a power of 2. The top texture size supported by SIO2 (yeah right) its <= 1024x1024.
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Problem with materials/textures

Post  matt on Fri Oct 03, 2008 4:00 pm

sio2interactive wrote:The top texture size supported by SIO2 (yeah right) its <= 1024x1024.
How come? I read that the maximum size supported by the device is 2048? (Source)

Best,
Matt

matt

Posts : 155
Join date : 2008-09-30

View user profile http://elfrun.net

Back to top Go down

Re: Problem with materials/textures

Post  sio2interactive on Fri Oct 03, 2008 7:52 pm

Hummm can you find back where you read that cuz i know that on first generation that was 1024x1024 (that's what I read in their docs.) But Im not sure for 3G...

Can you find back where you get that information?
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Problem with materials/textures

Post  matt on Sat Oct 04, 2008 2:43 am

Just click on that "Source" link in my posting.
Here's the direct link: http://www.glbenchmark.com/phonedetails.jsp?benchmark=pro&D=Apple%20iPhone&testgroup=gl

Best,
Matt

matt

Posts : 155
Join date : 2008-09-30

View user profile http://elfrun.net

Back to top Go down

Re: Problem with materials/textures

Post  sio2interactive on Sun Oct 05, 2008 4:56 am

This information is inaccurate, a texture greater than 1024x1024 will generate the following GL_ERROR:

ERROR: GL_INVALID_VALUE

on glTexImage2D, glTexSubImage2D

Cheers,
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Problem with materials/textures

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum