Sample

71 views
Skip to first unread message

Marlon

unread,
Aug 22, 2011, 6:12:35 PM8/22/11
to AndAR Android Augmented Reality
Is it possible to change the color of the cube in the AndAR sample and
maybe use a texture?
And how can i do this?

on4ir4m

unread,
Feb 10, 2014, 10:05:39 PM2/10/14
to andar_android_a...@googlegroups.com
Hi,

Yes you can, just look on the CustomObject have a constructor with a customColor (float[]) parameter.

try this on the CustomActivity

someObject = new CustomObject("test", "patt.hiro", 80.0, new double[]{0,0}, new float[] {1.0f, 0f, 0f, 1.0f});

last parameter I asume is RGBA values, this will show red cube on hiro mark
Regards

Mariano
Reply all
Reply to author
Forward
0 new messages