I am new to City Engine and using trial version 2011.2.I want to know how the colors are given to buildings?
Cga rule file for buildings I have written is :-
*/
version "2011.2"
attr BUILD_HEIGHT=0
attr Mass_Color = "#ffaa33"
attr opacityvalue=0.6
@StartRule
Lot-->
extrude(BUILD_HEIGHT)
color(Mass_Color)
set(material.opacity,opacityvalue)
Is there something I am doing wrong or missing ?
Solved! Go to Solution.
Hello Mansi Mittal,
Your CGA code will work just fine with version 2014.1 and above.
Please refrain from using an old version when evaluating CityEngine.
A free trial of CityEngine 2016 is available on Esri CityEngine | Try CityEngine Free
Your workflows will certainly benefit from newly introduced features like:
Your CGA is correct - I'd suspect that the old program version's the culprit here. Maybe try color(1,0,0) instead of hex.
Still colors are not showing up.
Hello Mansi Mittal,
Your CGA code will work just fine with version 2014.1 and above.
Please refrain from using an old version when evaluating CityEngine.
A free trial of CityEngine 2016 is available on Esri CityEngine | Try CityEngine Free
Your workflows will certainly benefit from newly introduced features like:
I got it.Thanks for the help!