Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (534)
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  
  Animations- how do you like yours?  (Read 1355 times)
0 Members and 1 Guest are viewing this topic.
Offline Breakfast

Senior Member




for great justice!


« Posted 2003-03-02 21:24:15 »

Just wondering how other people who are building stuff in j3d are animating things- are you using morphs or ordered transformgroups? Do you use behaviours to move stuff about or do everything frame by frame?

What techniques is everyone out there using and how are they working out?
Offline Conzar

Junior Member




There is nothing common about common sense


« Reply #1 - Posted 2003-03-04 18:05:47 »

Well, I am still new to Java3D (just started this summer) so this technique might not be the best but it does work.

For an animation, I use a TransformGroup for what ever object I am animating and set the Transform3D with the updated coordinates (rotation and x,y,z info).  So its frame by frame.  

Ubuntu
Offline kevglass

JGO Kernel


Medals: 120
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #2 - Posted 2003-03-11 05:26:45 »

I wrote MD2 and MD3 loaders that support animations in Java 3D. For them the seperate frames are collected together inside a switch whose state is changed each frame. I could have used morphs, but for my purposes it was a bit performance heavy.

Generally it depends on the type of animation you are attempting. If you just want to run through a series of frames it might be easy just to generate a set of shape. If you've got skeletal information it'll be easier to use transform groups.

As to when you do the updates, you should really use behaviours, since modifiing the scene graph anywhere else will cause it to redraw.

Kev

http://www.newdawnsoftware.com/

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline zero

Junior Member





« Reply #3 - Posted 2003-03-11 07:09:59 »

I used skeletal animations for the body and morph-targets for facial expressions. all done in java3d.
I had no problems with two multitextured character consisting of 8k triangles lit by 3 light sources on my notebook (PIII  M 1,1Ghz, GeForce 2 GO 32MB, Linux 2.4.19-4GB)

btw. I did not many optimations on the code, but 4 of these characters need better hardware (skin deformation done by vertex shaders would be nice speed-up)

is anyone doing fac..ial animations with textures?
yes? pleaser tell me about the performance
Offline Conzar

Junior Member




There is nothing common about common sense


« Reply #4 - Posted 2003-03-11 13:54:24 »

Quote
As to when you do the updates, you should really use behaviours, since modifiing the scene graph anywhere else will cause it to redraw


What do you mean by this?  Doesn't behaviours also couse a redraw too, or are you saying, that if I modify say 1 object's transform group in a scene, that this will cause the entire scene to redraw?  But if I use a behaviour, it will only redraw the object?  The latter doesn't really make sense to me because if the behaviour can only redraw the object, then there should be a way that a non-beaviour method can redraw just 1 object.

Could you explain this?
Thanks

Ubuntu
Offline kevglass

JGO Kernel


Medals: 120
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #5 - Posted 2003-03-15 19:22:26 »

Sure, sorry for the late reply.

If you modify the scene graph (set a transform, update some geometry) outside of behaviours it causes the scene to be redrawn.

If you do your updates inside behaviours, you're actually in the rendering thread (since behaviours get processed as the scene is drawn) and so the scene doesn't get a forced redraw.

If you update outside of behaviours you're likely to get screen drag and strange 3d artifacts.

At least this is the way I understand it.

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.

pw (35 views)
2014-07-24 01:59:36

Riven (33 views)
2014-07-23 21:16:32

Riven (21 views)
2014-07-23 21:07:15

Riven (24 views)
2014-07-23 20:56:16

ctomni231 (55 views)
2014-07-18 06:55:21

Zero Volt (47 views)
2014-07-17 23:47:54

danieldean (38 views)
2014-07-17 23:41:23

MustardPeter (43 views)
2014-07-16 23:30:00

Cero (59 views)
2014-07-16 00:42:17

Riven (56 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!