Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Cloth Expansion

Author
Message
coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 16th Mar 2006 05:08
Can someone post some demonstration programs for the cloth expansion dll? It looks pretty good, but I want to see it in action first.

BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 16th Mar 2006 16:44
The SmartParticles Link in my sig contains a demo of Particles in action. I haven't used the cloth part of the pack.

coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 16th Mar 2006 22:12
I'd really would like to see the cloth part too. Does anybody have an example?

coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 22nd Mar 2006 00:18
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 22nd Mar 2006 12:09 Edited at: 22nd Mar 2006 12:14
Hehe...

[Shameless add]
I use Cloth physics from the cloth and particle plugin in my game SpaceBattle Shootout. It's used in the intro movie. You can download it Here
[/Shameless add]

But that's just very basic use of it. The cloth effects are great! And they work very well. You have very many functions with the cloth You can even add a camera view in them! Great to use as a theater screen etc... You can also add wind to them... So you could use them to flags etc... Or you could add it to a player as a jacket! You know... Like a piece of cloth you have stucked to your back Like the red one Superman got

-The Nerd

coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 24th Mar 2006 19:23
Yeah. The cloth on the intro looks pretty good. Would it be possible to
compile the demonstration programs that come with the cloth expansion and attach the .exes here?

Thanks.

The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 24th Mar 2006 19:25
Quote: "Would it be possible to
compile the demonstration programs that come with the cloth expansion and attach the .exes here?"


It would, yes. But I've always been very sensitive when it comes to the legal stuff. I can set questions with everything about it So I don't know if it's legal to compile and upload them.

-The Nerd

coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 24th Mar 2006 20:07
Could you make a demonstration program that shows the key features of the cloth expansion and upload it. I would really appreciate it.

Thanks,
Coolgames

Olby
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 25th Mar 2006 19:37
Me too,

"Gangsters die, they don't go to heaven where angels fly!"
AMD Sempron 3.1+ Ghz, 512MB Ram, ATI R9550 256MB Ram, Sound Blaster Live!, WinXP SP2, DirectX 9.0c
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 25th Mar 2006 22:36 Edited at: 25th Mar 2006 22:39
Right now I don't really feel like I got the time Sorry. My projects are stealing alot of time.

-The Nerd

coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 28th Mar 2006 01:57
I have a question about the cloth. Can you have collision with it? Can you specify collision zones or somthing like that?

The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 28th Mar 2006 15:04 Edited at: 28th Mar 2006 15:05
Quote: "Can you have collision with it?"


Well... In one of the following examples you can drop a cloth from a cube hanging in the air. When it drops, it fall down on some kind of floor...(Instead of falling through the floor) So I guess that's possible.

-The Nerd

coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 28th Mar 2006 22:56
Does the cloth work with u6?

The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 31st Mar 2006 15:11
Quote: "Does the cloth work with u6?
"


I'm not using U6 right now. But if it didn't work, I would suppose the bug report board would have a mention of this by now. So I think it works with it.

-The Nerd

3D Arcade-like game:
SpaceBattle-Shootout
Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 5th Apr 2006 18:30 Edited at: 5th Apr 2006 18:32
Quote: "It would, yes. But I've always been very sensitive when it comes to the legal stuff. I can set questions with everything about it So I don't know if it's legal to compile and upload them."


I'm no lawyer, but I can't see why that should be illegal, not unless it says in the example sources that the code is copyrighted(although I doubt it). Otherwise, it's just some code that shows off the expansion.

[EDIT] Oh, and maybe you'd want to check out that PhysX thing coming to DbPro, it sounds awesome. It includes particles, and cloth too I think. Check it out here.

Olby
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 5th Apr 2006 23:39
No I dont need this anymore, I already bought Cloth & Particle Phys pack and it's great, I'm making a arcade racing game and it suits my project 100%. PhysX is too heavy and I also dont have teh money to buy it!

If I ever will be making a action packed FPS like HL2 maybe then I will think about PhysX, but now Newton & Cloth&Partciles pack are wokring very well!

"Gangsters die, they don't go to heaven where angels fly!"
AMD Sempron 3.1+ Ghz, 512MB Ram, ATI R9550 256MB Ram, Sound Blaster Live!, WinXP SP2, DirectX 9.0c
coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 18th Apr 2006 00:17
The Nerd, can you look in the collision demonstration and see if the code shows where the collision is taking place?

