jPCT-AE - a 3d engine for Android > Support

Apply texture image to cylindre

(1/1)

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.

Navigation

[0] Message Index

Go to full version