Page 3 of 7

Re: create 3d and include

Posted: Wed Feb 23, 2011 8:34 pm
by lazyprogramer
That's about level 15.

:shock:
Try:

1. Keyframe animation (easy and fast but a memory hog)
keyframes are pictures, right? I can't really us them for 3d...?!

Re: create 3d and include

Posted: Thu Feb 24, 2011 12:14 am
by WinterMute
keyframes are an integral part of any animation system, they're not restricted to pictures.

A keyframe is an important point in an animation sequence which defines the properties of objects at a particular time. As an example you could define a start keyframe as having a red 10 pixel square in the top left corner of the screen and an end keyframe as showing the same square in the bottom right, 10 seconds later. Your animation code would interpolate these positions over 10 seconds, producing a smooth animation of 600 frames, assuming you want 60 frames per second.

Obviously this can be extended to produce much more complex animations by defining scale factors, rotations and translations for many 3D objects.

Re: create 3d and include

Posted: Thu Feb 24, 2011 1:09 am
by elhobbs
well actually...

to provide a little more detail. I think by keyframe he was referring to fully describing the geometry of the model for each frame in the pose/orientation for that frame. rather then describing the model as small pieces relative to each other. it is just one object that is pre formed into the right pose/orientation.

Re: create 3d and include

Posted: Thu Feb 24, 2011 2:49 pm
by ritz
elhobbs wrote:well actually...
lol
relminator wrote:Skining(Bone-animation) with quaternion slerping ( de facto standard )
I used normalized lerp (nlerp) when I did my 3D stuff. Was faster and it seemed a better fit on a small system like the DS.

Re: create 3d and include

Posted: Thu Feb 24, 2011 4:00 pm
by lazyprogramer
Okay, so I have a long way to this...

Are keyfames also good for a walk move as example? With Blender I know how to create keyframes, but I didn't know how to save them in a different useabel format,
not movie files or pictures!

Re: create 3d and include

Posted: Thu Feb 24, 2011 4:55 pm
by elhobbs
I very simple implementation would be a different model for each frame of animation.

Re: create 3d and include

Posted: Thu Feb 24, 2011 7:24 pm
by lazyprogramer
I very simple implementation would be a different model for each frame of animation.
Yeah, I also thought about that, but the size and the hardware ussage will grow very fast!

Re: create 3d and include

Posted: Sat Feb 26, 2011 11:19 pm
by eradsoft
Antonio NiƱo has a rendering engine including
a mesh by frame animation scheme, it can be interesting
for this purposes taking a look at the source
http://antoniond.drunkencoders.com/nitroengine.html

Re: create 3d and include

Posted: Sun Feb 27, 2011 11:40 am
by lazyprogramer
Thanks I will try it!

Re: create 3d and include

Posted: Sun Feb 27, 2011 11:56 am
by WinterMute
It's probably best if you don't.

That code was last updated in 2009 and probably won't compile with current tools.

It was also intended to provide an interface to the 3D hardware that was more directx like than opengl like.