-
Notifications
You must be signed in to change notification settings - Fork 3
Fixed the DAE file conversion errors #60
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ce67947
dae: Fixed an issue where materials would sometimes not bind
ft-lab 6a233fa
dae: Ignore broken references
ft-lab 15a3a1b
dae: Organizing codes when storing UVs
ft-lab 87308f8
dae: Changed to use material ID for material identification within on…
ft-lab 973d25a
Merge remote-tracking branch 'origin/main' into dev/bug_fixes
ft-lab c1b5277
dae: If there are no duplicate material names in dae, use the materia…
ft-lab File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,124 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
| <asset> | ||
| <unit name="meter" meter="1"/> | ||
| <up_axis>Z_UP</up_axis> | ||
| </asset> | ||
| <library_effects> | ||
| <effect id="Material_red-effect"> | ||
| <profile_COMMON> | ||
| <technique sid="common"> | ||
| <lambert> | ||
| <emission> | ||
| <color sid="emission">0 0 0 1</color> | ||
| </emission> | ||
| <diffuse> | ||
| <color sid="diffuse">1 0 0 1</color> | ||
| </diffuse> | ||
| <index_of_refraction> | ||
| <float sid="ior">1.45</float> | ||
| </index_of_refraction> | ||
| </lambert> | ||
| </technique> | ||
| </profile_COMMON> | ||
| </effect> | ||
| <effect id="Material_green-effect"> | ||
| <profile_COMMON> | ||
| <technique sid="common"> | ||
| <lambert> | ||
| <emission> | ||
| <color sid="emission">0 0 0 1</color> | ||
| </emission> | ||
| <diffuse> | ||
| <color sid="diffuse">0 1 0 1</color> | ||
| </diffuse> | ||
| <index_of_refraction> | ||
| <float sid="ior">1.5</float> | ||
| </index_of_refraction> | ||
| </lambert> | ||
| </technique> | ||
| </profile_COMMON> | ||
| </effect> | ||
| </library_effects> | ||
| <library_images/> | ||
| <library_materials> | ||
| <material id="Material_red-material" name="Material_same"> | ||
| <instance_effect url="#Material_red-effect"/> | ||
| </material> | ||
| <material id="Material_green-material" name="Material_same"> | ||
| <instance_effect url="#Material_green-effect"/> | ||
| </material> | ||
| </library_materials> | ||
| <library_geometries> | ||
| <geometry id="Cube-mesh" name="Cube"> | ||
| <mesh> | ||
| <source id="Cube-mesh-positions"> | ||
| <float_array id="Cube-mesh-positions-array" count="24">1 1 1 1 1 -1 1 -1 1 1 -1 -1 -1 1 1 -1 1 -1 -1 -1 1 -1 -1 -1</float_array> | ||
| <technique_common> | ||
| <accessor source="#Cube-mesh-positions-array" count="8" stride="3"> | ||
| <param name="X" type="float"/> | ||
| <param name="Y" type="float"/> | ||
| <param name="Z" type="float"/> | ||
| </accessor> | ||
| </technique_common> | ||
| </source> | ||
| <source id="Cube-mesh-normals"> | ||
| <float_array id="Cube-mesh-normals-array" count="36">0 0 1 0 -1 0 -1 0 0 0 0 -1 1 0 0 0 1 0 0 0 1 0 -1 0 -1 0 0 0 0 -1 1 0 0 0 1 0</float_array> | ||
| <technique_common> | ||
| <accessor source="#Cube-mesh-normals-array" count="12" stride="3"> | ||
| <param name="X" type="float"/> | ||
| <param name="Y" type="float"/> | ||
| <param name="Z" type="float"/> | ||
| </accessor> | ||
| </technique_common> | ||
| </source> | ||
| <source id="Cube-mesh-map-0"> | ||
| <float_array id="Cube-mesh-map-0-array" count="72">0.875 0.5 0.625 0.75 0.625 0.5 0.625 0.75 0.375 1 0.375 0.75 0.625 0 0.375 0.25 0.375 0 0.375 0.5 0.125 0.75 0.125 0.5 0.625 0.5 0.375 0.75 0.375 0.5 0.625 0.25 0.375 0.5 0.375 0.25 0.875 0.5 0.875 0.75 0.625 0.75 0.625 0.75 0.625 1 0.375 1 0.625 0 0.625 0.25 0.375 0.25 0.375 0.5 0.375 0.75 0.125 0.75 0.625 0.5 0.625 0.75 0.375 0.75 0.625 0.25 0.625 0.5 0.375 0.5</float_array> | ||
| <technique_common> | ||
| <accessor source="#Cube-mesh-map-0-array" count="36" stride="2"> | ||
| <param name="S" type="float"/> | ||
| <param name="T" type="float"/> | ||
| </accessor> | ||
| </technique_common> | ||
| </source> | ||
| <vertices id="Cube-mesh-vertices"> | ||
| <input semantic="POSITION" source="#Cube-mesh-positions"/> | ||
| </vertices> | ||
| <triangles material="Material_red-material" count="6"> | ||
| <input semantic="VERTEX" source="#Cube-mesh-vertices" offset="0"/> | ||
| <input semantic="NORMAL" source="#Cube-mesh-normals" offset="1"/> | ||
| <input semantic="TEXCOORD" source="#Cube-mesh-map-0" offset="2" set="0"/> | ||
| <p>2 1 3 7 1 4 3 1 5 6 2 6 5 2 7 7 2 8 1 3 9 7 3 10 5 3 11 2 7 21 6 7 22 7 7 23 6 8 24 4 8 25 5 8 26 1 9 27 3 9 28 7 9 29</p> | ||
| </triangles> | ||
| <triangles material="Material_green-material" count="6"> | ||
| <input semantic="VERTEX" source="#Cube-mesh-vertices" offset="0"/> | ||
| <input semantic="NORMAL" source="#Cube-mesh-normals" offset="1"/> | ||
| <input semantic="TEXCOORD" source="#Cube-mesh-map-0" offset="2" set="0"/> | ||
| <p>4 0 0 2 0 1 0 0 2 0 4 12 3 4 13 1 4 14 4 5 15 1 5 16 5 5 17 4 6 18 6 6 19 2 6 20 0 10 30 2 10 31 3 10 32 4 11 33 0 11 34 1 11 35</p> | ||
| </triangles> | ||
| </mesh> | ||
| </geometry> | ||
| </library_geometries> | ||
| <library_visual_scenes> | ||
| <visual_scene id="Scene" name="Scene"> | ||
| <node id="Cube" name="Cube" type="NODE"> | ||
| <matrix sid="transform">0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 1</matrix> | ||
| <instance_geometry url="#Cube-mesh" name="Cube"> | ||
| <bind_material> | ||
| <technique_common> | ||
| <instance_material symbol="Material_red-material" target="#Material_red-material"> | ||
| <bind_vertex_input semantic="UVMap" input_semantic="TEXCOORD" input_set="0"/> | ||
| </instance_material> | ||
| <instance_material symbol="Material_green-material" target="#Material_green-material"> | ||
| <bind_vertex_input semantic="UVMap" input_semantic="TEXCOORD" input_set="0"/> | ||
| </instance_material> | ||
| </technique_common> | ||
| </bind_material> | ||
| </instance_geometry> | ||
| </node> | ||
| </visual_scene> | ||
| </library_visual_scenes> | ||
| <scene> | ||
| <instance_visual_scene url="#Scene"/> | ||
| </scene> | ||
| </COLLADA> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.