City Engine: Object Opacity

3814
3
04-05-2016 06:04 AM
AmberKenyon
New Contributor

I have added a 3D buffer to my CityEngine Scene, and have managed to change to opacity. However, ideally the buffer would be coloured and the edges would be less prominent. If anyone could advise me on how to achieve this that would be great!

I have attached images and the code I have used so far.

@startrule

Lot -->

set(material.opacity,.01 )

comp(f) { all = Face

comp(e) { all = Edges }   

Tags (2)
0 Kudos
3 Replies
CherylLau
Esri Regular Contributor

You could turn the wireframe rendering off by either pressing 7 in the viewport or selecting it through the gear icon on the top right corner of the viewport -> "Wireframe on Shaded/Textured".  (You could turn it back on the same way; it is a toggle switch.)

You could use color() to set the color and opacity in one command:

color Operation

ThomasFuchs
Esri Regular Contributor

You can find additional information on urban planning in CityEngine Tutorial 16:

Tutorial 16: Urban planning—CityEngine Tutorials | ArcGIS for Desktop

GUID-3CD50E51-91B3-4972-8362-AF72E1743259-web.jpg

0 Kudos
deleted-user-yVEGXT4oxIIB
New Contributor II

Has anyone had trouble using the Tutorial 16 rules?  In the Zoning exercise, "Reflecting the zoning definitions" I'm getting an error in 3_Zoning_01.cej after assigning the "PointMarker_To_FootprintShape" rule to the footprint shape.

See screen shots below.  The issue seems to be that the parent rule can't file Text.cga even though it's in the ESRI.lib as expected.

How do I get the rules to recoginze where the text.cga file is? 


Thanks,
Emily

0 Kudos