Angled Buildings

2869
9
Jump to solution
08-27-2012 08:43 PM
JoanneO_Brien
Occasional Contributor
I'm sure I saw something about this when you were talking about scope but I can't seem to work it out. I want my building to have sloped sides for just two sides, which I achieved using the rotate function, but then I'm not quite sure how to get the edges to match up with the other sides and the roof. You can see my predicament in the image below. Any suggestions? Thanks!
0 Kudos
1 Solution

Accepted Solutions
MatthiasBuehler1
Frequent Contributor
Hi !

I created a new sticky thread with some help which may help you on this too:
http://forums.arcgis.com/threads/70378-Shapes-Models-and-Model-Export

Let me know once you read through it carefully.

I think you have to address specifically which geometries you handle as 'textured Shapes' and which ones you deal with as 'Models' with CGA.

Let me know if that thread makes things clearer or if things are missing !

Matt

View solution in original post

0 Kudos
9 Replies
MatthiasBuehler1
Frequent Contributor
hey !

that is currently not possible with CGA. but there's an easy way to get such a building shape with the upcoming CityEngine 2012.

you'll really like it .. 🙂

stay tuned, ok ?
0 Kudos
JoanneO_Brien
Occasional Contributor
Aw there's a few things I'm really looking forward to in that then!! Hope it comes out soon! 🙂
0 Kudos
MatthiasBuehler1
Frequent Contributor
meanwhile :

[ATTACH=CONFIG]17453[/ATTACH]


🙂
0 Kudos
JoanneO_Brien
Occasional Contributor
So revisiting this now that we have the lovely CE 2012.1.....

I'm thinking this would involve the geometry.angle function but am not quite sure how it works...suggestions?

Thanks! 🙂
0 Kudos
MatthiasBuehler1
Frequent Contributor
Ah, yes.

You can easily model this building with the brand new Polygonal Shape Modeling tool.

Draw the footprint, extrude it and move those 2 edges on the roof back to get those angles.

Note that this tool is a SHAPE modeling tool, so you model the input Shape for CGA. This means that you don't need any more extrude() in CGA for example, rather just the alignScopeToAxes(y) and the comp() to get directly to the facade shapes.

Check the tool's tutorials project data here, including the link to the videos:
http://www.arcgis.com/home/item.html?id=c930635e31ee4c5298a82c8f4be013b8


Fun, huh ? 🙂
0 Kudos
JoanneO_Brien
Occasional Contributor
Hi

So I've been looking to assign CGA codes to different portions of the building, my idea was that if I created the building using the polynomial shape tool and then seperate the different edges so that different start rules could be assigned to each edge. Now this seemed a good idea but I'm having some issues assigning brick textures as for some reason some of my bricks are coming off at different angles, see the screenshot. This is the coding:
const brick_tex = ("cladding/brick/Brick_Antique_1.jpg")

@Startrule
BrickWall--> alignScopeToAxes(y)
   BrickFacade
BrickFacade--> comp(f){side : BrickTexture | all : NIL}
BrickTexture--> setupProjection(0, scope.xy, 5, 5)
  projectUV(0)
 texture(brick_tex)


What am I missing?

Also will it work if I use the same rule file but have a different startrule for the different textures I want to assign to each part of the building, or is there a better/simpler method to what I'm doing?

thanks!
0 Kudos
MatthiasBuehler1
Frequent Contributor
Hi !

1]
Sadly, there's no screenshot. Can you re-post it ?

2]
Instead of using CGA to texture your building, did you try the new Shape Texturing Tool ? This may be easier to use, especially if you are using different images on all sides of a Shape. And you can edit the placement rather interactively.

See how to use it also in the tutorial 14 videos ..
http://video.arcgis.com/watch/1782/tutorial-14a-basic-polygonal-modeling
http://video.arcgis.com/watch/1783/tutorial-14b-advanced-polygonal-modeling
http://video.arcgis.com/watch/1784/tutorial-14c-combining-polygonal-modeling-with-rules

Or of course, check the Manual:
CityEngine Help > Manual > Shapes > Creating and Editing Shapes Manually

Let me know ..
0 Kudos
JoanneO_Brien
Occasional Contributor
Oops sorry about the lack of image, I've attached it this time.

I did try with the shape texturing tool, which works to an extent, but the buildings still appear see through using this, and when I go to convert it into a shape model it only converts the sections containing a cga rule file.

thanks
0 Kudos
MatthiasBuehler1
Frequent Contributor
Hi !

I created a new sticky thread with some help which may help you on this too:
http://forums.arcgis.com/threads/70378-Shapes-Models-and-Model-Export

Let me know once you read through it carefully.

I think you have to address specifically which geometries you handle as 'textured Shapes' and which ones you deal with as 'Models' with CGA.

Let me know if that thread makes things clearer or if things are missing !

Matt
0 Kudos