x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Use multiple textures for one actor?

I'm trying to build a Minecraft like game. One of the goals I have though is being able to use existing resource packs. In order to do so, it looks like I would need to apply multiple textures to a single item. I found the naming scheme for resource packs, so I have that...but I don't know where to start with trying to apply multiple textures to a block. Any suggestions? Any command or functionality I should look at and mess with to do this?

If needed, this is the link to resource pack naming (textures are at the bottom): https://minecraft.gamepedia.com/Resource_pack

If you don't want to read...which I don't blame you...here is an example:

 dirt.png
 grass_side.png
 grass_side_snowed.png
 grass_top.png

All of that would be needed to get the different variants of a grass block. Dirt would be applied to the bottom, grass side would obviously be the sides, and grass top.

Hope this is enough...thanks for your help ahead of time! :)

Product Version: UE 4.18
Tags:
more ▼

asked Mar 01 '18 at 06:26 PM in C++ Programming

avatar image

dylanrhodes0
1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Before answering, i would like to mention that in UE, you don't apply textures to actors. Instead, you apply textures to materials, then apply materials to meshes, and then include meshes in actors (or just use these meshes without putting it in actor, but it will not allow you to add blueprint logics to these blocks.)

Answer:

You need to use material slots on your meshes. in 3DsMAX/Maya/Blender or whatever 3D software you are using, create a few material slots and apply each for different polygons (faces of the mesh blocks).
then in UE editor, click on the freshly imported mesh asset, and you will be able to assign different material to each material slot. (you will have to create 1 material per 1 texture, or optionally use material instances if you know how to.)

p.s. in a minecraft clone that would be 1 material slot for bottom face, 1 material slot for the top, and 1 material slot for the sides (all 4 using the same slot)

more ▼

answered Mar 01 '18 at 08:16 PM

avatar image

Arty-McLabin
925 20 44 64

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question