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

26. May 2012, 11:48:39 pm
Xith3D CommunityGeneral CategoryFeature Requests & Brilliant Ideas (Moderators: Marvin Fröhlich, 'n ddrylliog)Cloth
Pages: [1]
Print
Author Topic: Cloth  (Read 2689 times)
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« on: 04. August 2007, 02:17:12 am »

I have just committed a ClothSimulation class to org.xith3d.test.etc.

Did I do the commit right?  This is my first.
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 04. August 2007, 12:50:03 pm »

I have just committed a ClothSimulation class to org.xith3d.test.etc.

Thanks a lot, man.

Did I do the commit right?  This is my first.

Principally yes. But please try to "imitate" the style and structure of the other test cases. And please always implement Xith3DTest to make it usable through the Xith3DTestLauncher. And please make use of the ResourceLocator.

I've done that for you. Please have a look at it.

Marvin
Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #2 on: 04. August 2007, 04:02:20 pm »

Oh, dammit, Marvin we did the same work at the same time.

You went further than me with the cleanup. I've deleted my work.. Too bad !


The test is very cool, by the way, but I'd like to change a few things (e.g. camera control and node control, and also, add a HUD with controls explained)
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #3 on: 04. August 2007, 04:28:20 pm »

Oh, dammit, Marvin we did the same work at the same time.

You went further than me with the cleanup. I've deleted my work.. Too bad !

Grin

The test is very cool, by the way, but I'd like to change a few things (e.g. camera control and node control, and also, add a HUD with controls explained)

there is already a FirstPersonInputHandler integrated. Though you'll have to enable FPS-limitation to make it work smoothly. SPACE executes a cloth reset. C switches wireframe mode (there was no smarter key remaining Wink).

I was planning to add other shapes than the sphere like a cube and bind a key to replace it. But unfortunately the sphere is not easily replaced, since it is deeply integrated into the test's math. Which makes the test case be not much more than eyecandy (pretty cool eyecandy Smiley).

If you want a HUD with some Widgets responsible for mouse input, I would suggest to follow my example in one or two other tests, where I bound the left CTRL key as a toggle to suspend the FPSHandler and grant control to the HUD.

Marvin
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #4 on: 04. August 2007, 05:59:24 pm »

Does anybody currently work on the cloth test? I would like to move it to a new package (org.xith3d.test.demos) or maybe (org.xith3d.demos), where all these eye-candy demos should go to, that don't demonstrate a specific feature, but only serve as stunning eye-catching demos (like most of YCD's work.

Marvin
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #5 on: 04. August 2007, 06:45:38 pm »

Does anybody currently work on the cloth test? I would like to move it to a new package (org.xith3d.test.demos) or maybe (org.xith3d.demos), where all these eye-candy demos should go to, that don't demonstrate a specific feature, but only serve as stunning eye-catching demos (like most of YCD's work.

Nobody? OK. Moved.
Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #6 on: 06. August 2007, 10:41:30 am »

JCD, not YCD.

Marvin, I agree that in its current state the demo is just an eye-candy demo, but it should be modified to allow more general cloth simulation in Xith3D, don't you think ? With more shapes than just a Sphere..
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #7 on: 06. August 2007, 10:54:38 am »

Marvin, I agree that in its current state the demo is just an eye-candy demo, but it should be modified to allow more general cloth simulation in Xith3D, don't you think ? With more shapes than just a Sphere..

Well, I do agree by 100%. And as I said above, I was already planning to do so. But have a look at the test. It is built to work with one sphere. It is by 100% not general. And it is not efficient at all. Just increase the grid size a little bit and you will see, that FPS will fall the the ground. So it is anyway not usable in this form in a game.

Marvin
Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #8 on: 14. August 2007, 12:22:06 am »

Well, I do agree by 100%. And as I said above, I was already planning to do so. But have a look at the test. It is built to work with one sphere. It is by 100% not general. And it is not efficient at all. Just increase the grid size a little bit and you will see, that FPS will fall the the ground. So it is anyway not usable in this form in a game.
Yep, yep, of course Marvin I know you can't be everywhere. So do I Smiley (actually it's very hard to develop when far from one's very own PC, when supposed to be visiting Romania..).

Maybe this is a job for JOOOOOOOODE ?
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #9 on: 14. August 2007, 10:35:09 am »

Maybe this is a job for JOOOOOOOODE ?

Well, you know that answer better than me. So: is it? Would be great, if JOODE had efficient ways to do cloth.

Marvin

[Edit by Amos Wenger on 14/08/2007, 12:45. Reason : wrong quote]
« Last Edit: 14. August 2007, 10:45:57 am by Amos Wenger » Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #10 on: 14. August 2007, 10:46:42 am »

Maybe this is a job for JOOOOOOOODE ?
Well, you know that answer better than me. So: is it? Would be great, if JOODE had efficient ways to do cloth.
Well, I think so, yeah. But that's up to the hardcore JOOODE guys to figure out if it's worth the hassle (e.g. if they need it in their projects).
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #11 on: 14. August 2007, 10:54:36 am »

Well, I think so, yeah. But that's up to the hardcore JOOODE guys to figure out if it's worth the hassle (e.g. if they need it in their projects).

Sure.

Marvin

(Thanks for the edit)
Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #12 on: 14. August 2007, 01:52:31 pm »

(Thanks for the edit)
You're welcome.


Tom ? Arne ? where are you ?
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic