I imported a model from Blender and I am trying to apply different materials to the different parts of the mesh. I dragged the material over and clicked build and waited for the shaders to finish loading. And when its ready the part I applied the mesh to looks nothing like the actual material. I created a basic 3rd person shooter blueprint project and am just using the starter content to learn what I’m doing. I attached a picture of what I’m seeing. I applied a wood floor material and what I’m seeing is a brownish color when it should actually look like a wood floor. Is there anything I can try to fix this or anything known that causes this? Any help is appreciated.
Hi jman,
It sounds like the material is using the incorrect UV channel.
In your material blueprint, try adding a “texture coordinate” node before your wood texture node. Connect the texture coordinate node to the UV node on the texture node (is this answer using the word node enough?). In the details panel for the texture coordinate node you should be able to switch which UV channel the material is using. When you apply changes to the material with the correct UV channel selected, the wood material should show up.
Let me know if this works!
Cheers,
-Noah
That’s a good point, if the object hasn’t been UV unwrapped it would also cause this issue. If you want to unwrap the object in blender here’s a basic guide Blender UV mapping.
Change the value of “coordinate index”, first entry in the details panel. That refers to the channel being used.
As for how to check which UV channel to use, you should be able to tell from Blender, but an easy way to tell in UE4 is just to test values for the coordinate index starting at 0, apply changes, and see which one works.
Simply hitting “Apply” should do the trick.
The mesh has no UV mapping. You need to unwrap it’s UV’s in your modeling program. If you dont want to do that you can generate lightmap UV’s for channel 0 inside the editor > static mesh editor as a dirty solution.
Are these answers correct even though the material is from the starter content?
Starter Content materials and any other material you create uses UV channel 0 of the mesh by default. So if your UV’s are unwrapped in channel 1 then yes, Noah’s suggestion is correct.
How do I check what channel the UV’s are unwrapped in?
Here is the updated material after adding the texture coordinate node. Where would I check the UV channels?
Do I just hit “Save” and the “Apply” in the material editor or do I need to also rebuild or anything?
I tried 0-7 and none worked. I’ll try Jacky’s answer and see how it goes.
I noticed in Blender if I unwrap using Cube mapping where I want default repeating textures, they are consistently scaled between meshes and polys. If you use static lighting in UE4, then also add a second UV map to the mesh in Blender and Unpack using lightmap.
Cool I got it figured out I think. I’m a programmer first so I do not know much of anything about blender. So I am now just playing around to get to know importing and changing materials of models. I figured out that you all are correct I think it had no UV mapping. But I want to just download and have it work if I can. I know if I get assets from UE4 marketplace they will just work. I plan to use the marketplace in addition to other sites on the web. So besides making sure the model(s) are UV mapped is there anything else I need to look for in a model so I can make sure it works out of the gate?
For static meshes, besides being UV mapped it needs to have normals facing in the correct direction, that’s a common issue too. It also needs to have one or more material slots. All of these can be checked and fixed very easily in Blender too, or in your 3D package of choice.
Every mesh has one material slot by default. Having more than one is up to how the mesh is designed. Like, if you are making a vehicle you need at least two material ID’s; one for the windshield(translucent) and one for the rest of the body. But if it is just a wooden table then one material ID is enough.
You are right about normals direction though. In addition to that you may also see meshes with no or wrong smoothing groups sometimes, which again can be fixed in Blender.
Well cool, didn’t realize objects always had one by default. You learn somethin new every day!
Thanks for the help everyone I really appreciate it. Maybe I should get to know Blender a little better too… Has anyone bought anything from the UE4 marketplace? Is all of this taken care of when you buy assets from the marketplace?
You shouldnt have material ID or UV mapping issues with marketplace content but you should still check user reviews before you buy just in case.
you might try to change the textcoord values, try something like 0.1 instead of 1 for both slots. this works for me :)… or if the problem still exist send me the blend file so I can help