FBX Export Issues / Unreal UDK

1869
11
02-16-2012 08:25 AM
JonahAdkins
New Contributor II
New to CityEngine and having fun! I have selected several buildings, and am exporting them to fbx with a 'write t3d' python script on the back end. The t3d script creates a name for each building (actor). The fbx exporter creates a seperate name for each fbx model. Therefore the models referenced in the t3d dont match.

Help!
0 Kudos
11 Replies
MatthiasBuehler1
Frequent Contributor II
Hi Jonah,

are you writing that python script yourself or did you find the old one we provided 1.5 years ago on the old procedural forum ?
0 Kudos
JonahAdkins
New Contributor II
Hi Jonah,

are you writing that python script yourself or did you find the old one we provided 1.5 years ago on the old procedural forum ?


I am editing the old script "write_instances_t3d.py" I was able to successfully edit the script to match the names assigned by the fbx exporter. It seems there should be a way to change the naming convention that is assigned by the fbx exporter.

Haven't figured out how to get the textures to come into the UDK on the fbx models..??
0 Kudos
MatthiasBuehler1
Frequent Contributor II
I am not really familiar with the script, but what I'd recommend is you adapt the fbx exporter settings to change the behavior ..


sorry to ask, but did you check the CE Help (F1) Python Scripting > Commands by Category > FBXExportModelSettings
?

class FBXExportModelSettings :
setGeneralName()



to also get the textures and copy them to the output dir, I'd use :
getMaterialsCollectTextures()




does this what you need ?
0 Kudos
JonahAdkins
New Contributor II
I ended up modifying the script to change the name of the paths in the t3d script to match the auto-naming of the fbx exporter.....i like your suggestion about the fbx name call, i will have to look into that...
0 Kudos
MatthiasBuehler1
Frequent Contributor II
ok, cool !

let me know how it works !
0 Kudos
DavidBawel
New Contributor
Hi,

I was trying to contact Jonah as he appears to be the only person I've found with any question related to Unreal Engine.  We are having issues exporting FBX files from City Engine in groups that we can use to remap and work with in Unreal 4 as well as Motionbuilder.  If Jonah can respond to this post to describe the issue he was having as well as any info he can provide about FBX exporting from CE, this would be very valuable to us.  Also, I cannot locate the write_instances_t3d.py script that is referenced in this post.
If anyone can respond with info on how we can have more control over the model and texture export as FBX file from City Engine, this would be great.  Otherwise, the way they are currently grouped on export is useless for us in Unreal and Motionbuilder.

Thank you,

David Bawel
0 Kudos
ZorkoSostaric1
Esri Contributor

David,

I am trying to get CE generated content in UE (time permitting) but I have issues with scale of my models in UE4 (FBX models). If you get them in UE properly let me know.

Thanks.

Zorko Sostaric

0 Kudos
JonahAdkins
New Contributor II
David,

Sad To Say I've Been Out Of The UnReal / City Engine Game For Awhile (1.5 yrs). Here Is The Link To The Older Forum Post That Includes The Download For The UnReal /UDK Workflow Sample http://forums.esri.com/CityEngine/forum-16088.html
0 Kudos
DanielWinkler2
New Contributor

Unfortunately the links do not work anymore.

Is there any way to get the "write_t3d.py" script.

Kind regards,

Daniel

0 Kudos