Simple ? skeleton and animation editor ... work in progress

Hi, I started my experiences with Babylon to build railway models.
I have been a maintenance manager on railway electrical systems and therefore
I used the specific knowledge to simulate traction lines, primary lines, plants
safety equipment, traction vehicles and tracking of tracks, bridges and tunnels.
I initially used an elementary system to move the stationmaster, and I realized
that it was necessary to deepen the knowledge of the structure of skeletons and animations.
I am an old technician, born at the dawn of the information technology explosion, I graduated as an expertelectrician using as a calculator a logarithmic ruler of wood with a precision of suntwo significant digits. That type of tool has been used around the world to design almost everything.
Two significant figures seem few but I think the evaluation of a 1/100 deviation is
enough to properly design 99% of human activities.
3d graphics have evolved to build quality images with millions of vertices and triangles
but the inhabitants of my railway scenarios are small … it is not necessary to see them closely,
I searched in vain for simple figure editors.
Blender is an exceptional program, oriented to complex scalar images, but in my humble way
opinion not suitable for doing … little things.
I got an important lesson from an old farmer, I bought a tedder cart
for my ride-on mower, it could be used both as a tedder and a rake.
When I asked him for his opinion, he replied that two machines were built to do one thing each
they perform better functions than a single machine doing both.
It was an important lesson, a simple consideration with huge implications …
Blender has a multitude of advanced functions and its operational structure uses compatible algorithms
with that philosophy. But I have to do simple things … as I have already mentioned to drive a nail
I need a hammer, not a crawler bucket …
I had to learn how to use Blender roughly to build a simple skeleton
simple. I disassembled the .babylon file and tried to figure out what it was up to …
Reverse procedure … we start from the end to try to understand the succession of algorithms.
In my previous posts I tried to explain the stages of my journey and the wriggling fish
is the result … the generic animation frame is a 4x4 rototranslation matrix …
To get to that goal I proceeded to start with a simple text editor, ma
proceeding I built the algorithms (tools) to proceed in a less … alien way.
Little by little a 3d editor of skeletons and animations has been outlined, oriented to the single vertices,
to the single triangles, to the relationship between 3d vertices and uvs 2d vertices of the texture …
The work is not finished and it will not end as evolution does not end … it was a nice way to
play and keep my mind and imagination trained.
I worked a lot in double-digit compaction of all floating point data to get
readable JSON files with stacked data … stupid and boring programming but useful for
“read” … what is combined …
I came to develop those 4x4 matrices to obtain the possibility of simultaneous rotation on
three axes … in a single frame … I’m working on it …
As soon as possible I will present my … little game.
Greetings to all. :alien:

1 Like

Love it!

Can’t wait to see it!

A program under construction is like a construction site … Who builds the scaffolding who mounts the scaffolding?
Fortunately, visiting a program under construction you can not get hurt … eheheee.
Errors, forgetfulness, obsolete functions, outdated data, inconsistent data, an unpredictable multitude of traps and malfunctions. Not surprisingly, the debugging effort is more demanding than writing the program itself.
I was skeptical to offer you such an environment … but in the end I was convinced by the thesis that to feed the brainstorming errors are allowed.
For the moment only the function to animate the figures in mode works
“scene.registerBeforeRender ()”. The data is saved in the browser’s local storage.
The animations are obtained mainly using the sin (angle) function but others are operational
experimental possibilities … Trap, Pulse, Rebound … implemented with 4 parameters: Size Speed ​​Phase Offset.
I built 4 stickers but only Speedy and Fish are animated, …
you can play with it and evaluate the graphics and effects …

Speedy

Warning … browsers often prefer to fetch data from previous versions in cache.
To work around you can open the link in unknown mode.

2 Likes