We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionExhibition › Animating 3D models
Page Index Toggle Pages: 1
Animating 3D models (Read 3154 times)
Animating 3D models
Apr 19th, 2009, 4:22pm
 
Quake designed and created the MD2 model format  for its character animations. The format was designed to be read by C++ and uses OpenGL. At http://gui4processing.lagers.org.uk/examples.html you will find an applet that demonstrates how MD2 models can be loaded, rendered and animated using Processing with Java.
...
Hope you enjoy.
Re: Animating 3D models
Reply #1 - Apr 20th, 2009, 5:47am
 
Great job Peter!  Looks awesome.  Smiley
Re: Animating 3D models
Reply #2 - Apr 20th, 2009, 6:59am
 
That had some serious deformation bugs when running it here. Very fun to look at, but not at all what was expected.

http://seltar.org/sketch.php?pid=6 - a sketch i made long ago, trying to simulate some sort of learning AI .. there is one model who knows a lot of sentences, and the other models learn it when they hear it.. so they exchange sentences each time they bump into eachother... it also uses the MD2 loader, and some animations. Navigate with mouseclick + drag, and W,A,S,D
Re: Animating 3D models
Reply #3 - Apr 20th, 2009, 12:05pm
 
seltar wrote on Apr 20th, 2009, 6:59am:
That had some serious deformation bugs when running it here. Very fun to look at, but not at all what was expected.


Surprised that you experienced some serious deformation bugs as I have viewed in both Firefox and IE on different machines without problem - can you be more specific.

I had a look at your 3D animation - nice one . I see you have been using Processing since 2005 and have been doing some good stuff.
I came upon Processing last December and became hooked, I searched the discourse and found nothing on MD2 so I thought it would be nice to create a MD2 model loader and demonstrator in Java as I had already used MD2 models with C++. Not sure what you expected but I am glad you think it was fun.

If anyone else experiences problems viewing the model I would appreciate it if you would post a message here - perhaps with a screen shot. Thanks
Re: Animating 3D models
Reply #4 - Apr 27th, 2009, 7:49am
 
cool
Re: Animating 3D models
Reply #5 - May 11th, 2009, 11:54am
 
Seltar experienced some "serious deformation bugs" when viewing this model.

I had serious problems trying to reproduce the problem until I got access to a nice quad core PC and realised that the distortion occurred at frame rates > 61fps.

Cutting a long story short I found the problem in my code and corrected it. Grin

So if you experienced the same problems and were disappointed then have another look at the corrected version here.

http://gui4processing.lagers.org.uk/examples.html

Page Index Toggle Pages: 1