Jump to content

Recommended Posts

Posted

I find that when you're working on the model, it is best to have a texture file that is filled in with a solid coloar (don't worry about proper texture map, just have a 64 x 32 file that is some color that is easy to see like orange.

 

What it looks like to me is that your model isn't finding the right texture.  (Do you see any errors in the console log indicating that it didn't find the texture?)

 

Or maybe your texture is found but the texture offsets are wrong (this can be tricky to get right).

 

Lastly, you might have got your texture improperly scaled.  You MUST have your texture file keep the same 2:1 width to height ratio, otherwise it will squish the texture in one dimension and cause transparent gaps.

 

Anyway, it is one of those three things.  In all cases, if you try with a fully filled texture image you can confirm that the model is working properly before you fool around further with the texture mapping itself.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

I find that when you're working on the model, it is best to have a texture file that is filled in with a solid coloar (don't worry about proper texture map, just have a 64 x 32 file that is some color that is easy to see like orange.

 

What it looks like to me is that your model isn't finding the right texture.  (Do you see any errors in the console log indicating that it didn't find the texture?)

 

Or maybe your texture is found but the texture offsets are wrong (this can be tricky to get right).

 

Lastly, you might have got your texture improperly scaled.  You MUST have your texture file keep the same 2:1 width to height ratio, otherwise it will squish the texture in one dimension and cause transparent gaps.

 

Anyway, it is one of those three things.  In all cases, if you try with a fully filled texture image you can confirm that the model is working properly before you fool around further with the texture mapping itself.

 

I think 2 things may be happening here  :-\

 

1. Texture offsets

or

2. My Techne model resized itself to 128x32.

 

Most likely #2, but im going to make a fully filled texture image to see if it is working.

 

EDIT: Its the 128x32 causing the issue, as well as duplicate Shape1 variables.

Posted

Yeah, it took me a long time to realize that the texture file had to have the 2:1 proportions.  My kids were making all my texture maps for me and sometimes they just weren't working, but eventually we realized that it was scaling in one dimension and causing the trouble.  I'm not entirely sure why the texture maps work that way -- you think they would just take pixels as they need them based on the offset (who cares if there are extra pixels in the file) -- but it is important to remember.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

Hello Spideynn,

 

U know that it's realy better to use http://gist.github.com/ to show your code, u can update it when u change something :), like the two glPushMatrix() :) !

 

Maybe we can have the Techne file to see... it's your Class model are realy strange, u have just 3 shapes (ModelRenderer) and u modify it many time... i think that it will need more shape in your Techne !

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.