#how can i open a minecraft png from assets folder as a 3d object?
44 messages · Page 1 of 1 (latest)
also if its possible load the different colored pixels as seperate blocks because im trying to make the blade and handle have some 3d by making it wider than the outside of the tool
!faq texture-to-3d
(Result for "texture-to-3D")
Depending on where you wanna have the model there are different ways to turn a texture into a (default-item like) model:
1. Letting the game generate it from a texture (vanilla Java)
2. Directly adding a new item (Bedrock Edition)
3. Letting Blockbench generate it (ONLY use this if the other options are not applicable!!!)
**
1. Letting the game generate it from a texture:**
Create a .json file somewhere inside your models folder and put this code inside of it:
{
"parent": "item/generated",
"textures": {
"layer0": "custom/example"
}
}``` This will tell the game to generate a model based on the texture `YourPack/assets/minecraft/textures/custom/example.png`.
(Use `item/handheld` as parent instead if you want it to be held like a weapon).
It can be used just like any other model, so you can either replace an existing item with it or "add" it with custom_model_data. You can also load it into Blockbench to edit the display settings.
**  2. Directly adding a new item in Bedrock Edition:**
Please follow the steps described in here:
Default like items: <https://wiki.bedrock.dev/items/items-intro.html>
Custom 3D model items: <https://wiki.bedrock.dev/items/3d-items.html>
**  3. Generating it in Blockbench:**
ONLY use this approach if you plan on editing it more than what the other option allows you to do!!!
You need to make sure to use per-face uv (_not_ box-uv!) and then do `File > Import > Extruded Image` and select your texture. Then, pick the way it should generate the texture. You can chose between pixel by pixel, line by line (horizontal/vertical) or in as little chunks as possible (area).
I suggest to always use area for performance. If you wanna edit each pixel/line choose one of the other options.
tried the java one
cant figure out how to do the generating in blockbench one
ill try to start the resource pack first
now how do i edit it
Method 1 is to tell the game to generate it based on the texture.
You can't edit that result (besides editing the texture and display settings).
what you want is Method 3
I dont understand method 3 could you help me with it?
where in method 3 do you get stuck?
like how do i make it pre-face uv on the 3d or the 2d object
Box UV is a UV mapping mode in which all UV sides of a cube are stuck together (similar to a cut up dice) and their size depends on the dimensions of the cube. In comparison to per-face UV-mapping, individual faces cannot be mapped separately, and the size of the UV map cannot be changed individually.
Box UV is currently mandatory in the Modded Entity format and optional in all other formats.
You can change the UV Mode in the project settings (File > Project...).
https://cdn.discordapp.com/attachments/249490255063941130/854783664780083230/unknown.png
and also how i would export this
like would i replace wooden_sword.png
No, this is a model.
You use it like any other model.
because you didn't pick the option that makes it import every pixel as separate cube
so all i do is export the model i dont save the colors
yeah i figured that out
if its a default texture you don't need it in your pack
assuming you loaded that texture from a proper copy of the default pack (and not directly from your Desktop or something like that)
... but they still use the default textures, right?
Why else would you need to import a default texture like that into Blockbench 🤔 ?
because i didnt want to do it one by one
it took me almost a day to finish wooden sword and i just completed it in like 5 minutes
yeah, but I'm saying if your model isn't using the default texture you wouldn't import the default texture, no?
yeah and as I said, if your model uses the default texture then you don't need the default texture in your own pack, only the model
(and as also said before, under the assumption that you loaded the texture from a proper copy of the default pack and not randomly directly from your Desktop or similar)
!close