Crocotile 3D

Crocotile 3D

MyMouse Oct 31, 2024 @ 5:25pm
How to load the texture of an imported model?
When I import an object made in Blockbench, the default green crotoctile texture is applied to the model, but when I import the texture I don't know how to apply it to the correct faces. How can I achieve this?
< >
Showing 1-5 of 5 comments
Ninja Sprout  [developer] Oct 31, 2024 @ 5:43pm 
You can change the tileset that tiles use by first selecting their faces in the 3d viewport, and then right-clicking the tileset in the Tileset panel and choosing "Apply Tileset to the selected faces". You can also find that option in the Tileset menu, or the 3d context-menu.
Hope this helps!
MyMouse Nov 1, 2024 @ 2:12pm 
Thanks, that worked but I had to scale the uvs to fit the texture, and since it wasn't a perfect fit I had to edit the texture to make sure all the faces had the right colors in them. Is there a way to avoid that?, my texture is 100x100 and the model was made in Blockbench and saved as .obj.

Also, I wanted to see if changing the format would help, I tried importing it as .fbx but I get this error: Error: FBXLoader: Unknown format.
Ninja Sprout  [developer] Nov 1, 2024 @ 4:32pm 
I'm not sure. The UV coordinate of the bottom left of the texture is 0,0 and the top-right is 1,1.. So if you change the texture and it has a different pixel dimensions, the UVs will still be between 0 and 1, and get stretched to the new texture dimensions. So if you want the UVs to stay the same, you'd have to keep the same dimensions with your texture. Crocotile can adjust the UVs when you resize the texture within crocotile though. There is a "Resize Tileset" option in the Tileset menu and has various settings to change the size/canvas.
Anyway, it's difficult for me to know exactly what was happening in your case without knowing what you had started with and what you were expecting to happen, etc, since the results could vary depending on what was used and changed, etc.
As for the error, maybe the fbx file is formatted in a way that crocotile can't parse. Maybe it's a different fbx version or something. I'm not sure though.
MyMouse Nov 4, 2024 @ 7:23am 
Thanks for the tips.

Regarding importing from fbx from blockbench, I got it working. In Blockbench, when exporting to fbx, I changed the "encoding" setting from ASCII to Binary, then I imported the model and it worked.

But, when I import the model as .obj or .fbx all the groups, meshes or objects get merged into a single object when imported to Crocotile, is there a way to keep the meshes divided into their own objects as in their original file?.
Ninja Sprout  [developer] Nov 4, 2024 @ 7:30am 
Currently it just combines everything, but that is something I plan on improving. I'm not sure when I'll have it working though.
< >
Showing 1-5 of 5 comments
Per page: 1530 50