It seems I was having some caching problems before. I have to quit and restart the editor to see the changes take effect.
However, I'm still really struggling to get my texture to show up. I've tried everything* and most of the time the same thing happens: the model is completely team-colored in the editor.
everything except the actual solution
All I'm trying to do now is to stop the team-color from dominating the entire model, before I even try to change anything else.
The model I'm starting with is ShapeCube.m3 (used by the "Cube" unit). Here's the model data shown in the Cutscene Editor.
So the first thing I do is open the console and export the model and the two textures and change the file name capitalization to match what the model data window says. I put them in a folder structure like this.
Then I open Blender (with m3addon already enabled in the startup file), import ShapeCube.m3 and change the viewport shading to rendered to confirm that it shows up correctly.
Now I open XelNagaGlass.dds with a graphic converter, remove the alpha channel and add it again to get an opaque texture, and save it in the same folder as XelNagaGlass_Opaque.dds with DXT5 compression.
Next I go to the material textures panel in Blender and change the source to //Assets/Textures/XelNagaGlass_Opaque.dds. As a result the rendered cube changes color to green/teal. That's how I would expect it to appear in-game.
At this point I've tried many other things, such as changing the Emissive Blend Type under M3 Material Properties and changing the color/alpha options under M3 Material Layers.
So now I export the model as GoldBlock.m3 (after updating the Image Path of the Diffuse M3 Material Layer, of course), import it into the map, along with the new texture, and change the Shape Cube model file in the Data Module.
Restart the editor and the result is, as you saw, just a red (team-colored) cube. Looking at the model data, it confirms that it's using the right texture.
I'm out of ideas.
Can you help me? I attached everything to this post as a ZIP archive if you want to take a look at it.
P.S. How did you reply so quickly? I don't get any email notifications for replies. Is there a way to enable that (I can't find it)?
I exported ShapeCube.m3 from the editor, imported it into Blender, changed the texture and all of the file names that I could find (including under "M3 Material Layers"), exported it and imported it into the editor and it always says "Diffuse = XelNagaGlass.dds" in the Cutscene Editor.
The model is correct but it's still using the old texture. I've tried to fix it about a dozen times now, please help me.
@println:
Hey, thanks for your reply.
It seems I was having some caching problems before. I have to quit and restart the editor to see the changes take effect.
However, I'm still really struggling to get my texture to show up. I've tried everything* and most of the time the same thing happens: the model is completely team-colored in the editor.
All I'm trying to do now is to stop the team-color from dominating the entire model, before I even try to change anything else.
I'm out of ideas.
Can you help me? I attached everything to this post as a ZIP archive if you want to take a look at it.
P.S. How did you reply so quickly? I don't get any email notifications for replies. Is there a way to enable that (I can't find it)?
How do you replace a model's texture?
I exported ShapeCube.m3 from the editor, imported it into Blender, changed the texture and all of the file names that I could find (including under "M3 Material Layers"), exported it and imported it into the editor and it always says "Diffuse = XelNagaGlass.dds" in the Cutscene Editor.
The model is correct but it's still using the old texture. I've tried to fix it about a dozen times now, please help me.
My custom texture does show up in Blender.