Preserve shape colors when exporting to 3d web scene

1607
1
07-14-2016 12:06 PM
JugalPatel
New Contributor II


Hello there!

I'm trying to export a 3d model to a web scene but am having some trouble with the colors of my shapes to showing when it's published.

Here I have the colors for my shapes layers set:

layer colors.png

And then this is what the model looks like in city engine, with all the colors correctly displaying:

model in cityengine.png

Here are my export settings:

export settings 1.png

export settings 2.png

And this is what it looks like when I publish to webscene:

web scene.png

Does anyone have any ideas of how I can get this problem resolved?

0 Kudos
1 Reply
ThomasFuchs
Esri Regular Contributor

Hello Jugal,

Thank you for you question.

CityEngine Web Scenes do not support layer coloring.

This is a feature of The Scene Editor to visualize which shapes in the viewport belong to which layer.

Looking at the example you provided, I guess you want to color your CGA models by layer.

To achieve this, you can set a layer attribute "layerColor" for each layer,

then make your CGA rules use this value for the color Operation

attr layerColor = "#c0c0c0"

Colorize -->
    color(layerColor)
    
0 Kudos