Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

27. May 2012, 02:02:08 am
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Joints, Pivots?
Pages: [1] 2
Print
Author Topic: Joints, Pivots?  (Read 4226 times)
z3r0
Just dropped in

Offline Offline

Posts: 6



View Profile Email
« on: 29. November 2006, 02:08:17 am »

Hi

Im trying to build a very simple system. Say I have 3 rectangles and 2 cylinders acting as pivots, all of them sitting on a base.

I want them to act like an arm
If I rotate the base the whole shape should rotate
Rentangle 2 should rotate on axis 1 "A1"
and Retangle 3 should rotate on axis 2 "A2"

I've been reading old xith forums for 2 weeks now, and i cannot find any
material that could help me. What i've found are this JOODE & ODEjava related
topics, and seems that this libraries have the answer that i want. But there again
i've been googling for some time now looking for examples or tutorials on how
to use this libraries without luck. So I came here to ask for help.

Any would be really aprecciated thanks.
Logged

Once i looked up to the sky , and saw this 3 lines, each line had a different color. One, it was blue, The next One it was more darkish, but still blue, and the Third one, almost seemed like a purple tone.. Then I said... Damn... GOD needs a better Graphics Card (this is 100% true n_n).
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #1 on: 29. November 2006, 05:46:20 pm »

I'm working on a small surprise for you, z3r0..
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #2 on: 29. November 2006, 06:17:20 pm »

I'm afraid it'll be for tomorrow (I spent some time implemeting Debug Center, too).
Logged
z3r0
Just dropped in

Offline Offline

Posts: 6



View Profile Email
« Reply #3 on: 29. November 2006, 08:49:30 pm »

Hi

Thanks for you response, that's perfect, im not in a hurry n_n!
Logged

Once i looked up to the sky , and saw this 3 lines, each line had a different color. One, it was blue, The next One it was more darkish, but still blue, and the Third one, almost seemed like a purple tone.. Then I said... Damn... GOD needs a better Graphics Card (this is 100% true n_n).
clemix [FDL]
Just dropped in

Offline Offline

Posts: 10



View Profile WWW Email
« Reply #4 on: 30. November 2006, 09:10:30 am »

