{"id":955,"date":"2013-03-14T11:07:00","date_gmt":"2013-03-14T11:07:00","guid":{"rendered":"http:\/\/www.geoplanit.co.uk\/?p=955"},"modified":"2013-03-14T11:09:05","modified_gmt":"2013-03-14T11:09:05","slug":"top-tip-for-cityengine-detailed-to-simple-model-toggle","status":"publish","type":"post","link":"https:\/\/www.geoplanit.co.uk\/?p=955","title":{"rendered":"Top Tip for CityEngine &#8211; Detailed to Simple Model Toggle"},"content":{"rendered":"<p>Just a quick tip this one, and it starts to help you when you make very large city\/urban models. \u00a0 When you are starting to add more detail to your rule file buildings like nice windows or doors (or in my case balconies and air conditioning units) it&#8217;s always best to create a simplified model at the same time. \u00a0 That way you can create a mechanism to speed up CityEngine, remember the more detail it has to draw the more PC resources it needs.<\/p>\n<figure id=\"attachment_956\" aria-describedby=\"caption-attachment-956\" style=\"width: 614px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.geoplanit.co.uk\/?attachment_id=956\" rel=\"attachment wp-att-956\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\" wp-image-956\" alt=\"ce_tip_detail_simple_balcony\" src=\"https:\/\/i0.wp.com\/www.geoplanit.co.uk\/wp-content\/uploads\/2013\/03\/ce_tip_detail_simple_balcony.jpg?resize=614%2C278\" width=\"614\" height=\"278\" srcset=\"https:\/\/i0.wp.com\/www.geoplanit.co.uk\/wp-content\/uploads\/2013\/03\/ce_tip_detail_simple_balcony.jpg?resize=1024%2C464&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.geoplanit.co.uk\/wp-content\/uploads\/2013\/03\/ce_tip_detail_simple_balcony.jpg?resize=300%2C136&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.geoplanit.co.uk\/wp-content\/uploads\/2013\/03\/ce_tip_detail_simple_balcony.jpg?w=1903&amp;ssl=1 1903w, https:\/\/i0.wp.com\/www.geoplanit.co.uk\/wp-content\/uploads\/2013\/03\/ce_tip_detail_simple_balcony.jpg?w=1392 1392w\" sizes=\"auto, (max-width: 614px) 100vw, 614px\" \/><\/a><figcaption id=\"caption-attachment-956\" class=\"wp-caption-text\">Guess what 3D modeller I use&#8230;<\/figcaption><\/figure>\n<p>Once you&#8217;ve done this you can use the following rule syntax to enable easy switching off and on of the detail without losing the feel of your model. \u00a0 Remember your urban model maybe small now, but because you will\u00a0inevitably\u00a0reuse this rule file and asset, it&#8217;s best to &#8216;front load&#8217; some of the work.<\/p>\n<pre>attr toggledetail = false\r\n\r\nasset_balcony =\r\ncase toggledetail == true : \"assets\/detailedBuildings\/BuildingFeatures\/balcony.obj\"\r\nelse : \"assets\/detailedBuildings\/BuildingFeatures\/balcony_simple.obj\"<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Just a quick tip this one, and it starts to help you when you make very large city\/urban models. \u00a0 When you are starting to add more detail to your rule file buildings like nice windows or doors (or in my case balconies and air conditioning units) it&#8217;s always best to create a simplified model [&hellip;]<\/p>\n","protected":false},"author":161,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[116,145,54,9],"tags":[],"class_list":["post-955","post","type-post","status-publish","format-standard","category-city-creation","category-cityengine","category-tips","category-workflow"],"_links":{"self":[{"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/955","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=\/wp\/v2\/users\/161"}],"replies":[{"embeddable":true,"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=955"}],"version-history":[{"count":3,"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/955\/revisions"}],"predecessor-version":[{"id":958,"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/955\/revisions\/958"}],"wp:attachment":[{"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}