#how can i open a minecraft png from assets folder as a 3d object?

44 messages · Page 1 of 1 (latest)

viral lava
#

I want to make a 3d texture pack that doesnt rework the look of minecraft items and I am too lazy to just remake every item because it took me 3 days to do 3 items and they looked horrible with colors that werent in the right places

viral lava
#

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

swift snowBOT
# viral lava !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:
java 1. Letting the game generate it from a texture (vanilla Java)
bedrock 2. Directly adding a new item (Bedrock Edition)
blockbench 3. Letting Blockbench generate it (ONLY use this if the other options are not applicable!!!)

** java 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.

** ![bedrock](https://cdn.discordapp.com/emojis/526419810272149526.webp?size=128 "bedrock") 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>

** ![blockbench](https://cdn.discordapp.com/emojis/340506781111549957.webp?size=128 "blockbench") 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.
viral lava
#

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

bright moat
# viral lava 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

viral lava
bright moat
#

where in method 3 do you get stuck?

viral lava
#

like how do i make it pre-face uv on the 3d or the 2d object

bright moat
#

that's a project setting

#

!faq box-uv

swift snowBOT
# bright moat !faq box-uv

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

viral lava
#

so this?

#

its still not in pixels

#

it is in rows

#

i imported to lines

viral lava
#

like would i replace wooden_sword.png

bright moat
bright moat
viral lava
#

so all i do is export the model i dont save the colors

bright moat
#

if its a default texture you don't need it in your pack

viral lava
#

no im making all weapons look 3d

#

just not changing them too much

bright moat
#

assuming you loaded that texture from a proper copy of the default pack (and not directly from your Desktop or something like that)

bright moat
viral lava
#

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

bright moat
# viral lava

yeah, but I'm saying if your model isn't using the default texture you wouldn't import the default texture, no?

viral lava
#

it is using the default texture

bright moat
#

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)

viral lava
#

oh i just use it so i can see what it will look like

#

i didnt export the png

viral lava
#

!close