How to change the color of TCylinder in Delphi Firemonkey -
i can create cylinder
img: tcontrol3d; img := tcylinder.create(nil);
however img not seem have colour property. when cast cylinder. seems defaulting red. object inspector not have colour property cylinders either.
each 3d shape object has materialsource property - use give shape color/texture.
if want set shape material solid colour, use tcolormaterialsource component, set color want, , link shape's materialsource property.
Comments
Post a Comment