Author Topic: Apply texture image to cylindre  (Read 2031 times)

Offline julycamara

  • byte
  • *
  • Posts: 10
    • View Profile
Apply texture image to cylindre
« on: September 17, 2012, 12:18:34 pm »
Hello,

I have created an object3d from Primitives.getCylindre(...) and i want to apply my texture from image file. ¿how i must do it? ¿what are the uv coords of cylindre objects? ¿have you any example?

Thank you in advance.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Apply texture image to cylindre
« Reply #1 on: September 17, 2012, 09:07:23 pm »
As mentioned in the docs, objects created by the Primitives class have no proper uv-mapping except for the plane. You might use one of the calcTextureWrap-methods in Object3D, but it won't be perfect. Use some 3d editor instead to create meshes with proper mapping.