Skip to content

Commit 7ceae7e

Browse files
author
Roberto De Ioris
authored
Update SnippetsForStaticAndSkeletalMeshes.md
1 parent cca7e0d commit 7ceae7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/SnippetsForStaticAndSkeletalMeshes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ pip install pycollada
866866

867867
Here is the code, note that this time we do not save assets. All of the objects are transient (storing them is left as exercise).
868868

869-
Check how we need to fix UVs too, as UE4 do not use the OpenGL convention (damn, this is starting to become annoying ;) of texcoords origin on the left-bottom.
869+
Check how we need to fix UVs too, as UE4 do not use the OpenGL convention (damn, this is starting to become annoying ;) of texcoords origin on the left-bottom. More infos about switching conventions are in the below snippet about ThreeJS models.
870870

871871
```python
872872
import unreal_engine as ue
@@ -907,7 +907,7 @@ class ColladaLoader:
907907
v0 = transform.translation
908908
q0 = transform.quaternion
909909

910-
# fix axis from OpenGL to UE4 (note the quaternion multiplication)
910+
# fix axis from OpenGL to UE4 (note the quaternion multiplication that we use instead of inverting the z)
911911
transform.translation = FVector(v0.z, v0.x, v0.y) * self.base_quaternion
912912
transform.quaternion = FQuat(q0[2], q0[0] * -1, q0[1] * -1, q0[3])
913913

0 commit comments

Comments
 (0)