I have been playing with some shaders and materials included in Libgdx demos, and I noticed that models which I've created for my game have a strange issue. I have created them in blender and UV unwrapped. What could be causing this? Is it because I used material with a texture which was not prepared for this model or botched UV unwrapping on my part?

enter image description here

I haven't seen the problem with models included with the demo (e.g. a teapot and the blender's Suzanne model)

  • \$\begingroup\$ Try to flip the y coordinate of the texture. \$\endgroup\$
    – tkausl
    Commented Sep 11, 2017 at 10:09
  • \$\begingroup\$ This mesh seems to be using flat shading and you probably want an interpolated one (Gouraud/Phong/etc.?). \$\endgroup\$
    – kolenda
    Commented Sep 11, 2017 at 11:30
  • \$\begingroup\$ @kolenda Yes, this is using Phong shader, but I'm not sure what you mean about the mesh using flat shading. I'm quite new to using blender \$\endgroup\$
    – kacpr
    Commented Sep 11, 2017 at 12:47
  • \$\begingroup\$ I mean that the rendering result depends not only on your shader, but also the mesh itself and how its normals are created. In your mesh each quad have its own normal, constant for entire quad so even using Phong shader each quad will look flat. What you need is to compute vertex normals to smooth this out. I don't know Blender (I could help you with 3ds) but those links may help you: docs.blender.org/manual/en/dev/modeling/meshes/editing/… blender.stackexchange.com/questions/734/… \$\endgroup\$
    – kolenda
    Commented Sep 11, 2017 at 13:05


You must log in to answer this question.

Browse other questions tagged .