#combining textures

66 messages · Page 1 of 1 (latest)

dense canopy
#

Anyway I can combine these textures into one png file so I don't need to save both of them to my textures folder

upbeat gust
dense canopy
sand igloo
#

Yes that should be correct.

dense canopy
#

The second texture has a corrupted texture/black and purple

#

1st part of the model is textured, then the 2nd half isn't

sand igloo
#

In game you mean?

upbeat gust
#

sent screenshot

dense canopy
#

2nd part is textured

#

I merged the textures btw

sand igloo
#

Did you remember to update your textures in your folders and also in your json?

dense canopy
#

no, I just merged the textures and exported

dense canopy
#

into my texture folder

sand igloo
#

You need to update your json

dense canopy
#

how do I update it

sand igloo
#

You open it in a text editor and edit the line which links your texture

#

Or just re-export it in Blockbench

dense canopy
#

ok i will export again

#

hmm the textures are still corrupted

sand igloo
#

What is your texture name and where is it located?

dense canopy
#

the model is called "brick.json" and the texture is "brick.png" and they're in the model and texture folders

#

the only issue is the 2nd texture not working

#

even tho I merged it

sand igloo
#

Is brick.png directly in the textures folder? No subfolders?

dense canopy
#

yep

#

same with the model

#

I click "merged to the texture above"

#

then do I save "brick.png" into the texture folder?

sand igloo
#

Yes

dense canopy
#

the texture is still purple/black

#

Im not sure why

sand igloo
#

Open your json in a text editor

dense canopy
#

ok

#

I did

sand igloo
#

And send me a screenshot of the first few lines

dense canopy
sand igloo
#

This is the issue.
Your json is currently looking for the brick texture in the item subfolder.

#

Change "0": "item/brick" to "0": "brick"

#

Also, you should also be fine to delete the next line after that entirely since you are no longer using that texture

dense canopy
#

ok

#

let me save and test

#

its not working, and now the entire model has corrupted textures. I might as well duplicate the entire model in a new project and use eye dropper to copy the pixel textures and just retexture pixel by pixel.

#

and make only one texture for the entire model

sand igloo
#

Take a screenshot of your file directory of where your texture is located, starting from assets

dense canopy
#

here is the models

sand igloo
#

Textures please

#

Your model file is fine

dense canopy
#

I have other modekls

#

working fine

#

so it shouldn't be a folder issue

upbeat gust
#

btw have u checked the console?

sand igloo
# dense canopy yep

You said that your texture is located directly in your textures folder with no subolders here.

upbeat gust
#

maybe it is file path thing

#

like is not fiding the texture or something like it

sand igloo
#

In that case change "0": "brick" back to "0": "item/brick" and it'll work

#

The "item/brick" indicates that your texture name is brick.png, located in the subfolder named item in the folder texture, which is matching your file directory

#

It wasn't working before because we put it as just "0": "brick", indicating that the texture's name is brick.png located directly in the textures folder, which is wrong, resulting in the error

dense canopy
#

ok

sand igloo
#

Your json file path and your actual file path always need to match. Otherwise it just won't work.