Using satellite imagery as roof textures

3037
4
Jump to solution
10-20-2015 09:05 AM
antoniode_la_torre_morales
New Contributor II

Hi,

I was looking in the help section of city engine and I found something about this.

In the "setupProjection operation" we can see this code:

attr buildingheight= 20

Lot-->

  set(trim.vertical, false)

  extrude(buildingheight)

  comp(f){top : Roof | side : Facade}

Roof-->

  setupProjection(0, world.xz, 586, 442)

  projectUV(0)

  scaleUV(0, 1, -1)

  set(material.colormap, "test_0102_ortho.jpg")

I have used it but i can´t assign the texture of the ortophoto to my roofs...

This code is for the version 2009. How can i do it? Should i use another code?

0 Kudos
1 Solution

Accepted Solutions
antoniode_la_torre_morales
New Contributor II

Ok this is the solution that have worked for me

http://www.geoplanit.co.uk/?p=470

View solution in original post

0 Kudos
4 Replies
DanPatterson_Retired
MVP Emeritus

you should move this post to City Engine CityEngine

you have posted in the place where people come to find out about the GeoNet contest... perhaps there is some overlap, but I suspect moving there will produce more answers.

0 Kudos
antoniode_la_torre_morales
New Contributor II

Sorry, I have moved it now.

0 Kudos
BenLeslie1
Occasional Contributor III

This is what works for me:

Roof-->

  setupProjection(0, world.xz, 586, 442)

  projectUV(0)

  texture("test_0102_ortho.jpg")

0 Kudos
antoniode_la_torre_morales
New Contributor II

Ok this is the solution that have worked for me

http://www.geoplanit.co.uk/?p=470

0 Kudos