www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: julycamara on September 17, 2012, 12:18:34 pm

Title: Apply texture image to cylindre
Post by: julycamara 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.
Title: Re: Apply texture image to cylindre
Post by: EgonOlsen 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.