Apply texture image to cylindre

Started by julycamara, September 17, 2012, 12:18:34 PM

Previous topic - Next topic

julycamara

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.

EgonOlsen

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.