Archive 17/01/2023.

Problem with materials

Liichi

Hi I have a problem with the materials, they look stretched and when I move the camera the texture changes position.

I already try to use all versions of urho (directx and opengl), and all renderpaths.

Images:

Thanks.

hdunderscore

Did you export UV’s with your model?

Liichi

No, i just exported the model to .dae and set the material using urho’s attribute inspector.

hdunderscore

You need UV texture coordinates for the texture to be displayed on the model appropriately. Whether you need to include them when you exported to dae, or whether you need to set an option when importing to Urho, or maybe you just didn’t generate UVs on the model to begin with?

Maybe you can elaborate on your workflow. If you use blender, the simplest path is to use this Urho3D exporter and select UVs as one of the export options:

Liichi

It works! Thanks! :smiley:
ps: I just had to create the UV and export to .dae.