Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Best approach to do OpenGL 3D Animation  (Read 921 times)
0 Members and 1 Guest are viewing this topic.
Offline MonsieurBlutbad

Senior Newbie





« Posted 2013-07-09 15:50:26 »

Hey all,

I am new to OpenGL. So far, I went through some basic stuff and I can create simple geometries and textures now. Next up, I want to create some simple animations (e.g. walk-cycle). I did some hours of google search and what I found so far is, that you can do either a keyframe or a skeleton animation. Since keyframe animation seems to be easier and totally sufficient for my needs, I tend to go with that. What I know so far is, that you store vertices, normals and texture-coordinates of at least 2 different states and interpolate between them.
Now here are my questions:
1. Is it better to hardcode each keyframe or to use some 3D modelling software (e.g.Blender) exports? What is the RIGHT way to do it? I know it probably depends on what you want to do, but if you were to make a character walk cycle animation, which approach would you choose?
2. In both cases, can anyone supply me with some resources on how to do it exactly?

Thank you very much in advance
Offline sproingie

JGO Kernel


Medals: 202



« Reply #1 - Posted 2013-07-09 18:55:28 »

If it's 2D, take a look at Spine.  Otherwise, I would go with bone animation in whatever 3D modeler you're comfortable with.
Offline MonsieurBlutbad

Senior Newbie





« Reply #2 - Posted 2013-07-09 21:01:17 »

Its 3D, but I read that bone or skeleton animation is only recommended for fancy animations, with real physics and so on. A standard walk cycle should be faster and easier with keyframe animation (thats what i read)
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline sproingie

JGO Kernel


Medals: 202



« Reply #3 - Posted 2013-07-09 21:32:00 »

I think you'll find that the animations for walking are fancier than you might think, in the sense that you'll probably to constantly tweak them just to get them right.  You don't necessarily need kinematics at runtime, but so you're probably going to want bones in your model just to pose it for each keyframe.  Beats having to model every pose by hand.
Offline MonsieurBlutbad

Senior Newbie





« Reply #4 - Posted 2013-07-09 22:39:13 »

Ok, I see. You got any tip for me on where to start? I can do some basic modeling, but have no idea on the data type I have to export from my 3d software. And also I don't know how to import it with Java and OpenGL Sad
Offline sproingie

JGO Kernel


Medals: 202



« Reply #5 - Posted 2013-07-09 22:56:09 »

Consensus seems to be that COLLADA is a good format when you need flexibility, but not something you ultimately want your game assets to be using.  That about taps out my modeling knowledge, and I'm not sure what formats are good for export, especially when they contain animations.  Dealing with models is something an engine like jMonkeyEngine or Ardor3D would take care of, so you'd have to see what model formats they support.
Offline MonsieurBlutbad

Senior Newbie





« Reply #6 - Posted 2013-07-10 09:35:04 »

ok, thank you! I'll check out the engines and start from there
Offline Redocdam

Senior Member


Medals: 17



« Reply #7 - Posted 2013-07-10 17:01:20 »

I'm guessing you're using Blender. In which case, you can export to *.X3D, which is an XML file.
The layout is pretty easy to understand and can be observed using a plain text program like Notepad.

There's always the option to write a small program to read the X3D file. I use this method to import models and stuff them into my own file, so there's no processing during loading, just simple file I/O.
However, I'm sure the engines have a really nice solution for importing models. So it's really a matter of will you be using a preexisting engine, or making your own.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

TehJavaDev (14 views)
2014-08-28 18:26:30

CopyableCougar4 (25 views)
2014-08-22 19:31:30

atombrot (38 views)
2014-08-19 09:29:53

Tekkerue (33 views)
2014-08-16 06:45:27

Tekkerue (32 views)
2014-08-16 06:22:17

Tekkerue (19 views)
2014-08-16 06:20:21

Tekkerue (29 views)
2014-08-16 06:12:11

Rayexar (66 views)
2014-08-11 02:49:23

BurntPizza (42 views)
2014-08-09 21:09:32

BurntPizza (34 views)
2014-08-08 02:01:56
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!