scurest / apicula

Convert Nintendo DS .nsbmd models
BSD Zero Clause License
159 stars 18 forks source link

Textures and vertex colors not shown on the model in Blender #10

Closed Bri1101 closed 5 years ago

Bri1101 commented 6 years ago

I imported the dae file in Blender and when I textured the model, no vertex colors or textures were shown. What should I do?

scurest commented 6 years ago

Did you try setting the viewport shading to Material and turning World > Environment Lighting on?

exampleb

Bri1101 commented 6 years ago

Yes, and it gave me textures. The vertex colors are there, but I can't see them.

scurest commented 6 years ago

Yes, they don't influence the materials by default. I don't know a way to have the .dae say that they should. Did you see this page on the wiki?

I threw together a quick script to try to automatically add vertex color influence to all materials. Find it here. So save that file, and after you import your .dae, open Blender's text editor, open that file, and hit "Run Script" and the materials should all be influenced by vertex color.

scurest commented 5 years ago

I've added support for converting to glTF instead of Collada. glTF has a better material model for representing NSBMD materials. You can convert to its .glb files with the -f=glb flag

apicula c -f=glb <your files> -o <your output dir>

Then import the .glb into Blender with the glTF-Blender-IO addon. (If you're using Blender 2.8, this might be installed by default.) When you look in the material view, you should be able to see the vertex colors.

compare