create 3d and include

lazyprogramer
Posts: 85
Joined: Mon Sep 27, 2010 5:26 pm

Re: create 3d and include

Post by lazyprogramer » Wed Feb 23, 2011 8:34 pm

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...?!

WinterMute
Site Admin
Posts: 1845
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: create 3d and include

Post by WinterMute » Thu Feb 24, 2011 12:14 am

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.
Help keep devkitPro toolchains free, Donate today

Personal Blog

elhobbs
Posts: 358
Joined: Thu Jul 02, 2009 1:19 pm

Re: create 3d and include

Post by elhobbs » Thu Feb 24, 2011 1:09 am

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.

ritz
Posts: 24
Joined: Thu Jun 04, 2009 3:17 pm
Location: Canada

Re: create 3d and include

Post by ritz » Thu Feb 24, 2011 2:49 pm

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.

lazyprogramer
Posts: 85
Joined: Mon Sep 27, 2010 5:26 pm

Re: create 3d and include

Post by lazyprogramer » Thu Feb 24, 2011 4:00 pm

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!

elhobbs
Posts: 358
Joined: Thu Jul 02, 2009 1:19 pm

Re: create 3d and include

Post by elhobbs » Thu Feb 24, 2011 4:55 pm

I very simple implementation would be a different model for each frame of animation.

lazyprogramer
Posts: 85
Joined: Mon Sep 27, 2010 5:26 pm

Re: create 3d and include

Post by lazyprogramer » Thu Feb 24, 2011 7:24 pm

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!

eradsoft
Posts: 30
Joined: Fri Dec 17, 2010 1:34 pm
Location: Either side of South Bypass, Madrid, Spain

Re: create 3d and include

Post by eradsoft » Sat Feb 26, 2011 11:19 pm

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
--------------------------------
Welcome, my son, to the machine.
Pink Floyd.

lazyprogramer
Posts: 85
Joined: Mon Sep 27, 2010 5:26 pm

Re: create 3d and include

Post by lazyprogramer » Sun Feb 27, 2011 11:40 am

Thanks I will try it!

WinterMute
Site Admin
Posts: 1845
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: create 3d and include

Post by WinterMute » Sun Feb 27, 2011 11:56 am

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.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest