Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object names with special characters are invalid collada #58

Open
hungrymonkey opened this issue Dec 28, 2017 · 4 comments
Open

Object names with special characters are invalid collada #58

hungrymonkey opened this issue Dec 28, 2017 · 4 comments
Labels

Comments

@hungrymonkey
Copy link

hungrymonkey commented Dec 28, 2017

Software versions

OSX High Sierra.

2 day old master branch godot

better collada commit number 836241a

WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
WARNING: _parse_mesh_geometry: Primitive type "polygons" is not well supported (concave shapes may fail). To ensure that the geometry is properly imported, please re-export using "triangles" or "polylist".
   At: editor/collada/collada.cpp:1060.
ERROR: load: Condition ' !collada.state.visual_scene_map.has(collada.state.root_visual_scene) ' is true. returned: ERR_INVALID_DATA
   At: editor/import/editor_import_collada.cpp:1404.
ERROR: import_scene: Condition ' err != OK ' is true. returned: __null
   At: editor/import/editor_import_collada.cpp:1936.
ERROR: get_dependencies: Condition ' !f ' is true.
   At: core/io/resource_format_binary.cpp:1046.
ERROR: load_interactive: Condition ' err != OK ' is true. returned: Ref<ResourceInteractiveLoader>()
   At: core/io/resource_format_binary.cpp:996.
ERROR: _load: Failed loading resource: res://.import/walls_only.dae-2495f74eb8f5b57224687e700f224e50.scn
   At: core/io/resource_loader.cpp:185.
ERROR: _load: Failed loading resource: res://walls_only.dae
   At: core/io/resource_loader.cpp:185.
ERROR: remove_scene: Index p_idx=1 out of size (edited_scene.size()=1)
   At: editor/editor_data.cpp:491.

steps to reproduce

1 open .blend model
2 export with better collada
3. load scene into godot
4. error loading

expected result:

Scene is loaded like the official gltf 2.0 exporter

https://github.com/KhronosGroup/glTF-Blender-Exporter/tree/master/scripts

blender model.

screen shot 2017-12-28 at 9 35 04 am

gtlf2.0: created by the official khoronos exporter

screen shot 2017-12-28 at 9 40 49 am

scene models

walls_only.zip

@set-killer
Copy link
Contributor

A possible reason for this could be the " symbol in the name of the exported objects.
You may try to validate the exported .dae file as described here:
https://www.khronos.org/collada/wiki/Schema_validation

If the validation passes then this bug should be posted in the godot engine issue tracker. If it does not, please post the results here.

@hungrymonkey
Copy link
Author

/Users/psuedofinnish/miggy_scenes/walls_only.dae:14: parser error : Specification mandates value for attribute Glazing-1
	<geometry id="id-mesh-2" name="08_Glazing Panel 1" Glazing-1 1/4" Offset [67291
	                                                             ^
/Users/psuedofinnish/miggy_scenes/walls_only.dae:14: parser error : attributes construct error
	<geometry id="id-mesh-2" name="08_Glazing Panel 1" Glazing-1 1/4" Offset [67291
	                                                             ^
/Users/psuedofinnish/miggy_scenes/walls_only.dae:14: parser error : Couldn't find end of Start Tag geometry line 14
	<geometry id="id-mesh-2" name="08_Glazing Panel 1" Glazing-1 1/4" Offset [67291
	                                                             ^
/Users/psuedofinnish/miggy_scenes/walls_only.dae:66: parser error : Opening and ending tag mismatch: library_geometries line 13 and geometry
	</geometry>
	           ^
/Users/psuedofinnish/miggy_scenes/walls_only.dae:67: parser error : Specification mandates value for attribute Glazing-1
	<geometry id="id-mesh-3" name="08_Glazing Panel 1" Glazing-1 1/4" Offset [67321
	                                                             ^
/Users/psuedofinnish/miggy_scenes/walls_only.dae:67: parser error : attributes construct error
	<geometry id="id-mesh-3" name="08_Glazing Panel 1" Glazing-1 1/4" Offset [67321
	                                                             ^
/Users/psuedofinnish/miggy_scenes/walls_only.dae:67: parser error : Couldn't find end of Start Tag geometry line 67
	<geometry id="id-mesh-3" name="08_Glazing Panel 1" Glazing-1 1/4" Offset [67321
	                                                             ^
/Users/psuedofinnish/miggy_scenes/walls_only.dae:119: parser error : Opening and ending tag mismatch: COLLADA line 2 and geometry
	</geometry>
	           ^
/Users/psuedofinnish/miggy_scenes/walls_only.dae:120: parser error : Extra content at the end of the document
	<geometry id="id-mesh-4" name="08_Glazing Panel 1" Glazing-1 1/4" Offset [67341

@hungrymonkey
Copy link
Author

can we document a list of invalid chars in better collada exporter?

@set-killer
Copy link
Contributor

The trick is - this invalid characters should be supported (and therefore valid). But until then please avoid special symbols like: " ' ` / \ & < > and so on...

@hungrymonkey hungrymonkey changed the title Error loading model exported from blender Object names with special characters are invalid collada Dec 30, 2017
@Calinou Calinou added the bug label Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants