Comments (2)
The exporter doesn't support keyframes directly set in the mesh object because G3D format also doesn't support this. The G3D format only supports bone animation.
To achieve what you want, create a new armature with a single bone (Shift+A > Armature > Single Bone), attach it to the cube object (select the object first then Shift+RMB on the armature object > Ctrl+P > Armature With Automatic Weights) and do the exact steps you just did (keyframe on frame 1, go to last frame, scale and keyframe again) but on the bone instead of the mesh object. Remember to scale the bone in pose mode, not in object or edit mode.
Below is an example file with this setup for you to test. Notice that when exporting this file you'll just see two keyframes on the resulting file (as expected) but a new file on Blender will produce 250 keyframes. That's because by default Blender uses a bezier curve to ease animations and since LibGDX only supports linear interpolation we have to generate multiple keyframes to simulate the easing effect. If you set the animation interpolation to linear in Blender this will produce the same keyframes you set on your file.
from libgdx_blender_g3d_exporter.
Thank you! First time playing with G3D and it wasn't very clear it has to bone only animation from all the places I was reading. Thanks again
from libgdx_blender_g3d_exporter.
Related Issues (18)
- G3DB output HOT 7
- Cycles node editor HOT 2
- 2.78 support? HOT 4
- Exporting unused parts
- Export fail if scene only contains animation HOT 4
- Export issues HOT 4
- Another export issue HOT 5
- Texture missing HOT 2
- Texture file name, and Material.emissive property HOT 3
- Can't export with texture HOT 2
- bpy.ops.export_json_g3d scene arguments HOT 1
- Won't work with blender 2.8 HOT 2
- armature animation error
- Needs an update to blender 2.74 HOT 4
- Y-up and G3DB support HOT 2
- Dope sheet actions don't get exported HOT 10
- Some python error stack trace when tried to use it. HOT 7
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 libgdx_blender_g3d_exporter.