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-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_idOpen2011-03-23 01:20jesterking
close_dateNone2011-03-23 01:20jesterking
StatusInvestigate2011-03-23 01:20jesterking
StatusNew2011-03-22 23:58jesterking
assigned_tonone2011-03-12 23:32jesterking
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:32jesterking