You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The transparency result is different between Ignition ColladaLoader and threejs's CollaLoader if <transparency> tag is present, and <transparent> tag is missing, e.g. the follow tag produces an opaque mesh in Ignition but a transparent mesh in threejs:
This should produce a transparency value of 1.0 which means fully transparent.
Other notes
_mat->SetTransparency(dstFactor); is a bit confusing since srcFactor is the one that corresponds to the object's material opacity. However, the math works out to be correct because:
Environment
Description
The transparency result is different between Ignition ColladaLoader and threejs's CollaLoader if
<transparency>
tag is present, and<transparent>
tag is missing, e.g. the follow tag produces an opaque mesh in Ignition but a transparent mesh in threejs:Looking at the collada spec (pdf) spec, the default mode should be
A_ONE
. The current code sets transparency in the following way:This should produce a transparency value of
1.0
which means fully transparent.Other notes
_mat->SetTransparency(dstFactor);
is a bit confusing sincesrcFactor
is the one that corresponds to the object's material opacity. However, the math works out to be correct because:The text was updated successfully, but these errors were encountered: