styly-dev / STYLY-Spatial-Layer-Plugin

Unity plugin to upload your contents to Vision Pro via STYLY
https://apps.apple.com/us/app/styly-for-vision-pro/id6475184828
MIT License
10 stars 1 forks source link

Rotate 180deg online model sample around Y #117

Closed ku6ryo closed 2 days ago

ku6ryo commented 1 week ago

The model stands with its back to users.

DglyP commented 1 week ago

Image

Decided to include a different edition tool in the nodes here. Due to the fact that GLTF objects sometimes have rotation issues (where the axis can be flipped), I decided to include a Vector3 implementation that enables the users to rotate on every axis after the import. A target object is not required for this step but it might be recommended if this is the way that we want to implement the fix. We may discuss this during the next meeting.

Image

DglyP commented 2 days ago

Following with the analysis of the nodes on the 180 rotation of the VRM package, we notice that the issue is the same. The way that the nodes were connected is not correct. By using the following implementation of the nodes, we can achieve the required rotation without needing to change the code itself.

image