09-22-2024, 03:36 PM
(09-22-2024, 03:13 PM)scurest Wrote:Hello Scurest,(09-22-2024, 01:37 PM)MrElephant Wrote: Can you confirm where we are supposed to add in this piece of code? Without it, textures are not applied when exported.
I think that code is for Blender 2.79. Instead, you can use this script to modify the shaders for export (tested in Blender 3.6). Put that script in the Text editor, select the objects you want to change, then hit the Run script button.
Note that it only preserves a single texture as the diffuse texture, which is highly lossy. How much it damages the appearance will depend on the game.
Also note that the script should work for practically any material, not just ones from GLideN64 Scene Ripper, but if there are multiple textures it might not pick the best one as the "diffuse" texture.
That seemed to work. Using Blender 3.4. One of the colors seemed to turn what I call "clear", but other than that- seemed to turn out well- attached a picture of model imported into unity.
Thanks.
Mr.Elephant