Only search projects.blender.org
Log In
New Account
Home
My Page
Projects
Blender 2.x BF release
Summary
Activity
Tracker
SCM
Files
Blender 2.6 Bug Tracker: Browse
[#26474] double_sided wrong in Collada Export
Date:
2011-03-12 16:49
Priority:
3
State:
Closed
Submitted by:
Juan Linietsky (
reduz
)
Assigned to:
Nathan Letwory (jesterking)
Category:
Import/Export
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
Summary:
double_sided wrong in Collada Export
Detailed description
Blender collada export is using the wrong extensions for double_sided.
It's appending:
<extra>
<technique profile="GOOGLEEARTH">
<show_double_sided>1</show_double_sided>
</technique>
</extra>
and
<extra>
<technique profile="MAX3D">
<double_sided>1</double_sided>
</technique>
</extra>
to the MATERIAL section. This is becuase 3DS Max sets double sidedness in the material.
Blender sets double sidedness in the GEOMETRY, NOT in the material. This is the same as MAYA, so the correct behavior
is to use the MAYA extension instead, which is equally supported too:
When exported from Blender, the following tag must be appeded to the <geometry> tag:
<geometry>
....
<extra>
<technique profile="MAYA">
<double_sided>1</double_sided>
</technique>
</extra>
</geometry>
and the existing tags in Material should be removed, because they are confusing to importers.
Followup
Message
Date
: 2011-03-12 23:32
Sender
:
Nathan Letwory
assigning to myself for further investigation.
Date
: 2011-03-22 13:48
Sender
:
Nathan Letwory
Wouldn't it make sense to have the tag then in both material and geometry? Of course, if 3DS Max also reads correctly with tag set in geometry, it's ok to have it only there.
Date
: 2011-03-22 14:26
Sender
:
Juan Linietsky
My fear is that having it in both places may confuse other importers. Since there is no exporter at the moment that exports this in all places, existing ones most definitely settle with wathever they find first (or last). Maya is a widely used app (specially on the game industry, that uses collada), so just mimicking its behavior should be, i think, the safest way to proceed.
Date
: 2011-03-22 23:58
Sender
:
Nathan Letwory
This link:
http://docs.garagegames.com/torque-3d/official/content/documentation/Artist%20Guide/Importing%20Assets/ColladaLoader.html
nicely explains the different profiles that can be used to mark this. Importers generally just ignore other profiles, so I don't think that's a problem. What you see is most likely just that the profile your tool relies on isn't there.
I'll add the tag for Maya too, right now just hard-coded, but these things should eventually go behind an option on the exporter. But that's for todo list.
Date
: 2011-03-23 01:20
Sender
:
Nathan Letwory
Added the Maya profile to <geometry>. Committed in r35713.
Thanks for reporting.
Attached Files:
No Files Currently Attached
Changes:
Field
Old Value
Date
By
status_id
Open
2011-03-23 01:20
jesterking
close_date
None
2011-03-23 01:20
jesterking
Status
Investigate
2011-03-23 01:20
jesterking
Status
New
2011-03-22 23:58
jesterking
assigned_to
none
2011-03-12 23:32
jesterking
details
Blender collada export is using the wrong extensions for double_sided. It\'s appending: <extra> <technique profile="GOOGLEEARTH"> <show_double_sided>1</show_double_sided> </technique> </extra> and <extra> <technique profile="MAX3D"> <double_sided>1</double_sided> </technique> </extra> to the MATERIAL section. This is becuase 3DS Max sets double sidedness in the material. Blender sets double sidedness in the GEOMETRY, NOT in the material. This is the same as MAYA, so the correct behavior is to use the MAYA extension instead, which is equally supported too: When exported from Blender, the following tag must be appeded to the <geometry> tag: <geometry> .... <extra> <technique profile="MAYA"> <double_sided>1</double_sided> </technique> </extra> </geometry> and the existing tags in Material should be removed, because they are confusing to importers.
2011-03-12 23:32
jesterking