Comments (4)
Yes, currently we are fixing the up axis different in blender and godot by adding a rotation around x-axis. This suggestion is quite good, I am also thinking about directly applying the rotation into vertex data, and keep the transform matrix same as it was in blender, this also avoids overheads in exported material shader scripts.
For the gimbal lock, I think you can always stored rotation as quaternion or a matrix to avoid it (correct me if I am wrong).
Anyway, this is a wanted feature, thank you for suggestion.
from godot-blender-exporter.
The gimbal lock issue happens in the inspector. The rotation of a node is expressed as Euler angles, so if the node starts rotated by 90 degrees there is no linear interpolation of a x-, y- or z-value that expresses a rotation around the world z axis.
You are right though that I could add a (redundant) quaternion as an exported variable and animate that.
I was able to create a workaround by importing the scene with subscenes and then adding a new parent node to the object that was supposed to be animated, but it would of course be nice to have a more straightforward workflow.
Thanks for the reply.
from godot-blender-exporter.
sorry, I had a bad memory of our implementation of axis fix, my first reply is totally incorrect...
I checked the code again and I remembered this addon has a fix to every vectors position through
def fix_vertex(vtx):
"""Changes a single position vector from y-up to z-up"""
return mathutils.Vector((vtx.x, vtx.z, -vtx.y))
and also swap the up axis of every transform matrix,(if you are curios, see here)
There is a rotation -90 degree around x axis, but it is not related to transform. You may found the rotation in DirectionalLight or Camera node, it is a direction fix, because in blender these node are default have z-up with identity transform, while in godot they are y-up. So I think there is nothing to do about it. If gimbal lock really troubles you, maybe think about recreate the node in godot if it's simple.
from godot-blender-exporter.
Close for now, if you have more questions, feel free to reopen.
from godot-blender-exporter.
Related Issues (20)
- Docker build fails on setuptools upgrade HOT 1
- Texture Problem? HOT 3
- @https://github.com/Calinou
- Export as individual scene
- can't find 2.79 drivers HOT 1
- I'm Sorry I can't find blender 2.79 addons, can someone please help HOT 2
- support exporting materials with noise nodes HOT 3
- Request for option to choose root node type during export.
- Consider eliminating superfluous BoneAttachment nodes during export.
- image texture is missing in the exported file(.escn)
- KeyError from export_morphs when attempting to export shape keys HOT 4
- Tgg
- Toward a better exporting of particles systems (some first fixing attempts)
- Material-Export adding Linebreake in the Comment-Section of the Shader-Code (With possible Solution?)
- Missing keyframes
- blender 3.4 HOT 20
- Support Godot 4 HOT 4
- Blender 4.0 export escn raise key error with "Subsurface not found". HOT 2
- Inquiry for the roadmap of this project HOT 1
- Support missing for Blender color ramp / gradient texture
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godot-blender-exporter.