General a good Book is "Killer Game Programming in Java"(O'Reilly what else) http://fivedots.coe.psu.ac.th/~ad/jg/ but its mostly based on Java3D.

Using ODEJave Chapter 20.5 is a greate answer http://fivedots.coe.psu.ac.th/~ad/jg/ch205/index.html

hf
clemix
Logged

was sollen wir proggen sieben tage lang was sollen wir proggen so ein drang
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #5 on: 30. November 2006, 05:45:48 pm »

General a good Book is "Killer Game Programming in Java"(O'Reilly what else) http://fivedots.coe.psu.ac.th/~ad/jg/ but its mostly based on Java3D.

Using ODEJave Chapter 20.5 is a greate answer http://fivedots.coe.psu.ac.th/~ad/jg/ch205/index.html

hf
clemix
Well, ODE would sure do the job, but it's a bit heavyweight if you just want to do an articulated arm.. (no physic simulation).
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #6 on: 30. November 2006, 06:55:28 pm »

Work In Progress. I'm still polishing the API, adding convenience methods, debugging. I think on Friday it will be ready. (Though if you can't wait, take a look at org.xith3d.w3g.Physics)
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #7 on: 01. December 2006, 06:11:55 pm »

Finished !

HingeJoint class now works perfectly. For an example of use, see org.xith3d.w3g.Physics

DebugCenter is now my work in progress.

Also, Xith3DTestStarter has been renamed to Xith3DTestLauncher (sounds better  Grin)
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #8 on: 01. December 2006, 07:51:52 pm »

Also, Xith3DTestStarter has been renamed to Xith3DTestLauncher (sounds better  Grin)

This is ok. But I have rechanged the folder structure in media.jar. If these resources are available directly as a root-resource, there could be conflicts. It is never a good idea to put something into the root. In java putting classes into the "default-package", which is the root folder, is even discouraged. And what if the resource structure grows? The you're learely forced to have ha folder structure. So anyway it it a good idea to hold reasources in a structure.

I've readded the xith logo to the media jar and used it in DisplayOptions again. But the method creating the logo for the gui is overridden in Xith3DTestLauncher, which uses the test launcher logo. But it looks a but strange together with this gui. I guess the format is better suited for DebugCenter, but on the test launcher it is not very good. The xith logo looks much better. I guess it would be cooler to use the original logo and place the test launcher text on it. Would look much better. But for the moment it is ok. What do you think.

Marvin
« Last Edit: 01. December 2006, 08:01:33 pm by Marvin Fröhlich » Logged
z3r0
Just dropped in

Offline Offline

Posts: 6



View Profile Email
« Reply #9 on: 01. December 2006, 08:52:32 pm »

Finished !

HingeJoint class now works perfectly. For an example of use, see org.xith3d.w3g.Physics

DebugCenter is now my work in progress.

Also, Xith3DTestStarter has been renamed to Xith3DTestLauncher (sounds better  Grin)

Thanks very very much. At this right moment i'm browsing CVS for this, I will study all of this material and when I get a workin' project I'll let you know THANKS A LOT
Logged

Once i looked up to the sky , and saw this 3 lines, each line had a different color. One, it was blue, The next One it was more darkish, but still blue, and the Third one, almost seemed like a purple tone.. Then I said... Damn... GOD needs a better Graphics Card (this is 100% true n_n).
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #10 on: 01. December 2006, 09:36:34 pm »

Thanks very very much. At this right moment i'm browsing CVS for this, I will study all of this material and when I get a workin' project I'll let you know THANKS A LOT

I hope, you're talking about SVN not CVS Wink.
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #11 on: 02. December 2006, 02:09:29 pm »

Thanks very very much. At this right moment i'm browsing CVS for this, I will study all of this material and when I get a workin' project I'll let you know THANKS A LOT

I hope, you're talking about SVN not CVS Wink.
Actually, he was talking about CVS.. I sent him a PM. and changed some things both on dev.jav.net and xith.org (wrong links, or missing notices).
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #12 on: 02. December 2006, 02:16:46 pm »

Actually, he was talking about CVS.. I sent him a PM. and changed some things both on dev.jav.net and xith.org (wrong links, or missing notices).

Thanks.
Logged
z3r0
Just dropped in

Offline Offline

Posts: 6



View Profile Email
« Reply #13 on: 12. December 2006, 12:02:11 am »

Hey what's up guys.

Well i couldn't compile the w3g files.. So I tried the ODEJava option...
And guess what?? It works XD.

Well I'm pretty sure there are better ways to do this.. but I'm not that skilled..
maybe time will give me all the knowledge I need to create something
better.

So, here is the code to the project if anyone want to have a look.

By the  way, anyone can point me to a Shadows tut or doc?? well maybe that goes on another part of the forum. hehehe

Xith3D 0.8 + Odejava 0.2.4
Logged

Once i looked up to the sky , and saw this 3 lines, each line had a different color. One, it was blue, The next One it was more darkish, but still blue, and the Third one, almost seemed like a purple tone.. Then I said... Damn... GOD needs a better Graphics Card (this is 100% true n_n).
z3r0
Just dropped in

Offline Offline

Posts: 6



View Profile Email
« Reply #14 on: 12. December 2006, 01:02:11 am »

Oh yeah almost forgot.. PLEASE do not pay attention to

Classes / Variables / Comments names

I kinda go crazy with those when I'm frustated hehehe,
If anyone that reads it knows spanish.. u will find those
names rater Spooky XD.. And the CreateS*** method.. uuuh man
I was really frustated that day.
Logged

Once i looked up to the sky , and saw this 3 lines, each line had a different color. One, it was blue, The next One it was more darkish, but still blue, and the Third one, almost seemed like a purple tone.. Then I said... Damn... GOD needs a better Graphics Card (this is 100% true n_n).
Pages: [1] 2
Print
Jump to:  

Theme orange-lt created by panic