Archive 17/01/2023.

[SOLVED] Model not rendering correctly

TheComet

Hey guys

I created this model in blender:

It has a diffuse map and a normal map:

I imported it into Urho3D’s editor, created a new material “Hound.xml” and used the technique “DiffNormal” from the CoreData folder. There are two things I noticed.

  1. The preview in the material editor is showing the correct result, but the model remains very dark. What am I doing wrong?
  2. The teeth, tongue, and eyes are white. They are submeshes, but all submeshes are UV-mapped to the same single image. Why is the body rendering with textures but the other submeshes not?

Mike

Check “Material list” in the export settings. Currently your material slots are empty.

1vanK

Enable “Tangent” in exporter

TheComet

Generating tangents solved my first issue, thanks! Now I just need to figure out why the teeth and tongue are still white. Any ideas?

1vanK

[quote=“TheComet”]Generating tangents solved my first issue, thanks! Now I just need to figure out why the teeth and tongue are still white. Any ideas?

enable “material text list” in exporter

TheComet

I’m exporting as .dae from blender and using AssetImporter to convert to .mdl, so that option isn’t available as far as I can see.

1vanK

just use blender exporter github.com/reattiva/Urho3D-Blender

TheComet

I never got that to work. I have it installed and enabled as an AddOn (also clicked save user settings):

But it doesn’t show up as an option:

codingmonkey

placement for this plugin

TheComet

Cool, thanks for the help guys!