Posts

Showing posts with the label CGA Coding Practice

[069] How to Split Facades and Floors for Procedural Buildings

Image
Unlike when I build it myself, explaining the work process step by step is going to take up quite a lot of space. Writing up many steps at once takes a long time, so I'll organize and post just a couple of steps at a time. 7. Set up sections for each facade. As I mentioned way back in an earlier lesson, you have to start with the big chunks and split them down into smaller and smaller pieces. In my case I did the horizontal split first and then the vertical split, but it doesn't matter if you do the vertical split first and then the horizontal split. Just code it accordingly. Set up sections for each facade. figure 1 8. Using the section lines as a guide, identify the parts where each dimension needs to be measured. The figure below shows measurements of the front (facades 0 and 4), but there's no need to measure in too much detail. That's because any part that needs adjusting can be declared with attr and chan...

[068] How to Model a 3D Building from a DAE File in CityEngine

Image
Before I knew it, May was over. From today, we'll practice CGA coding by looking at a simple sample. I was going to take photos of a suitable building and use those, but it wasn't easy to photograph the facades from every direction. So I looked for a suitable file on https://3dwarehouse.sketchup.com/ , and found something like the one below. It's at a level you can fully handle with what you've learned so far. The Building Used as a Sample https://3dwarehouse.sketchup.com/model/122d4d27-1953-4c74-b312-8253ceb53831/Build 3D Warehouse | 3D Warehouse is a website of searchable, pre-made 3D models that works seamlessly with SketchUp. | 3dwarehouse.sketchup.com Build.zip The file above is a DAE file, so just extract the compressed file and put the contents in your project's assets folder. A DAE file can also be imported directly into CityEngine, which has the advantage that you can build the model while measuring it y...