|
POST
|
Hello Marek Dekys Thank you for your question. On startup the __name__ variable is set to '__startup__' Please change your script to: from scripting import *
ce = CE()
if __name__ == '__startup__':
print ("hello world from startup")
... View more
10-10-2017
07:39 AM
|
2
|
0
|
673
|
|
POST
|
Update: The dev team fixed another problem that can cause slow startup of CityEngine 2017.0 and earlier. Unfortunately this new fix is not included in the CityEngine 2017.1 Beta build.
... View more
10-09-2017
07:48 AM
|
0
|
0
|
479
|
|
POST
|
Please Note: The fix proposed byDevin Lavigne can affect the licensing other (Esri) Software as well. Re-authorization will be needed.
... View more
10-04-2017
07:30 AM
|
0
|
0
|
2328
|
|
POST
|
There are known cases where slow Startup of CityEngine is related to the license service. The upcoming release of CityEngine 2017.1 contains a fix. You can apply for a Beta version here: Welcome to our Feedback Community Please give feedback if the fix worked.
... View more
10-04-2017
07:29 AM
|
1
|
1
|
479
|
|
POST
|
Thank you for your question. Have you set the correct port and host in the ArcGIS Administrator of the client machine where CityEngine is supposed to run? Please also have a look into the CityEngine install guide: About the License Manager—CityEngine | ArcGIS Desktop
... View more
09-18-2017
08:31 AM
|
0
|
0
|
695
|
|
POST
|
There is a new blog post covering: GIS2VR: From CityEngine via Unity to HTC Vive | ArcGIS Blog
... View more
09-12-2017
06:19 AM
|
0
|
0
|
2680
|
|
POST
|
Unfortunately there is no way to increase the resolution with python - this is a missing feature. I'm aware it is possible in the user interface.
... View more
08-23-2017
10:22 AM
|
0
|
0
|
845
|
|
IDEA
|
Hello Dave The feature you are requesting has been formulated in a paper called CGA++ Advanced Procedural Modeling of Architecture in section "4.1 Event handling". At this point it is unclear, when it will be implemented. CGA++ Integration Timeframes
... View more
08-16-2017
01:48 AM
|
1
|
0
|
941
|
|
POST
|
Thank you for the report. Judging by the screenshot, the imported model looks like it has wrong face normals. Faces that should be bright are dark and vice versa. Please try to set the Normals to auto. This computes consistent normals using the model face connectivity and a heuristic that favors the world's up direction.
... View more
08-15-2017
08:57 AM
|
1
|
0
|
1029
|
|
POST
|
Hi Neil, Thank you for your question. CityEngine is a versatile software that supports export to Autodesk data formats: Supported File-Based Data Formats | InfraWorks | Autodesk Knowledge Network Here is a suggestion for each data type: For exporting Graph Segments use AutoCAD DXF refer: CE Help - Exporting Graph Segments For exporting Street Shapes also use AutoCAD DXF refer: CE Help - Exporting Shapes For exporting Street Models generated with e.g. CE Example Complete Streets 2016 you could use Autodesk FBX refer: CE Help - Exporting Models All these exporters can be automated with CityEngine Python CE Help - Python Scripting Category Commands .
... View more
08-15-2017
08:24 AM
|
0
|
0
|
1341
|
|
POST
|
Thank you for your question. Please refer the CityEngine help on Get map data from ArcGIS Online / Portal . In CityEngine 2017.0 there should be no problem importing DEM an satellite imagery from the ESRI basemap services.
... View more
08-15-2017
07:54 AM
|
0
|
1
|
1304
|
|
POST
|
No, unfortunately not. There have been no changes in CityEngine 2017.0
... View more
08-09-2017
02:54 AM
|
0
|
3
|
2480
|
|
POST
|
Hello Zhen He Thank you for your question. Please have a look at the reply of CLau-esristaff in the adjust attr of CGA rule by python script thread.
... View more
08-07-2017
01:53 AM
|
0
|
0
|
827
|
|
IDEA
|
Hello Dave Thank you for your feature request. Currently it is not possible to pass a rule as an argument. But there is a way to accomplish the task you are describing: In the CityEngine Example Sternwarte 2016.0, that showcases detailed building modeling, the material properties of the window glass can either be set with a global attribute glass_material or a rule argument isTransparent. This is done with a case statement. To keep the rule that generates the geometry window.cga clean, the material properties should be defined in an imported rule file material.cga. This material rule can be reused in other geometry rules and constantly extended/modified without the need to modify the parent rules. /**
* File: window.cga
*/
version "2017.0"
import material:"rules/material.cga"
// assets
windowFrame_asset = "/Example_Sternwarte__2016_0/assets/window_frame.obj"
windowGlass_asset = "/Example_Sternwarte__2016_0/assets/window_glass.obj"
@Range("CE Blue","CE Dark Blue","CE Green","CE Brown","CE Black","iRay Glass")
attr glass_material = "CE Black"
@StartRule
// window
Window -->
s(1, 2, 0.3)
WindowFrame
WindowGlass
// frame and inner grid of window
WindowFrame -->
t(0, 0, '-0.8)
i(windowFrame_asset)
color("#929280")
// window glass
WindowGlass -->
t(0, 0, '-0.15)
i(windowGlass_asset)
material.Glass(false) // not transparent /**
* File: material.cga
*/
version "2017.0"
@hidden
@Range("CE Blue","CE Dark Blue","CE Green","CE Brown","CE Black","iRay Glass")
attr glass_material = "CE Black"
@StartRule
MyMaterials -->
primitiveCube()
Glass(false) // not transparent
// glass material for windows
// isTransparent [true, false] true: use default opacity, false: opacity=1
Glass(isTransparent) -->
case glass_material == "CE Blue":
case isTransparent :
color(0.7,0.75,1)
set(material.ambient.r,0) set(material.ambient.g,0) set(material.ambient.b,1)
set(material.specular.r,0.8) set(material.specular.g,0.8) set(material.specular.b,0.8)
set(material.reflectivity,0.8) set(material.shininess,50) set(material.opacity,0.6)
else :
color(0.7,0.75,1)
set(material.ambient.r,0) set(material.ambient.g,0) set(material.ambient.b,1)
set(material.specular.r,0.8) set(material.specular.g,0.8) set(material.specular.b,0.8)
set(material.reflectivity,0.8) set(material.shininess,50)
set(material.opacity,1)
case glass_material == "CE Dark Blue":
case isTransparent :
color(0.2,0.2,0.25)
set(material.ambient.r,0) set(material.ambient.g,0) set(material.ambient.b,0.1)
set(material.specular.r,0.8) set(material.specular.g,0.8) set(material.specular.b,0.8)
set(material.reflectivity,0.6) set(material.shininess,50) set(material.opacity,0.8)
else :
color(0.2,0.2,0.25)
set(material.ambient.r,0) set(material.ambient.g,0) set(material.ambient.b,0.1)
set(material.specular.r,0.8) set(material.specular.g,0.8) set(material.specular.b,0.8)
set(material.reflectivity,0.6) set(material.shininess,50)
set(material.opacity,1)
case glass_material == "CE Green":
case isTransparent :
color(0.4,0.5,0.4)
set(material.ambient.r,0) set(material.ambient.g,0.2) set(material.ambient.b,0.05)
set(material.specular.r,0.8) set(material.specular.g,0.8) set(material.specular.b,0.8)
set(material.reflectivity,0.8) set(material.shininess,50) set(material.opacity,0.6)
else :
color(0.4,0.5,0.4)
set(material.ambient.r,0) set(material.ambient.g,0.2) set(material.ambient.b,0.05)
set(material.specular.r,0.8) set(material.specular.g,0.8) set(material.specular.b,0.8)
set(material.reflectivity,0.8) set(material.shininess,50)
set(material.opacity,1)
case glass_material == "CE Brown":
case isTransparent :
color(0.3,0.25,0.2)
set(material.ambient.r,0.2) set(material.ambient.g,0.1) set(material.ambient.b,0)
set(material.specular.r,0.8) set(material.specular.g,0.8) set(material.specular.b,0.8)
set(material.reflectivity,0.8) set(material.shininess,50) set(material.opacity,0.6)
else :
color(0.3,0.25,0.2)
set(material.ambient.r,0.2) set(material.ambient.g,0.1) set(material.ambient.b,0)
set(material.specular.r,0.8) set(material.specular.g,0.8) set(material.specular.b,0.8)
set(material.reflectivity,0.8) set(material.shininess,50)
set(material.opacity,1)
case glass_material == "CE Black":
case isTransparent :
color(0.1,0.1,0.1)
set(material.specular.r,0.8) set(material.specular.g,0.8) set(material.specular.b,0.8)
set(material.reflectivity,0.7) set(material.shininess,50) set(material.opacity,0.8)
else :
color(0.1,0.1,0.1)
set(material.specular.r,0.8) set(material.specular.g,0.8) set(material.specular.b,0.8)
set(material.reflectivity,0.7) set(material.shininess,50)
set(material.opacity,1)
case glass_material == "iRay Glass":
case isTransparent :
color(0.35,0.37,0.5)
set(material.specular.r,0.8) set(material.specular.g,0.8) set(material.specular.b,0.8)
set(material.reflectivity,0.8) set(material.shininess,128) set(material.opacity,0.8)
else :
color(0.35,0.37,0.5)
set(material.specular.r,0.8) set(material.specular.g,0.8) set(material.specular.b,0.8)
set(material.reflectivity,0.8) set(material.shininess,128)
set(material.opacity,1)
else:
case isTransparent :
color(1,1,1)
set(material.opacity,0.8)
else :
color(1,1,1)
set(material.opacity,1)
... View more
08-04-2017
03:08 AM
|
0
|
1
|
941
|
|
POST
|
Thank you for your questions. For the 2017.0 release of CityEngine the capabilities of Context Queries have been extended. One new feature is the possibility to check a labeled geometry. The CGA Changelog gives a complete overview of all those new features and enhancements. The some effects you are describing might be caused by a performance setting in the CityEngine preferences for the Procedural Runtime . Edit > Preferences > General > Procedural Runtime > Occlusion and Context The default value for Neighborhood distance for inter-occlusion is 1.0. This means that occlusion testing with the target only happens with checking objects whose initial shapes are within 1m. Please try if changing the setting is enhancing the accuracy. If this doesn't help, please provide more information about the initial shapes you are using.
... View more
07-25-2017
01:31 AM
|
1
|
0
|
3794
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-15-2025 08:03 AM | |
| 1 | 10-16-2025 03:16 AM | |
| 3 | 10-20-2025 06:11 AM | |
| 1 | 04-19-2023 12:30 AM | |
| 1 | 02-27-2025 05:19 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|