|
POST
|
Hi ! Here's an example which shows how an image is used to map the width of streets via a 'class' attribute of a map layer. This way, you can encode different street types via width. There's 2 street types which drive the Dynamic City Layout System's parameters. Also, the 'lotAreaMin' and 'lotAreaMax' params are driven via the 'class' Map Layer. Btw. the 'class' Map Layer is of the type 'Mapping'. This so far is all non-related to CGA other than the 'class' Map Layer's attributes are written in CGA code. But this has nothing to do with the Model Generation using CGA. This is all SHAPE CREATION Process. Note : 1 Shape + 1 CGA Rule --> 1 Model * * * Then, in the CGA rule which creates the buildings, the streetWidth object attributes (which are inherited to each shape from the shape creation process) are sampled and checked concerning width. If the width is equal to the value of the wide street, the building is red. * * * Since not all parameters can be inherited down to the shapes as object attributes - as mentioned in my last post - you may want to use sampling for each shape again (maybe even the same mapping layer as the layout uses) to drive other things. Note especially how the attribute sources are set (in brackets). Read through this a couple of times and study the screenshots and project attached. Play with the setup by selecting a street node and dragging it around. Cheers ! Matt
... View more
01-04-2013
04:17 AM
|
0
|
0
|
5854
|
|
POST
|
Hi Roman ! I've not heard from this before. Where are you located (country) ? Let me know, then I can organize someone to help you. Matt
... View more
01-04-2013
03:23 AM
|
0
|
0
|
2243
|
|
POST
|
Hi ! I've seen those errors too sometimes, I simply restart CE. Please let me know if this helps to prevent the error. (It's not a proper solution, but something)
... View more
01-04-2013
12:22 AM
|
0
|
0
|
4760
|
|
POST
|
Hi ! Here the answer of one of our WebViewer devs : ArcGIS Server is not needed in order to share CityEngine Web Scenes. We recommend to share the Web Scene to ArcGIS Online in order to leverage the security and collaboration aspects of the arcgis.com site, as well as to easily reaching a global audience. However if those features are not required in your case the Web Scene can be shared using any web server by copying the Web Scene .3ws file into the web server public directory. Follow the instructions in the CityEngine help to learn how to do that. There's a short instruction how to put the files on a custom server in the CityEngine manual.
... View more
01-03-2013
04:59 AM
|
0
|
0
|
635
|
|
POST
|
Hi ! These are basically 'just' parameters for the Dynamic Subdivision, so since those are not that important, they're not inherited to the shapes which are created. But you can map those Subdivision parameters with a map layer (image-based), so you could use the same map layer then for each created shape to sample again the value of interest. Setting this up takes a little time, but I have some examples for this, if needed. Cheers ! Matt
... View more
01-03-2013
04:02 AM
|
0
|
0
|
5854
|
|
POST
|
Hi Flol ! The issue is that you duplicate the shapes in your code. you write : Rule --> comp(f) { .. } split(y) { .. } if you look at : A --> B. C. A results in 2 copies : B. and C. What you want is to actually split the RESULT of the comp(f), so e.g. the north facade. So for this, just make a new Rule and put the split in the new rule. Ok ?
... View more
01-03-2013
03:35 AM
|
0
|
0
|
2548
|
|
POST
|
hi ! the best is to edit the .obj's .mtl file. place all files (.obj, .mtl and textures) in the same CityEngine directory, e.g. : assets/myTree/ edit the .mtl file's texture path to a just the texture name e.g. map_Kd barkTexture.jpg that way, CE directly uses this relative path and not the full system path (C:/...) ok?
... View more
01-03-2013
03:26 AM
|
0
|
0
|
2085
|
|
POST
|
Hey Nicole ! Happy 2013 ! 🙂 Are you located in the U.S. ? If so, please try calling the Esri Technical Support number you see here at the very bottom : http://support.esri.com/en/downloads/patches-servicepacks/view/productid/186/metaid/1929 If you're not in the U.S., let me know and I'll try to organize someone who can help you. Let me know .. Matt
... View more
01-03-2013
03:17 AM
|
0
|
0
|
2407
|
|
POST
|
Hi ! You could try the following : 0] make an empty list for the stuff to select later on 1] Get all shapes in the layer 2] loop over all shapes 3] for each shape : 4] get the attribute value you have set up to select the shape via the GUI ( the boolean ) 5] if attr == True : selectionList.append(shape) 6] after loop : select your list content. Makes sense ? Let me know .. Matt
... View more
01-03-2013
03:07 AM
|
0
|
0
|
1303
|
|
POST
|
Hi, I'm not perfectly sure what you mean .. You can bring over textured objects from 3ds Max to CityEngine via .obj ( with .mtl ) and .dae .. Let me know.. Maybe add a few screenshots ! matt
... View more
12-28-2012
02:51 AM
|
0
|
0
|
2085
|
|
POST
|
Hi ! If each of those objects has it's own textures, just make sure you also have the .mtl file in the same spot as the .obj. The .mtl file carries the material information such as the texture. Otherwise, I may have an other useful way to solve your issue. matt
... View more
12-28-2012
02:49 AM
|
0
|
0
|
1884
|
|
POST
|
Hi ! the split() operation automatically tries to even out the values. If you want to split in different sized parts, I usually use a recursion :
minSize = 5
relativeValue = rand (0.2,0.8)
Rule -->
case scope.sx > 2 * minSize :
split(x) { 'relativeValue : Rule | 'relativeValue : Rule}
else :
Done. [I did not test this example.] Hope this helps !
... View more
12-28-2012
02:46 AM
|
0
|
0
|
979
|
|
POST
|
Hi ! This behavior is actually correct since each CGA file is parsed for itself. So undefined rules just give that yellow warning. For some ways how to import stuff, you are not able to get rid of those yellow warnings and have the system still work. If there's just yellow warnings, everything's ok. Only if it's a red error you won't be able to generate the model. Cheers ! Matt
... View more
12-28-2012
02:41 AM
|
0
|
0
|
684
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-06-2012 08:40 AM | |
| 1 | 09-30-2013 08:33 AM | |
| 1 | 08-07-2013 04:45 AM | |
| 1 | 10-15-2012 02:19 AM | |
| 1 | 01-30-2014 12:09 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|