Translating model

2059
3
12-06-2011 12:43 PM
ZorkoSostaric
New Contributor II
I would like to do something relatively simple - move generated model to 0,0,0 coordinates of world coordinate system. Data I'm using in projected coordinate system and coordinate values are like 1770292.09, 0, -5909240.63.
Using this as an example I would like to move that model by -1770292.09, 0, 5909240.63.

My original idea was to combine convert and translate functions in something like this:

Building --> comp(f) { front : FrontFacade | side: SideFacade | top: roofHip(22.5, 0.5, true) Roof}
  xm = convert(x, scope, world, pos, 0, 0, 0)
  ym = convert(x, scope, world, pos, 0, 0, 0)
  zm = convert(x, scope, world, pos, 0, 0, 0)
  translate(rel, world, (xm * -1), ym, (zm *  -1))

but I get the 'Mismatched Token(translate) error.

Any help is most welcome.
0 Kudos
3 Replies
MatthiasBuehler1
Frequent Contributor
I guess you want to export a 'geolocated' scene from the CityEngine to visualize in an other software. For this, the CE has already a built-in functionality which handles this for you.

Check the misc options in the Exporter Window.

Lemme know if this helps.
0 Kudos
ZorkoSostaric
New Contributor II
I guess you want to export a 'geolocated' scene from the CityEngine to visualize in an other software. For this, the CE has already a built-in functionality which handles this for you.

Check the misc options in the Exporter Window.

Lemme know if this helps.


Thanks Matthias,

I am trying importing models in UDK and export to FBX using misc options works fine. But import in UDK still crashes UDK...

Thanks.
0 Kudos
MatthiasBuehler1
Frequent Contributor
hi !

does the '.obj' format also crash UDK ?

if you just create some very simple geometry, does it crash too ?
0 Kudos