Missing Textures in CityEngine

1216
2
04-21-2021 01:33 AM
Muhammad_ShahzadZafar
New Contributor
Hi,
We have assigned textures in Trimble SketchUp application and exported to DAE format. Please find the screenshot below. 
 
Muhammad_ShahzadZafar_6-1618993311198.png

 

Then we imported the same file into City Engine, but the textures were missing to view. Please find the below  screenshot.

 
Muhammad_ShahzadZafar_7-1618993332523.png

 

Now, we prepared textures including the top image in 3DS Max Application as individual buildings and  exported DAE format, please find the below screenshot.  

 
Muhammad_ShahzadZafar_8-1618993343856.png

 

 

The same file was imported in City Engine but the model was shaped out, We tried to fix the issue, but it was creating the same problem with the City Engine application. Please find the below screenshot. Whereas the  data appears good in the other formats. Please suggest further.

 
Muhammad_ShahzadZafar_9-1618993361413.png

 

 

We have assigned generic textures in City Engine and buildings are showing proper shapes with texture, please find below screenshot. 

 

Muhammad_ShahzadZafar_14-1618993404295.png

 


 

Once we export into DAE format, models are not showing properly, please find below screenshot.

 

 
Muhammad_ShahzadZafar_15-1618993424143.png

 

Please suggest us the way further. Also, City Engine is not allowed to assign the RoofTop image texture.

 3d Model(.dae) is also attached.

Regards

Muhammad Shahzad

0 Kudos
2 Replies
DevinLavigne
Occasional Contributor III

The best luck I've had working with Sketchup models is exporting as KMZ files. It ends up being a DAE also but you should see the textures.

Give that a try and report back.

0 Kudos
ThomasFuchs
Esri Regular Contributor

Hello @Muhammad_ShahzadZafar 

When looking at your provided Collada (.dae) 3d Model, I noticed that most geometries have a redundant material assigned. This might have happened unintentionally during the modelling process.

ThomasFuchs_1-1623160698112.png


A simple insert rule can remove the undesired materials:

version "2021.0"

@File
attr assetPath = "DAE/Part1/Part1.dae"
attr removeMaterial = ["__auto_1","__auto_","__auto_4"]

R-->
	i(assetPath, yUp, keepSizeAlignPosition)
	comp(m){all: RemoveMat }
	
RemoveMat -->
	case findFirst( removeMaterial , material.name) > -1:
		NIL
	else:
		print(material.name)
		X.


This lets you then get the textured buildings in CityEngine:

ThomasFuchs_0-1623160630578.png

 

 

0 Kudos