www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: nm123 on January 15, 2011, 04:24:45 pm

Title: tiled texture
Post by: nm123 on January 15, 2011, 04:24:45 pm
Hi, how can I set tiled textue (say 10x10) to a Object3D (say a Primitives Plane)?
Title: Re: tiled texture
Post by: EgonOlsen on January 15, 2011, 08:54:57 pm
In the code of the advanced example in the wiki (http://www.jpct.net/wiki/index.php/Advanced_example (http://www.jpct.net/wiki/index.php/Advanced_example)) you'll find a method called tileTexture(....). The advanced example is for desktop jPCT, but that method should work on AE too. Just make sure to apply it before the object has been rendered for the first time or your changes might get ignored.
Title: Re: tiled texture
Post by: nm123 on January 19, 2011, 03:28:20 am
That works. Thx! :)