POST
|
Hi, I've attached a minimal example: Rule-File:
attr myColor = 50%: "#ff7777"
else: "#58FA58"
Lot --> extrude(10) color(myColor) Material-File with filesize option: newmtl Lot_1
Kd 0.345098 0.980392 0.345098
Ka 0 0 0
d 1
Tf 1.0 1.0 1.0
Ni 1.0
illum 3
Ks 0 0 0
Ns 0
newmtl Lot
Kd 1 0.466667 0.466667
Ka 0 0 0
d 1
Tf 1.0 1.0 1.0
Ni 1.0
illum 3
Ks 0 0 0
Ns 0 As expected, two colors. With file_per_shape option I also got only one material-file with content: newmtl Lot_30
Kd 1 0.466667 0.466667
Ka 0 0 0
d 1
Tf 1.0 1.0 1.0
Ni 1.0
illum 3
Ks 0 0 0
Ns 0
... View more
03-26-2014
08:22 AM
|
0
|
0
|
292
|
POST
|
Same problem here: If I choose the filse size big enough (=> only one OBJ file is generated), everything is fine. If I choose the file size smaller and the model gets splitted into multiplte OBJ files, only one material file (that does not contain all information) is generated.
... View more
03-24-2014
05:06 AM
|
0
|
0
|
292
|
POST
|
I tried it with a fresh installation of CE 2013 and the default preset. Same problem. Only one Material file with only the materials of one object. Looks like a bug in CityEngine.
... View more
03-05-2014
12:10 PM
|
0
|
0
|
292
|
POST
|
Sorry for reactivating this old thread, but i have exactly the same problem. I try to export the Modern Street example with the one file par shape option. I got a file for every shape and every texture, but only one Material-File which has only two materials (Pavement_141, Curbs_123). (Same Problem with any other model) The export log: export started at: Tue Feb 25 18:16:30 2014
export completed at: Tue Feb 25 18:17:22 2014
export duration: 52.0 seconds
EXPORT SETTINGS
format: default
location: C:\Users\Test\CityEngine\Example_Modern_Streets__2012_1\models
base name: ModernStreets
export content: 1 (0 = models only, 1 = fallback to shape, 2 = shapes only)
file granularity: 1 (0 = single file (or split by file budget), 1 = file per initial shape)
file size budget: 524288000
mesh granularity: 1 (0 = as generated, 1 = mesh per material, 2 = use instances of inserted assets)
vertex precision: 0.00100
normal precision: 0.00100
texcoord precision: 0.00010
merge vertices: 1
merge normals: 1
merge texcoords: 1
triangulate: 1
reproject texcoords: 0
vertex indexing: 0 (0 = allow shared vertices, 1 = force separate vertices)
normals type: 0 (0 = use vertex normals, 1 = use face normals (flat))
normals indexing: 0 (0 = allow shared normals, 1 = force separate normals)
write texcoords: 1 (0 = no texcoords, 1 = first layer, 2 = all layers)
write materials: 1
collect textures: 1
file type: 0 (0 = ascii, 1 = binary)
embed textures: 0
write master file: 0
master group name: CityEngineSceneRoot
write cam data: 1
batch behavior: 0 (0 = normal, 1 = skip existing files, 2 = dry run)
INPUT STATS
number of initial shapes = 1012
number of generated shapes = 26150
number of generated meshes = 26175
number of generated materials = 26175
OUTPUT STATS
written files: 1012
written materials: 3846
written meshes (total polygons): 3846 (630407)
mesh names (polygons):
[...] Any suggestions?
... View more
02-25-2014
07:29 AM
|
0
|
0
|
890
|
POST
|
Hi everyone, I'm trying to export a bigger scene to Wavefront OBJ with the "file per initial shape"-option. As expected, every shape gets an file export_Shape.obj export_Shape_1.obj,... But for the mtl i get only one file, which is called "export.mtl" and contains only the materials of the last shape. Is sth. wrong with my export settings? (see below, I'm using CE2012) EXPORT SETTINGS
format: Wavefront OBJ
location: C:\Users\***\CityEngine\CGAtest\models
base name: export
export content: 1 (0 = models only, 1 = fallback to shape, 2 = shapes only)
file granularity: 1 (0 = single file (or split by file budget), 1 = file per initial shape)
file size budget: 524288000
mesh granularity: 1 (0 = as generated, 1 = mesh per material, 2 = use instances of inserted assets)
vertex precision: 0.00100
normal precision: 0.00100
texcoord precision: 0.00010
merge vertices: 1
merge normals: 1
merge texcoords: 1
triangulate: 1
reproject texcoords: 0
vertex indexing: 0 (0 = allow shared vertices, 1 = force separate vertices)
normals type: 0 (0 = use vertex normals, 1 = use face normals (flat))
normals indexing: 0 (0 = allow shared normals, 1 = force separate normals)
write texcoords: 1 (0 = no texcoords, 1 = first layer, 2 = all layers)
write materials: 1
collect textures: 1
file type: 0 (0 = ascii, 1 = binary)
embed textures: 0
write master file: 0
master group name: CityEngineSceneRoot
write cam data: 1
batch behavior: 0 (0 = normal, 1 = skip existing files, 2 = dry run)
... View more
02-03-2014
03:26 PM
|
0
|
0
|
894
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|