Zone Chicken
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: `~-..-~`~-..-~`
Posted: 18th Apr 2006 00:58
Um, i just tried every demo from the cloth particle expansion pack.
Everyone of the cloth demos do not work now in RC9 the particles do though. It appears that the point objects are not holding the cloth objects in position.

Your signature has been erased by a mod -- please resize to under 600x120...
coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 18th Apr 2006 16:32
Zone Chicken, I saw your topic about the cloth problem. Is it updated yet? Also, is it possible to move the cloth points and have the cloth trail behind? Such as if you had a superman with a cape flying
through the air.

The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 18th Apr 2006 18:11
@Zone Chicken:

You need to update the expansion.

Quote: "Zone Chicken, I saw your topic about the cloth problem. Is it updated yet?"


Indeed it is. A new updated version of it is ready when you have downloaded RC10. Check out This Thread to find downloads to the new version and RC10.

Quote: "lso, is it possible to move the cloth points and have the cloth trail behind? Such as if you had a superman with a cape flying
through the air."


Yes, that is possible.

-The Nerd

3D Arcade-like game:
SpaceBattle-Shootout
coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 18th Apr 2006 18:37
Is the cloth going to be supported after physx comes out?

Olby
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 19th Apr 2006 22:48 Edited at: 19th Apr 2006 22:48
Lee posted an updated version of 3d cloth & particles dll for RC11 today somewhere in the Bug Board. I bought cloth pack three weeks ago and I dont care even if it will be available for free or not supported further more after PhysX release, because I need particles and cloth right now and they are working well so I dont see any prob here.

And yes, The Nerd, I finally got some money from my parents for this pack and bought it, so Im happy coding my racing game now!

"Gangsters die, they don't go to heaven where angels fly!"
AMD Sempron 3.1+ Ghz, 512MB Ram, ATI R9550 256MB Ram, Sound Blaster Live!, WinXP SP2, DirectX 9.0c
coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 25th Apr 2006 18:39
I have another question. When you create a cloth, does the dll make a dark basic object that can be manipulated with "position object" or "scale object". Or does it have everything internal, including the rendering of the coth.

Olby
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 26th Apr 2006 19:08
Yes you can use any of standart object commands including shaders on cloth generated objects.

"Gangsters die, they don't go to heaven where angels fly!"
AMD Sempron 3.1+ Ghz, 512MB Ram, ATI R9550 256MB Ram, Sound Blaster Live!, WinXP SP2, DirectX 9.0c
coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 26th Apr 2006 20:40
What about the particles. Is each particle a db object. Or are they rendered within the dll?

Olby
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 26th Apr 2006 22:41
Same goes for particles you can control particle emitter with standart object commands, although each particle IS NOT SEPERATE OBJECT they are threated as one, but there are lots of commands like controlling wether the each particle hitted an object, bounced, dissapeared and more. YES There are some PER PARTICLE COMMANDS! If you find this limitating you can always use your own particles system. Or stick with something already coded, like I know Baggers did posted some great particles functions in the snippets board. I dont know, but I like the particle & cloth pack, It really fits my racing game project.

"Gangsters die, they don't go to heaven where angels fly!"
AMD Sempron 3.1+ Ghz, 512MB Ram, ATI R9550 256MB Ram, Sound Blaster Live!, WinXP SP2, DirectX 9.0c
coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 26th Apr 2006 23:46
The particles are sort've like limbs of the emmiter object. Am I right?

Also, can you reposition your colliding boxes? Such as if you wanted your player to be able to walk around and collide with the cloth.

Olby
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 27th Apr 2006 12:58
Course you can, as I said before you can conrol each particle & cloth packs generated object with standart dbps commands! And what use there would be if you couldnt move your colliders, im making a racing game and my car contains lots of small boxes for particle collision and when a spark (for example) hit its body it reacts correctly and bounces off. Very simple. Dot.

"Gangsters die, they don't go to heaven where angels fly!"
AMD Sempron 3.1+ Ghz, 512MB Ram, ATI R9550 256MB Ram, Sound Blaster Live!, WinXP SP2, DirectX 9.0c
coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 27th Apr 2006 23:52
Can you stretch cloth infinitely?

Olby
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 28th Apr 2006 16:00
Teoretically yes, but you should be aware that cloth is nothing more then just a plain object with 10x10 polys (for example), you could use up to ~40x40 after that the cloth is waaay to big to render smoothly and your fps starts to go down quickly. So you wont be able to strech your cloth across a large level if you wont increase poly count of it. But you can make a quite large room with cloth stretched across and it will act normally. There are some limitations, but that is not the cloth problem but more dbps or directd3 itself.

"Gangsters die, they don't go to heaven where angels fly!"
AMD Sempron 3.1+ Ghz, 512MB Ram, ATI R9550 256MB Ram, Sound Blaster Live!, WinXP SP2, DirectX 9.0c
coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 4th May 2006 16:58 Edited at: 5th May 2006 22:29
I've finally saved up the money to buy the cloth expansion. I tried the generate cloth from bitmap, but I got a physics error. I first used "load bitmap" command to load my image. Then I put the id of the bitmap into the generate cloth from bitmap. I got an error. Does anybody know what I'm doing wrong?

Edit: I have another question. In the manual, it says at the bottom of the generate cloth from bitmap page:
Quote: "
Note that there is nothing preventing you from generating a cloth that is made up of entirely seperate parts for simulating blowing leaves etc.
"


Does that mean I can somhow seperate my cloth into different pieces that will act as if they are seperate pieces of cloth?

coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 6th May 2006 03:33
I've got another problem. When I try to reposition my colider box, it only works before the first time I call the update phyiscs command! Is there somthing else I have to do?

Olby
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 6th May 2006 15:36
I never got into any of these problems before! Did you donwloaded the latest update for the cloth pack?

"Gangsters die, they don't go to heaven where angels fly!"
AMD Sempron 3.1+ Ghz, 512MB Ram, ATI R9550 256MB Ram, Sound Blaster Live!, WinXP SP2, DirectX 9.0c
coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 6th May 2006 15:59 Edited at: 6th May 2006 18:13
Yes.

Could you send some example code that shows position colliders and cloth
in action that works on your computer for me to try?

Olby
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 7th May 2006 00:33


Use WASD keys to position collider sphere, ARROWKEYS to move the camera. See teh code for other keys...

Have fun coding!

"Gangsters die, they don't go to heaven where angels fly!"
AMD Sempron 3.1+ Ghz, 512MB Ram, ATI R9550 256MB Ram, Sound Blaster Live!, WinXP SP2, DirectX 9.0c
coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 7th May 2006 02:28 Edited at: 7th May 2006 02:31
The code doesn't work! I move the sphere out of the cloth and the cloth still thinks the sphere hasn't moved! I'm using u6 final with the version of the cloth and particles pack that you download on the u6 upgrade page. Is that was you are running?

Edit:
I just found the post where Lee gives the rc11 version of the expansion. I installed it and now it works! I guess they need to update the u6 upgrade page to the correct dlls.

Olby
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 7th May 2006 23:46
See I told you that it was an update issue!

"Gangsters die, they don't go to heaven where angels fly!"
AMD Sempron 3.1+ Ghz, 512MB Ram, ATI R9550 256MB Ram, Sound Blaster Live!, WinXP SP2, DirectX 9.0c
coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 13th May 2006 20:41
Is it possible with the particles to be able to use them with multiple cameras so they point towards the camera? Or be able to set certain particles to point to different cameras?

Olby
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 13th May 2006 21:55
Dunno try yourself I never used more than one camera while particles are onscree, although I thnik if they dont automatically point towards camera you can do it with POINT OBJECT (and specify required cameras XYZ position)command manually.

"Gangsters die, they don't go to heaven where angels fly!"
AMD Sempron 3.1+ Ghz, 512MB Ram, ATI R9550 256MB Ram, Sound Blaster Live!, WinXP SP2, DirectX 9.0c
coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 13th May 2006 22:20
Do I point the emitter or each seperate particle. How can I access each particles object id. It doesn't say in the help file how to get each particles id.

Olby
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 14th May 2006 21:39
You cant get each particles ID its in one peace!

"Gangsters die, they don't go to heaven where angels fly!"
AMD Sempron 3.1+ Ghz, 512MB Ram, ATI R9550 256MB Ram, Sound Blaster Live!, WinXP SP2, DirectX 9.0c

Login to post a reply

Server time is: 2024-11-22 06:30:41
Your offset time is: 2024-11-22 06:30:41