PhysX Preview of Cloth, Fluid and Soft Body

Posted By: rojart

PhysX Preview of Cloth, Fluid and Soft Body - 03/12/12 09:30

I rewrote a PhysX plugin from Chris3D sources with new features, and decided to make a movies for now, maybe somebody will find it useful. smile
Maybe this weekend I'll share it, but only of the Clothing plugin for now.

Cloth:



Fluid:



Soft Body:



Click on the picture to see the movie. (Best view on Google Chrome)
Posted By: Random

Re: PhysX Preview of Cloth, Fluid and Soft Body - 03/12/12 09:58

Finally!
I am already very, very existed how you done that ^^
Posted By: Rei_Ayanami

Re: PhysX Preview of Cloth, Fluid and Soft Body - 03/12/12 11:06

Really nice!

Have you thought about adding it to the SourceForge version of PhysX here in the forum?
Posted By: rojart

Re: PhysX Preview of Cloth, Fluid and Soft Body - 03/13/12 20:04

Originally Posted By: Random
Finally!
I am already very, very existed how you done that ^^

Patience and a willingness to spend a lot of time finding out how the PhysX works.

Originally Posted By: Rei_Ayanami
Really nice!

Have you thought about adding it to the SourceForge version of PhysX here in the forum?

Thanks, because I'll gladly create a simple tutorial about cloth, fluid and soft body on my domain.
Therefore I decided to develop two plugs, one for my domain and one on SourceForge.
Posted By: gri

Re: PhysX Preview of Cloth, Fluid and Soft Body - 03/14/12 07:49


hey realy nice.

Great job you've done.
Posted By: gri

Re: PhysX Preview of Cloth, Fluid and Soft Body - 03/22/12 13:40

Originally Posted By: rojart

Patience and a willingness to spend a lot of time finding out how the PhysX works.


We try to be patient laugh but your fans wanted to know when we could touch it

regards,
gri
Posted By: ratchet

Re: PhysX Preview of Cloth, Fluid and Soft Body - 03/22/12 13:52

Amazing laugh
The cloth plugin i would see lot of applications for it , like some clothes parts on characters or floating flags on a level !

How do you have done to have A8 running in Chrome ?
I didn't know it was possible ?
Posted By: darkinferno

Re: PhysX Preview of Cloth, Fluid and Soft Body - 03/22/12 14:38

where do you see A8 running on chrome ? Its a video ?

Or am I the one missing something ?

btw, I assume this is wont work with A7, correct ?
Posted By: Rei_Ayanami

Re: PhysX Preview of Cloth, Fluid and Soft Body - 03/22/12 19:38

@Ratchet, that is simply a web video, nothing more. (Chrome has the best web-play)
Posted By: gri

official ? - 03/28/12 11:38

hi rojart,

as I checked the forecast page of GS I saw the new entry of Cloth simulation. Liquids. Soft bodies. with physX.

Did JCL took your work over to Gamestudio ?


regards,
gri
Posted By: ratchet

Re: official ? - 03/28/12 14:59

I think it's just some user help to improve 3DGS !

Personnaly i would prefer to see some other features completed instead of new ones (like some good and complete particle effects editor) !
Posted By: rojart

Re: official ? - 03/30/12 22:32

Thanks for the nice words.

I'm really busy now, two beta files needed to be tested, so if anyone have the time please download and test.

The beta ackphysX.dll is restricted to ~5 minutes.


Posted By: rojart

PhysX Cloth Beta Samples - 03/31/12 10:21

Some Answers:

Originally Posted By: gri
Originally Posted By: rojart
Patience and a willingness to spend a lot of time finding out how the PhysX works.

We try to be patient laugh but your fans wanted to know when we could touch it
regards,
gri

Hehe, nobody is perfect, but try now the beta files. grin

Originally Posted By: ratchet
Amazing laugh
The cloth plugin i would see lot of applications for it , like some clothes parts on characters or floating flags on a level !
How do you have done to have A8 running in Chrome ?
I didn't know it was possible ?

Thanks, yes at first glance looks like a program, but I just converted to webm files for better viewing.

Originally Posted By: darkinferno
...btw, I assume this is wont work with A7, correct ?

I removed the version check for A7 therefore should work, but no time to check it.

Originally Posted By: gri
hi rojart,
as I checked the forecast page of GS I saw the new entry of Cloth simulation. Liquids. Soft bodies. with physX.
Did JCL took your work over to Gamestudio ?
regards,
gri

I asked him if he is interested and I got positive response. smile


Regarding testing, please specify what gpu and os you are using on your pc, thanks.

Posted By: txesmi

Re: PhysX Cloth Beta Samples - 03/31/12 10:32

Hi,

betas worked perfect here. Constant 60 fps.

Win7 32bits, Q9660, Nvidia 285 GTX.

Salud!
Posted By: 3run

Re: PhysX Cloth Beta Samples - 03/31/12 12:07

@rojart, you better remove HDR and shadows, so only physics will affect on FPS.

I test with my GeForce 6600 GT, so cloth are simulated in software.
I get 10 fps with destroyable cloths and 30 fps with attached model.
But I think, if you'll remove such effects as stencil shadows and HDR, it'll works faster.
Posted By: Ch40zzC0d3r

Re: PhysX Cloth Beta Samples - 03/31/12 12:21

Looks good, have with my ATI Radeon on both const 60 fps.
Posted By: painkiller

Re: PhysX Cloth Beta Samples - 03/31/12 13:45

I've tried the two demos on my pc, both crashed after the software mode warning, when the cloth appeared on the screen
Posted By: LPF

Re: PhysX Cloth Beta Samples - 04/01/12 10:44

both tried,both look VERY nice!!! i can't stand to use them, but they wer both between 15 to 23 fps on my pc... (win7 hompePremium 64bit, i7 quadcore 2,2 ghz, 8gig Ram, GeForce GT 540 M ,2g cache) ... i will try again if shadows and HDR are removed

Question: can you upload the sourcecode? would be nice to know how it works...

Posted By: rojart

Re: PhysX Cloth Beta Samples - 04/01/12 16:03

Originally Posted By: txesmi
Hi,
betas worked perfect here. Constant 60 fps.
Win7 32bits, Q9660, Nvidia 285 GTX.
Salud!

Thanks.

Originally Posted By: 3run
@rojart, you better remove HDR and shadows, so only physics will affect on FPS.

I test with my GeForce 6600 GT, so cloth are simulated in software.
I get 10 fps with destroyable cloths and 30 fps with attached model.
But I think, if you'll remove such effects as stencil shadows and HDR, it'll works faster.

Thanks, you're right, here are the same sample without shaders. http://www.public.gamefactor.eu/a8/px/px_cloth1a.rar

Originally Posted By: Ch40zzC0d3r
Looks good, have with my ATI Radeon on both const 60 fps.

Thanks, please specify what OS (32bit/64bit) AMD/ATI driver you are using?

Originally Posted By: painkiller
I've tried the two demos on my pc, both crashed after the software mode warning, when the cloth appeared on the screen

Thanks, please specify what OS (32bit/64bit) AMD/ATI driver you are using?

Try this with run.bat and post the log file if crashes again: http://www.public.gamefactor.eu/a8/px/px_cloth1a.rar

Originally Posted By: LPF
both tried,both look VERY nice!!! i can't stand to use them, but they wer both between 15 to 23 fps on my pc... (win7 hompePremium 64bit, i7 quadcore 2,2 ghz, 8gig Ram, GeForce GT 540 M ,2g cache) ... i will try again if shadows and HDR are removed
Question: can you upload the sourcecode? would be nice to know how it works...

Thanks, try sample above without shadows & shaders.
Yes, if it worked stable I'll upload the source code, too.
Posted By: Ch40zzC0d3r

Re: PhysX Cloth Beta Samples - 04/01/12 16:17

I have 64 bit, dont know my ATI driver should be the newest!
Posted By: Random

Re: PhysX Cloth Beta Samples - 04/01/12 16:33

Works fine for me
Posted By: Random

Re: PhysX Cloth Beta Samples - 04/01/12 16:51

Also very interesting:
the Character (the dancing guy in with the dress wink ) in the video below, collisions very dynamical. It is like you could set "PH_CONVEX" on models with more the 256 Polygones.

Youtube Video

Will this also be passable, because of the cloth physic plugin?
Posted By: painkiller

Re: PhysX Cloth Beta Samples - 04/01/12 17:18

I'm using a Sapphire Radeon HD 6870 with latest amd drivers and Win7 64 bit

Here´s the log:
Click to reveal..
Log of A8 Engine 8.30.5 run at Sun Apr 01 19:15:53 2012
Merzthik on Windows NT/2000/XP version 6.1 Build 7600
Options -diag
App: C:\Users\Merzthik\Desktop\px_cloth1a\px_cloth1a.exe in C:\Users\Merzthik\Desktop\px_cloth1a\
Author: Robert Judycki

MM mixer opened
DSOUND device opened
DI interface opened
Start Window opened(c) Conitec - www.3dgamestudio.com
A8 Engine - Pro Edition V8.30.5 - Nov 2 2011
Linking C:\Users\Merzthik\Desktop\px_cloth1a\px_cloth1a.exe...

Mouse found
Altavoces (Realtek High Definition Audio) opened
AMD Radeon HD 6800 Series pure T&L device 1ff9 detected
D3D device AMD Radeon HD 6800 Series 1ff9 selected
Opening 14 resources in PX_CLOTH1A.EXE...
ackphysX.dll opened
px_cloth1a.wrs opened
ent_playloop2: function not found
ent_playsound2: function not found
socket_select: function not found.
Running PX_CLOTH1A.EXE.
Main started at 0.144
set_cloth_options_startup started
D3D_Init Window: 720x480 -> Window: 1x720x480x32
Video memory found: 2801 MB
Main loop at 0.213
D3D_Resize Screen: 1680x1050 -> Screen: 1x1680x1050x32....
1st frame with 2801 MB at 0.356
Opening PhysX...

- gHardwareSimulation: 0

ok
LevelInit at 1.643
2 entities 0 cameras 0 lights 0 sounds 0 paths
2 lmaps 1 textures 1 meshes 1 submeshes 480 faces...ok
LevelReady at 1.756
No valid technique in mat_twosided - enforcing

Posted By: 3run

Re: PhysX Cloth Beta Samples - 04/01/12 17:32

Works perfect and smooth. I get constant 40 fps without shaders.
AMD Athlon 64 3200+ 2.21, 2 GB RAM, GeForce 6600 GT.
Posted By: Quad

Re: PhysX Cloth Beta Samples - 04/01/12 21:10

Works at solid 60fps. gtx560ti, core2quad q9300
Posted By: LPF

Re: PhysX Cloth Beta Samples - 04/01/12 21:12

still not running on constant 60 fps...

starts with 60 fps now but goes down to 20when the first ball hits the cloth...
can ou upload the second one without ripping too??

(forgot: my pc has two GPU's and works with the integrated intel chipset... not the Geforce... so my GPU is the intel HD graphics 3000 integrated)
Posted By: rojart

Re: PhysX Cloth Beta Samples - 04/01/12 23:29

Ch40zzC0d3r, 3run, Quad
Thank you very much for your patience and your help.

Originally Posted By: Random
Also very interesting:
the Character (the dancing guy in with the dress wink ) in the video below, collisions very dynamical. It is like you could set "PH_CONVEX" on models with more the 256 Polygones.
Youtube Video
Will this also be passable, because of the cloth physic plugin?

Thanks, this is not PH_CONVEX, he used simple capsule as hull with pXent_addshape and yes it's possible.

Originally Posted By: painkiller
I'm using a Sapphire Radeon HD 6870 with latest amd drivers and Win7 64 bit ...

Thanks, try this one: http://www.public.gamefactor.eu/a8/px/px_cloth1b.rar

Originally Posted By: LPF
still not running on constant 60 fps...
starts with 60 fps now but goes down to 20when the first ball hits the cloth...
can ou upload the second one without ripping too??
(forgot: my pc has two GPU's and works with the integrated intel chipset... not the Geforce... so my GPU is the intel HD graphics 3000 integrated)

Thanks, here you go: http://www.public.gamefactor.eu/a8/px/px_cloth1b.rar
Posted By: LPF

Re: PhysX Cloth Beta Samples - 04/01/12 23:53

i hope i don't go on your nerves, but now the old one with shaders works fine (const. 40 fps), and the new one recieves the same error as painkiller some posts ago...

I think this is caused by the (bloody) nvidia optimus that switches between the two gpu's... but i don't really know

some cruel things for dessert:

the new log does not know which windows version i'm working on,and it tells me that the graphics card tht openes, is the Geforce, but in the program it says:my name is Intel HD 3000... i've no Ideawhat ive done to my computer:

Code:
Log of A8 Engine 8.30.5 run at Mon Apr 02 01:46:29 2012
Chira on Windows NT/2000/XP version 6.1 Build 7601
Options -diag
App: C:\Users\Chira\Desktop\GS\THE UNBELIEVABLE KAMPFKEKS CHRONICLES (skins)\Plugins\px_cloth1b\px_cloth1b.exe in C:\Users\Chira\Desktop\GS\THE UNBELIEVABLE KAMPFKEKS CHRONICLES (skins)\Plugins\px_cloth1b\
Author: Robert Judycki

MM mixer opened
DSOUND device opened
DI interface opened
Start Window opened(c) Conitec - www.3dgamestudio.com
A8 Engine - Pro Edition V8.30.5 - Nov  2 2011
Linking C:\Users\Chira\Desktop\GS\THE UNBELIEVABLE KAMPFKEKS CHRONICLES (skins)\Plugins\px_cloth1b\px_cloth1b.exe...

Mouse found
Speakers (Realtek High Definition Audio) opened
NVIDIA GeForce GT 540M   pure T&L device 1ff9 detected
D3D device NVIDIA GeForce GT 540M   1ff9 selected
Opening 14 resources in PX_CLOTH1B.EXE...
ackphysX.dll opened
px_cloth1b.wrs opened
ent_playloop2: function not found
ent_playsound2: function not found
socket_select: function not found.
Running PX_CLOTH1B.EXE.
Main started at 1.053
set_cloth_options_startup started
D3D_Init Window: 800x600 -> Window: 1x800x600x32
Video memory found: 4058 MB
Main loop at 1.218
D3D_Resize Screen: 1680x1050 -> Screen: 1x1680x1050x32....
1st frame with 4058 MB at 1.645
Opening PhysX... 

 - gHardwareSimulation: 1

ok
LevelInit at 3.273
2 entities 0 cameras 0 lights 0 sounds 0 paths
 2 lmaps 1 textures 1 meshes 1 submeshes 480 faces...ok
LevelReady at 3.564





Posted By: gri

Re: PhysX Cloth Beta Samples - 04/02/12 07:08



hi,

nice to hear that your plugin found the way to official GS suite.

Tested on my two laptops and get 58-60 fps
Posted By: rojart

Re: PhysX Cloth Beta Samples - 04/02/12 08:37

Originally Posted By: LPF
i hope i don't go on your nerves, but now the old one with shaders works fine (const. 40 fps)

No problem, the log and my sample have the same GPU name?

Originally Posted By: LPF
and the new one recieves the same error as painkiller some posts ago...
I think this is caused by the (bloody) nvidia optimus that switches between the two gpu's... but i don't really know
some cruel things for dessert:
the new log does not know which windows version i'm working on,and it tells me that the graphics card tht openes, is the Geforce, but in the program it says:my name is Intel HD 3000... i've no Ideawhat ive done to my computer:

Seems that SDK works like engine and switch to (gHardwareSimulation: 1) Nvidia GPU modus, but primary GPU is the HD3000 and should be gHardwareSimulation: 0, like my API routine said, therefore crashes.

Go to desktop, right click over there and select "interchangeable graphics" or something like that, then select the "High performance GPU".

Hope that helps.

Originally Posted By: gri
hi,
nice to hear that your plugin found the way to official GS suite.
Tested on my two laptops and get 58-60 fps

Thanks, please specify what OS (32bit/64bit) GPU/GPUs are using?
Posted By: painkiller

Re: PhysX Cloth Beta Samples - 04/02/12 08:59

Works fine now @60fps (1680x1050)
Posted By: gri

Re: PhysX Cloth Beta Samples - 04/02/12 10:43


Arrg ....an error occured.

First the machine data were all demos works fine

AMD A6-3400m
6 GB ram
amd radeon hd 6520g
win 7 home premium 64bit
1366 * 768

Now the machine were first demo works (also the version without shaders) but px_cloth2 crashes after the messagebox with the software simulation hint


Intel Core2Duo E8500
NVidia gforce 9800m Gtx
2 GB
Vista ultimate 32bit
1680*1050

no newer graphics driver available.
Posted By: rojart

Re: PhysX Cloth Beta Samples - 04/02/12 11:42

Originally Posted By: painkiller
Works fine now @60fps (1680x1050)

Thank you, the problem was not PhysX, but a renderstate CullMode = 1; who I removed in the last sample.

Originally Posted By: gri
Arrg ....an error occured.
First the machine data were all demos works fine
AMD A6-3400m
6 GB ram
amd radeon hd 6520g
win 7 home premium 64bit
1366 * 768
Now the machine were first demo works (also the version without shaders) but px_cloth2 crashes after the messagebox with the software simulation hint
Intel Core2Duo E8500
NVidia gforce 9800m Gtx
2 GB
Vista ultimate 32bit
1680*1050
no newer graphics driver available.

Thank you, please post the log file where it crashes.
Just make a batch file like run.bat and type: px_cloth.exe -diag
Posted By: gri

Re: PhysX Cloth Beta Samples - 04/02/12 12:13


ok here you are



Quote:

Log of A8 Engine 8.30.5 run at Mon Apr 02 14:11:58 2012
D901C on Windows NT/2000/XP version 6.0 Build 6002
Options -diag
App: C:\Users\D901C\Downloads\px_cloth2\px_cloth2\px_cloth.exe in C:\Users\D901C\Downloads\px_cloth2\px_cloth2\
Author: Robert Judycki

MM mixer opened
DSOUND device opened
DI interface opened
Start Window opened(c) Conitec - www.3dgamestudio.com
A8 Engine - Pro Edition V8.30.5 - Nov 2 2011
Linking C:\Users\D901C\Downloads\px_cloth2\px_cloth2\px_cloth.exe...

Mouse found
Lautsprecher (Realtek High Definition Audio) opened
NVIDIA GeForce 9800M GTX pure T&L device 1ff9 detected
D3D device NVIDIA GeForce 9800M GTX 1ff9 selected
Opening 43 resources in PX_CLOTH.EXE...
ackphysX.dll opened
px_cloth.wrs opened
ent_playloop2: function not found
ent_playsound2: function not found
socket_select: function not found.
Running PX_CLOTH.EXE.
Main started at 0.176
D3D_Init Window: 720x480 -> Window: 1x720x480x32
Video memory found: 1767 MB
D3D_Resize Window: 1024x800 -> Window: 1x1024x800x32
def_startup started
set_cloth_options_startup started
Main loop at 0.227....
1st frame with 1767 MB at 0.228
Opening PhysX...
Malfunction W1527: Warning: Unable to find a PhysX card, the cloth will be simulated in software.ok
LevelInit at 9.007
3 entities 0 cameras 0 lights 0 sounds 0 paths
2 lmaps 1 textures 1 meshes 1 submeshes 552 faces...ok
LevelReady at 9.201

Posted By: rojart

Re: PhysX Cloth Beta Samples - 04/02/12 14:39

@gri: Thanks, please try this one: http://www.public.gamefactor.eu/a8/px/px_cloth2c.rar
Posted By: LPF

Re: PhysX Cloth Beta Samples - 04/02/12 21:19

works const. 60 fps now, the only thing not working is the last one with tearing( cloth1b) can you upload this with the bugfix from the second example?

here is the log:

Code:
Log of A8 Engine 8.30.5 run at Mon Apr 02 23:18:04 2012
Chira on Windows NT/2000/XP version 6.1 Build 7601
Options -diag
App: C:\Users\Chira\Desktop\GS\THE UNBELIEVABLE KAMPFKEKS CHRONICLES (skins)\Plugins\px_cloth1b\px_cloth1b.exe in C:\Users\Chira\Desktop\GS\THE UNBELIEVABLE KAMPFKEKS CHRONICLES (skins)\Plugins\px_cloth1b\
Author: Robert Judycki

MM mixer opened
DSOUND device opened
DI interface opened
Start Window opened(c) Conitec - www.3dgamestudio.com
A8 Engine - Pro Edition V8.30.5 - Nov  2 2011
Linking C:\Users\Chira\Desktop\GS\THE UNBELIEVABLE KAMPFKEKS CHRONICLES (skins)\Plugins\px_cloth1b\px_cloth1b.exe...

Mouse found
Speakers (Realtek High Definition Audio) opened
NVIDIA GeForce GT 540M   pure T&L device 1ff9 detected
D3D device NVIDIA GeForce GT 540M   1ff9 selected
Opening 14 resources in PX_CLOTH1B.EXE...
ackphysX.dll opened
px_cloth1b.wrs opened
ent_playloop2: function not found
ent_playsound2: function not found
socket_select: function not found.
Running PX_CLOTH1B.EXE.
Main started at 0.456
set_cloth_options_startup started
D3D_Init Window: 800x600 -> Window: 1x800x600x32
Video memory found: 4058 MB
Main loop at 0.625
D3D_Resize Screen: 1680x1050 -> Screen: 1x1680x1050x32....
1st frame with 4058 MB at 1.071
Opening PhysX... 

 - gHardwareSimulation: 1

ok
LevelInit at 2.737
2 entities 0 cameras 0 lights 0 sounds 0 paths
 2 lmaps 1 textures 1 meshes 1 submeshes 480 faces...ok
LevelReady at 2.975


(it only tells: "...cloth1b funktioniert nicht mehr" )

Edit: it works if i start it with integratedGraphics (the intel 3000) but notif i start it with the geforce with the others it's the other way round
Posted By: gri

Re: PhysX Cloth Beta Samples - 04/03/12 07:41



hi,

"px_cloth2c" works. Problem solved.


regards,
gri
Posted By: Random

Re: PhysX Cloth Beta Samples - 04/04/12 21:46

Jop. Now I have 60 fps.
10 more then before grin
Posted By: rojart

Re: PhysX Cloth Beta Samples - 04/05/12 10:00

Originally Posted By: LPF
works const. 60 fps now, the only thing not working is the last one with tearing( cloth1b) can you upload this with the bugfix from the second example?
here is the log:
...
(it only tells: "...cloth1b funktioniert nicht mehr" )
Edit: it works if i start it with integratedGraphics (the intel 3000) but notif i start it with the geforce with the others it's the other way round

Thanks, check this one: http://www.public.gamefactor.eu/a8/px/px_cloth1c.rar

gri, Random: Thanks, please check the sample above, also.
Posted By: Random

Re: PhysX Cloth Beta Samples - 04/05/12 10:08

Yes, your last to uploaded examples work perfectly.
No warnings, everything found and a constant 60 fps.
Great!
Posted By: 3run

Re: PhysX Cloth Beta Samples - 04/05/12 11:33

I get constant 40 FPS, perfect mate.
Posted By: LPF

Re: PhysX Cloth Beta Samples - 04/05/12 13:25

works const. 30 fps (a bit too slow i think, but never mind) other one const. 60
good job!!
Posted By: rojart

Re: PhysX Cloth Beta Samples - 05/27/12 12:19

Thanks again to the testing group!

It's my birthday today, therefore I am releasing new version 1.0b which shows nearly all the clothing tests.

Please check it out, thanks!

http://www.public.gamefactor.eu/a8/px/px_cloth_samples.rar


Posted By: Ch40zzC0d3r

Re: PhysX Cloth Beta Samples - 05/27/12 12:53

Happy Birthday! laugh
Posted By: 3run

Re: PhysX Cloth Beta Samples - 05/27/12 14:18

HB mate! I love your work! laugh
Posted By: txesmi

Re: PhysX Cloth Beta Samples - 05/28/12 10:50

it freezes here at start. Tryed updating physx but without luck...
Posted By: rojart

Re: PhysX Cloth Beta Samples - 05/28/12 15:58

thank you guys for the birthday wishes.

txesmi, please post the log file and what exactly freezes the scene with or without cloth?
Posted By: rojart

Re: PhysX Cloth Beta Samples - 06/02/12 17:28

A new "Cloth with Ragdoll" demo has been added.

txesmi, please check the new sample also.

http://www.public.gamefactor.eu/a8/px/px_cloth_samples2.rar



EDIT:
Two files are missing:
d3dx9_42.dll
d3dx9_43.dll

Please re-download the samples above.
Posted By: txesmi

Re: PhysX Cloth Beta Samples - 06/03/12 09:31

everything works great now!
Posted By: gri

Re: PhysX Cloth Beta Samples - 06/06/12 08:20

nice....had much fun to throw the balls to the poor man grin

I try to stay patiant until its gettin released....but its hard to wait.


good job,
gri
Posted By: Ch40zzC0d3r

Re: PhysX Cloth Beta Samples - 06/06/12 09:57

This is cool =)
And what this "Sorry, beta time is out" message should say us?
That you will sell this and not share with the community?
Posted By: rojart

Re: PhysX Cloth Beta Samples - 06/08/12 18:10

Thanks to all who tested my clothing demo samples.

Originally Posted By: gri
nice....had much fun to throw the balls to the poor man grin

I try to stay patiant until its gettin released....but its hard to wait.

good job,
gri


Originally Posted By: Ch40zzC0d3r
This is cool =)
And what this "Sorry, beta time is out" message should say us?
That you will sell this and not share with the community?

It will be released soon, take a look at forecast.
Posted By: Bone

Re: PhysX Cloth Beta Samples - 06/25/12 18:30

I have a question about the cloth simulation. Is it possible to simulate a blowing wind so it looks like a flag?
Posted By: rojart

Re: PhysX Cloth Beta Samples - 06/27/12 08:42

Of course, check my last example or the link below, demo 2.

http://www.void3d.com/cloth.html
Posted By: gri

Re: PhysX Cloth Beta Samples - 07/03/12 08:25

hi rojart,

congrats to your work...thank you.

I play arround with your flag-ball demo. After reducing the polycount of the flag model tearing is impossible with default ball.

What does matters in this case? Have I to scale up the ball too...or is increasing the mass enough ?
Posted By: gri

Re: PhysX Cloth Beta Samples - 07/04/12 11:21



ok...got it...increasing cloth_options[0] handles the thickness and strength
.
Posted By: rojart

Re: PhysX Cloth Beta Samples - 07/06/12 15:59

Sorry, I had a holiday smirk
Posted By: 578

Re: PhysX Cloth Beta Samples - 04/25/13 21:59

ok man loooking forward to hearing from you
Posted By: 3run

Re: PhysX Cloth Beta Samples - 04/25/13 22:17

578@ What are you look for? It's already in the last beta.
Posted By: rojart

Re: PhysX Cloth Beta Samples - 10/26/13 18:54

Anyone interested in the fluid sample demo?
Posted By: 3run

Re: PhysX Cloth Beta Samples - 10/26/13 18:58

rojart@ I'm laugh
Posted By: gri

Re: PhysX Cloth Beta Samples - 10/28/13 14:35

me too
Posted By: rojart

Re: PhysX Cloth Beta Samples - 11/02/13 13:50

Thanks guys, i'll PM you.
Posted By: Random

Re: PhysX Cloth Beta Samples - 11/02/13 19:15

Yes, yes, me to!

Also, are we actually able to use soft bodies, cloths etc...?
Are there any exsample in how to use it?
Posted By: rojart

Re: PhysX Cloth Beta Samples - 11/04/13 20:40

In relation to the fluid sample i'll let you know when i'm ready.

You can check the clothdemo.c from sample folder, but if you need specified cloth sample just tell me what you need?

Soft Bodies works for me individually and needed an special tetrahedral meshes, but i'm coding to make it automatically.
Posted By: gri

Re: PhysX Cloth Beta Samples - 12/17/13 11:49

hi rojart,

I know these days before christmas are timeconsuming.

Could you give us a feedback how development is going on with fluid or softbody ?
Posted By: rojart

Re: PhysX Cloth Beta Samples - 12/19/13 02:00

hi gri, sorry for the delay.
Well, i'm currently working very hard on the fluid implementation and there are some problems with the new OVERLAY flag for the particles, video below.
Theoretically the fluid demo should be ready this weekend.

Soft bodies works individually for me now, because you need an tetrahedral meshes for it.
But if you need something special, just let me know what you need.

Posted By: gri

Re: PhysX Cloth Beta Samples - 12/19/13 07:47

hi,

thanks for response.

The video looks nice.
But this softbody thing, I cant get it yet.

If you have the time, could you explain the need of tetrahedral mesh. Or better how is the workflow to get softbody physics for that.

On the screen in your first post there the pumpkin is going down the stairs, has it a special mesh?

What is to do if I want to realize something like an punchbag ?
Posted By: rojart

Re: PhysX Cloth Beta Samples - 12/20/13 03:40

Yes, of course!

Take a look at the paper document below, this article will teach you how tetrahedral meshes in soft bodies works.

Click to reveal..

PhysXViewer tool supports authoring of tetrahedral models, but i really need to ask nVidia if this tool can be shared, if not i'll make an automated converter.
Posted By: gri

Re: PhysX Cloth Beta Samples - 12/20/13 07:50

thanks,

now I get it. There have to be an additional mesh as volume, and filled inside. This serves as reference and deforms the renderingmodel.
Posted By: rojart

Re: PhysX Fluid and Sof Body Beta Samples - 12/20/13 22:01

Exactly, but the simplest version is that your just convert it to tetrahedral meshes and SDK makes the rest for you.

Here is one very good old example demo of Soft bodies, if you are interested yet:
THE GREAT KULU: TECHNOLOGIE-DEMO

Posted By: rojart

Re: PhysX Fluid and Sof Body Beta Samples - 12/24/13 16:40

@3run @gri @Random: Hello again, because the OVERLAY flag works now i've sent the demo to you.
If your GPU is not nVidia, reduce the MAX_PARTICLES to 5000-10000 depends of your CPU.
The emiter, drain and form has no effect yet.
If you have kepler GPU, please use the both kepler files from KeplerPatch32 folder.
If you have problems, please send me the acklog.txt file, thanks!

Merry Christmas!

Posted By: 3run

Re: PhysX Fluid and Sof Body Beta Samples - 12/24/13 17:49

I've tested the demo and I've just sent you the results! laugh

Greets
Posted By: rojart

Re: PhysX Fluid and Sof Body Beta Samples - 12/28/13 19:00

This was a very quick and very precise response, thank you very much!

I've looked deeply in the log files and have established, that kepler dll has started a bit faster.

results wihout KeplerPatch32:
Quote:
Opening PhysX...

- GPU: NVIDIA GeForce GT 430

- gHardwareSimulation: 1

ok
LevelInit at 7.553 0 lmaps 0 textures...ok

results with KeplerPatch32:
Quote:
Opening PhysX...

- GPU: NVIDIA GeForce GT 430

- gHardwareSimulation: 1

ok
LevelInit at 1.272 0 lmaps 0 textures...ok
Posted By: Tele

Re: PhysX Cloth Beta Samples - 09/20/14 16:51

Hallo rojart
I need the Programm
http://www.public.gamefactor.eu/a8/px/px_cloth_samples.rar
from you.
I wonnt make more cloth Flags, and I dont now to make it.
Gruss Tele
Posted By: rojart

Re: PhysX Cloth Beta Samples - 09/26/14 08:35

You're right, fixed issue with wind and external acceleration on second cloths.
Check out this ackphysX.dll file with code below.

Code:
#include <default.c>
#include <ackphysX.h>
#include <mtlFX.c>

PANEL* pInfo = NULL;
FONT* fA20b = "Arial#20b";

function fBallinit()
{
	set(my,SHADOW|CAST);
	pXent_settype(my,PH_RIGID,PH_SPHERE);
	pXent_setmass(my,6);
	pXent_setelasticity(my,100);
	pXent_addvelcentral(my,vec_rotate(vector(1000,0,400),camera.pan));
	pXent_addtorquelocal(my,vector(100,5,0));
	wait(-30);
	ent_remove(me);
}

function on_space_event()
{
	ent_create ("basket_ball.mdl", camera.x, fBallinit);
}


function main()
{	
	PANEL* pInfo = pan_create(NULL,5);
	pan_setdigits(pInfo,0,5,2,"%4.0f x", fA20b, 1, screen_size.x);
	pan_setdigits(pInfo,0,50,2,"%4.0f", fA20b, 1, screen_size.y);
	pan_setstring(pInfo,0,90,2, fA20b,str_create("PhysX Cloth Demo by Robert Judycki"));
	pan_setstring(pInfo,0,5,40, fA20b,str_create("Press [Space] key to shoot a ball into the scene"));
	set(pInfo, OUTLINE|SHADOW|SHOW);
	
	shadow_stencil = 2;
	fps_max = 60;

	level_load("");	
	physX_open();
	vec_set(sky_color,COLOR_BLUE);
	vec_set(sun_angle.pan,vector(300,60,5000));
	vec_set(camera.x,vector(-1200,0,500));
	vec_set(camera.pan,vector(0,-10,0));
	camera.arc = 90;

	// generate ground plane
	ENTITY *ground = ent_createterrain(NULL,vector(0,0,0),16,16,1000);
	bmap_fill(bmap_for_entity(ground,0),COLOR_GREEN,100);
	pXent_settype(NULL,PH_STATIC,PH_PLANE);
	
	//////////////////////////////
	// Cloth #1
	//////////////////////////////
	
	// generate flag pole	
	ENTITY *pole = ent_create(CUBE_MDL,vector(0,400,40*8),NULL);
	vec_set(pole.scale_x,vector(0.5,.5,40));
	vec_set(pole.pan,vector(0,0,0));
	vec_set(pole.blue,COLOR_WHITE);
	set(pole,SHADOW|CAST);
	pXent_settype(pole,PH_STATIC,PH_BOX);
	
	// generate flag
	ENTITY *cloth = ent_create("clothflag.mdl",NULL,NULL);
	vec_set(cloth.pan,vector(0,0,0));
	cloth.material = mtl_twosided_alpha;
	cloth.ambient = 50;
	set(cloth,SHADOW|CAST);
	set(cloth.material,PASS_SOLID); // required for shadow
	ent_clone(cloth); // Prevents, that all clothes move the same way
	
	// attach flag to pole
	c_setminmax(pole);
	c_setminmax(cloth);
	vec_set(cloth.x,vector(
	pole.x,
	pole.y+(cloth.max_y-cloth.min_y)/2,
	pole.z+pole.max_z-(cloth.max_z-cloth.min_z)/2));
	
	// setup flag cloth	
	var cloth_options[40];
	memcpy(cloth_options,CLOTH_DEFAULT,40*sizeof(var));
	vec_set(cloth_options[25],vector(-1,-1,0));  // external acceleration
	vec_set(cloth_options[28],vector(0,30,0));  // random wind acceleration

	cloth_options[9] = 4; // Tear Factor
	cloth_options[37] |= NX_CLF_GRAVITY|NX_CLF_BENDING|NX_CLF_COLLISION_TWOWAY|NX_CLF_SELFCOLLISION|NX_CLF_TEARABLE;
	
	pXent_cloth(cloth,pole,NX_CLOTH_ATTACHMENT_TWOWAY,0,0,cloth_options);
	
	//////////////////////////////
	// Cloth #2
	//////////////////////////////

	//generate flag
	ENTITY *cloth2 = ent_create("clothflag.mdl",NULL,NULL);
	vec_set(cloth2.pan,vector(0,0,0));
	cloth2.material = mtl_twosided_alpha;
	cloth2.ambient = 50;
	set(cloth2,SHADOW|CAST);
	set(cloth2.material,PASS_SOLID); // required for shadow
	ent_clone(cloth2); // Prevents, that all clothes move the same way
	
	ENTITY *pole2 = ent_create(CUBE_MDL,vector(-300,-550,40*8),NULL);
	vec_set(pole2.scale_x,vector(.5,.5,40));
	vec_set(pole2.pan,vector(0,0,0));
	vec_set(pole2.blue,COLOR_WHITE);
	set(pole2,SHADOW|CAST);
	pXent_settype(pole2,PH_STATIC,PH_BOX);
	
	// attach flag to pole
	c_setminmax(pole2);
	c_setminmax(cloth2);
	vec_set(cloth2.x,vector(pole2.x,pole2.y+(cloth2.max_y-cloth2.min_y)/2,pole2.z+pole2.max_z-(cloth2.max_z-cloth2.min_z)/2));	
	
	vec_set(cloth_options[25],vector(1,1,0));  // external acceleration
	vec_set(cloth_options[28],vector(0,60,0));  // random wind acceleration
	
	cloth_options[37] &= ~NX_CLF_TEARABLE;
	
	pXent_cloth(cloth2,pole2,NX_CLOTH_ATTACHMENT_TWOWAY,0,0,cloth_options);
	
	//////////////////////////////
	// Cloth #3
	//////////////////////////////

	//generate flag
	ENTITY *cloth3 = ent_create("clothflag.mdl",NULL,NULL);
	vec_set(cloth3.pan,vector(0,0,0));
	cloth3.pan = 180;
	cloth3.material = mtl_twosided_alpha;
	cloth3.ambient = 50;
	set(cloth3,SHADOW|CAST);
	set(cloth3.material,PASS_SOLID); // required for shadow
	//ent_clone(cloth3); // Prevents, that all clothes move the same way
	
	ENTITY *pole3 = ent_create(CUBE_MDL,vector(500,0,40*8),NULL);
	vec_set(pole3.scale_x,vector(.5,.5,40));
	vec_set(pole3.pan,vector(0,0,0));
	vec_set(pole3.blue,COLOR_WHITE);
	set(pole3,SHADOW|CAST);
	pXent_settype(pole3,PH_STATIC,PH_BOX);
	
	// attach flag to pole
	c_setminmax(pole3);
	c_setminmax(cloth3);
	vec_set(cloth3.x,vector(pole3.x,pole3.y+cloth3.min_y,pole3.z+pole3.max_z-(cloth3.max_z-cloth3.min_z)/2));	
	
	vec_set(cloth_options[25],vector(0,1,0));  // external acceleration
	vec_set(cloth_options[28],vector(0,-50,0));  // random wind acceleration
	
	cloth_options[37] |= NX_CLF_TEARABLE;
	
	pXent_cloth(cloth3,pole3,NX_CLOTH_ATTACHMENT_TWOWAY,0,0,cloth_options);
}

Posted By: Tele

Re: PhysX Cloth Beta Samples - 09/26/14 16:29

Hallo rojart
Danke für die hielfe...usw
Ich hab die DDL in Acknex_plugins koppiert.

Die Flaggen werden dargestellt,
aber beim anzeigen der 2. und 3. Flagge bricht
die Windanim für 2 Flaggen zusammen.

als ob die:

var cloth_options[40];
memcpy(cloth_options,CLOTH_DEFAULT,40*sizeof(var));
vec_set(cloth_options[25],vector(-1,-1,0)); // external acceleration
vec_set(cloth_options[28],vector(0,30,0)); // random wind acceleration

für die anderren 2 Flaggen nicht mehr gültig sind.

auch mit memcopy....var cloth_options_1[40]; cloth_options_2[40]; usw keine wirkung.
Beide Flaggen hängen runter :-(
No Wind

Gruss Tele
Posted By: rojart

Re: PhysX Cloth Beta Samples - 09/28/14 10:26

Seltsam, es funktioniert gut bei mir.
Überprüfe es, ob mehr als eine ackphysX.dll in deinem A8 Engine Ordner sich befindet (auch Unterordner), wenn ja lösche es, dann neu versuchen.

Sonst probiere es mit dem fertigen clothdemo2 von mir.

Nicht schlecht wäre auch acklog.txt zu posten, wenn es immer noch Probleme gibt.
Posted By: Tele

Re: PhysX Cloth Beta Samples - 09/28/14 17:22

Hallo rojart
Habe die clothdemo3.exe gestartet bekomme die meldung
MSVCR120.dll fehlt
Ich habe aber nur die MSVCR71.dll bei mir.
Kann es das sein ?
Wie komme ich an die MSVCR120.dll ?
Gruss Tele
Posted By: rojart

PhysX Cloths Sample - 09/28/14 18:10

Hallo Tele
Ja, es stimmt, ich hatte gerade noch mal meine ackphysX.dll mit Dependency Walker kontrolliert, es fehlen drei dll's.
Hier noch mal das gleiche neu komprimiert.
Posted By: Tele

Re: PhysX Cloth Beta Samples - 09/28/14 18:10

Hallo rojart
Habe die MSVCR120.dll istalliert.
Beim starten der exe werden die 3 Flagen dargestellt und der screen friert ein.
Die MSVCR120.dll wars nicht, sorry.
sonnst alles das selbe nur 1 Flagge im Wind :-(
acklog.txtersuche acklog.txt herzustellen.
Gruss Tele
Posted By: rojart

Re: PhysX Cloth Beta Samples - 09/28/14 19:07

Ah, ich nutze kepler patch dll für meine GPU, vielleicht deswegen bei dir nicht funktioniert.

Welche GPU wird es benutzt, in der acklog.txt datei, unter Opening PhysX... kann man ablesen?

Versuche noch einmal das ganze nicht mit Kepler patch dll hier.
Posted By: Tele

Re: PhysX Cloths Sample - 09/28/14 19:33

Hier mein Runlist:
Log of A8 Engine 8.45.4 run at Sun Sep 28 21:25:40 2014
Telemar on Windows NT/2000/XP version 6.1 Build 7601
Options clothdemo2.c -nx 300 -diag -tl
App: D:\GStudio8\acknex.exe in Y:\clothdemo2\clothdemo2\

MM mixer opened
DSOUND device opened
DI interface opened
Start Window opened(c) Conitec - www.3dgamestudio.com
A8 Engine - Commercial Edition V8.45.4 - Jan 16 2014
Development version
Registered to: Telemar

Mouse found
Lautsprecher + umgeleitete Kopfhörer (IDT High Definition Audio opened
AMD Radeon HD 5800 Series pure T&L device 1ff9 detected
D3D device AMD Radeon HD 5800 Series 1ff9 selected.
ackAR.dll opened
acknet.dll opened
ackoal.dll opened
ackphysX.dll opened
ackwii.dll opened
Compiling CLOTHDEMO2.C - [Esc] to abort.........
on_ent_remove_px: function not found
on_exit_px: function not found
on_level_load_px: function not found... 0.257 sec
Running CLOTHDEMO2.C.
2 objects
Main started at 1.451
D3D_Init Window: 720x480 -> Window: 1x720x480x32
Video memory found: 748 MB
LevelInit at 1.511 0 lmaps 0 textures...ok
LevelReady at 1.520
Opening PhysX... ok
def_startup started
Main loop at 2.724....
1st frame with 748 MB. at 2.756
Normal exit at 12.375
Close level,DLL,objects
Free input,funcs,panels,defs,syns,views,strings,vars..ok
Free sounds,bmaps,fonts,hash,defs1,script..ok
Close dx,multimedia,D3D,engine,nexus..ok
A8 Engine - Commercial Edition V8.45.4 - Jan 16 2014
(c) Conitec - www.3dgamestudio.com
Registered to: Telemar
Close window at 12.415
Posted By: Tele

Re: PhysX Cloths Sample - 09/28/14 20:18

Hallo rojart
hab Endgülltig alle ackphysx.dll aus dem ordner verbannt und
deine ackphysx.dll neu copiert.
Jetzt bekomme ich auch eine fehlermeldung.

E1512
Empty function called in physx_open.

Bei der allten ackphysx.dll passiert genau das was ich geschrieben habe nur eine Flagge hat die Windanim.

Liegt also an der neuen ackphysx.dll
Phuu.

Ach ja die alte ackphysx.dll darf man nicht umbenennen und im Ordner lassen es wird dann zb auch als ackphysx.dll---aus trotzdem mit dem umgenannten Nahmen als ackphysx.dll geladen :-)
Posted By: rojart

Re: PhysX Cloths Sample - 09/28/14 20:37

Starte die clothdemo2.exe datei, was passiert jetzt?

Die log datei ist aus dem alten ackphysx.dll, versuche es mit der neue zu starten (auch mit der fehlermeldung) und dann die log datei posten.

Jede dll kann ein eigenes namen haben, deswegen ist es irrelevant wie sie benannt wird.
Posted By: Tele

Re: PhysX Cloths Sample - 09/28/14 20:56

rojart
Brauch ich deine ackphysx.dll nicht in die acknex_plugins dll ordner copieren?

Fehler:
Malfunction W1527
Error: Unable to create the cloth for the current scene.--->OK
Absturtz Fenster.

Mit SED cloth.c getartet.
Malfunction W1527
Error: Unable to create the cloth for the current scene.--->OK
Error E1515
Invalid function arguments in physX_open---->OK
Script crash in physX_open: MBO---->OK
Fenster zeigt eine Fahne und den Textan ende und hängt.


Log:
Log of A8 Engine 8.45.4 run at Sun Sep 28 22:52:17 2014
Telemar on Windows NT/2000/XP version 6.1 Build 7601
Options clothdemo2.c -nx 300 -diag -tl
App: D:\GStudio8\acknex.exe in Y:\clothdemo2\clothdemo2\

MM mixer opened
DSOUND device opened
DI interface opened
Start Window opened(c) Conitec - www.3dgamestudio.com
A8 Engine - Commercial Edition V8.45.4 - Jan 16 2014
Development version
Registered to: Telemar

Mouse found
Lautsprecher + umgeleitete Kopfhörer (IDT High Definition Audio opened
AMD Radeon HD 5800 Series pure T&L device 1ff9 detected
D3D device AMD Radeon HD 5800 Series 1ff9 selected.
ackphysX.dll opened
ackAR.dll opened
acknet.dll opened
ackoal.dll opened
ackphysX.dll opened
ackwii.dll opened
Compiling CLOTHDEMO2.C - [Esc] to abort.........
on_ent_remove_px: function not found
on_exit_px: function not found
on_level_load_px: function not found... 0.333 sec
Running CLOTHDEMO2.C.
2 objects
Main started at 1.487
D3D_Init Window: 720x480 -> Window: 1x720x480x32
Video memory found: 748 MB
LevelInit at 1.546 0 lmaps 0 textures...ok
LevelReady at 1.556
Opening PhysX...

- GPU: AMD Radeon HD 5800 Series

- gHardwareSimulation: 0

ok
Malfunction W1527: Error: Unable to create the cloth for the current scene.
Error E1515: Invalid function arguments in physX_open
Error E1515: Invalid function arguments in physX_open
Error E1513: Script crash in physX_open: MB0
def_startup started
Main loop at 7.452....
1st frame with 748 MB. at 7.465
Normal exit at 9.248
Close level,DLL,objects
Free input,funcs,panels,defs,syns,views,strings,vars..ok
Free sounds,bmaps,fonts,hash,defs1,script..ok
Close dx,multimedia,D3D,engine,nexus..ok
A8 Engine - Commercial Edition V8.45.4 - Jan 16 2014
(c) Conitec - www.3dgamestudio.com
Registered to: Telemar
Close window at 9.282
Posted By: rojart

Re: PhysX Cloths Sample - 09/29/14 16:10

Hallo Tele, danke für die Infos, hat sehr weiter geholfen.

Doch, die muss in dein acknex_plugins Ordner.

Eins ist sicher, es wird nicht in HW Modus funktionieren nur SW Modus, deswegen versuche es mit dieser ackphysX.dll, sollte funktionieren.

Ich hatte auf einen alten Laptop, auch nicht mit nVidia GPU immer noch 20-25fps.
Posted By: Tele

Re: PhysX Cloths Sample - 10/01/14 08:11

Hallo rojart
Es funktioniert immer nur die Letzte inizialisiere Flagge mit Wind.
Also nur die Windanimation ist weg, alles anderre ist OK.
Gruss Tele
Posted By: Tele

Re: PhysX Cloths Sample - 10/01/14 09:04

Hallo rojart
pXent_cloth Returns:
Nonzero if successful, 0 otherwise.
Liefert immer 0 zurück.
Gruss Tele
Posted By: rojart

Re: PhysX Cloths Sample - 10/01/14 16:47

Originally Posted By: Tele
Hallo rojart
Es funktioniert immer nur die Letzte inizialisiere Flagge mit Wind.
Also nur die Windanimation ist weg, alles anderre ist OK.
Gruss Tele

Hallo Tele, kein Problem.
Poste es bitte für die Zukunft deine log Datei, sonst kann ich nur raten was schief gelaufen ist.

Originally Posted By: Tele
Hallo rojart
pXent_cloth Returns:
Nonzero if successful, 0 otherwise.
Liefert immer 0 zurück.
Gruss Tele

Du schreibst das es nur eine Flagge funktioniert.
Ich vermute das du wieder mit eine alte dll gestartet hast oder sogar zwei gleichzeitig wie oben aus deinem log zu sehen scheint.

Versuche es folgender maßen nach.

Kopiere die oben gepostete dll in dein clothdemo2 Ordner.
Starte die exe und nicht die source c Datei, dann poste mir die log Datei, vielen dank.
Posted By: Tele

Re: PhysX Cloths Sample - 10/01/14 22:50

rojart....................

Es läuft es klappt.
Hab die Exe gestartet so wie du sagst und alles läuft absolut gut!!!
Auch die closedemo.c rennt wie Katze.
Jaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa es klappt alles.
Huraaaaaaaaaaaaaaaaaaaaaaaaaaaaaa !!!!
Ich glaube ich muss die ddls alle noch neu kopieren.
Endlich, mann war das jetzt irre.
Danke Danke Danke Danke Danke Danke Danke ......
Mir fallen jetzt 1000 sachen ein die damit gemacht werden können.
Danke Rojart!
Die clothdemo2 ist die Lösung!
Posted By: Tele

Re: PhysX Cloths Sample - 10/01/14 23:54

Hallo Rojart:

Folgendes muss Kopiert werden und die Alten ddls gelöscht werden.

Die ackphysX.dll in den Ordner GStudio8\acknex_plugins
Die PhysXCore.dll in den Ordner GStudio8\

Die alten natürlich vorher löschen.
Dann klappt alles bestens.

Gruss Tele
Posted By: rojart

Re: PhysX Cloths Sample - 10/02/14 17:44

Vielen dank für dein Engagement, wieder ein BUG weniger!

If someone have multiple cloth problems, just ask rojart laugh
Posted By: Tele

Re: PhysX Cloths Sample - 10/03/14 12:20

Hallo rojart
Kannst du mal schaun warum der Ball nicht springt.
Masse und dump wird ignoriert.
Gruss Tele
Posted By: rojart

Re: PhysX Cloths Sample - 10/03/14 15:44

Ja danke, ich habe es vergessen zu ändern wegen einige Tests.
Diese neue ackphysX.dll sollte funktionieren.
Posted By: Tele

Re: PhysX Cloths Sample - 10/04/14 05:17

Hallo Robert

Danke Danke Rojart!

Sag mal was hast du den da gemacht?
Das ding ist ja der Hammer!!!!!!!!!!!!!!!
Die ackphysX.dll rennt ja wie eine Rakete.
So ein Tempo hab ich ja noch nicht gesehen.
Da kann man ja direkt auf die physicX umstellen.
Der Ball fliegt wie ne Kanonnenkugel, alles klappt!
Die solltest du mit einem Goldennen Nagel fessthallten.
Einfach Klasse! Genial! Wunderbar!
Suuuuuuuuuper Leistung!!!!!!!!!!!!!

Kann das einer mal in englisch übersetzten.?

If someone have multiple physic problems, just ask rojart!!!!!!!!!!!!!!!!

Gruss Tele
Posted By: rojart

Re: PhysX Cloths Sample - 10/05/14 17:11

Hallo Tele
Ich freue mich dass ich helfen konnte.
Nur bisschen optimiert wink
Posted By: Tele

Re: PhysX Cloths Sample - 11/01/14 15:39

Hallo Rojart
Hast du die ackphysX.dll für meine Hardware Radion GeForce 750 Ti
Brauch ich für die Hardware physic mehr.
Gruss Tele
Posted By: rojart

Re: PhysX Cloths Sample - 11/02/14 10:25

Hallo Tele

Du hast den GM107 GPU Typ, wie ich auch damals Kepler erwischt hatte, hier das gleiche Problem habe ich bei nVidia erwähnt.

Kepler Patch Dateien in dein A8 bzw. Game Ordner rein kopieren (überschreiben), dann sollte mit HW funktionieren.
Posted By: Tele

Re: PhysX Cloths Sample - 11/02/14 21:55

Hallo Rojart
Hab beide Daten in Game Ordner rein kopieren (überschreiben)
Klappt nicht , schätze es liegt an der ackphysX.dll
Das ist die ohne HW :-( kann das sein.
Ps: ich hab AMD 64 System.(wäre wohl auch egal oder)
Gruss Tele
Posted By: rojart

Re: PhysX Cloths Sample - 11/07/14 15:52

Hallo Tele

Die ist auch für HW, wird automatisch erkannt ob eine bestimmte GPU unterstützt wird.

Mach folgendes, meine clothdemo2.c kompilieren und zip o. rar hier Posten, dann kann ich unterscheiden welche dll noch vergessen wurde.
Posted By: Tele

Re: PhysX Cloths Sample - 11/08/14 06:23

Hallo rojart
Hoffe das da was faul ist ;-)
meineclothdemo2.zip
Posted By: rojart

Re: PhysX Cloths Sample - 11/08/14 13:26

Hallo Tele

Danke, es funktioniert tadellos bei mir, aber aus dem acklog.txt erkenne ich, dass es mit AMD Radeon HD 5800 getestet wurde.

Bitte mit GeForce 750 Ti testen lassen und acklog.txt Posten.

Benutze nur eine ackphysX.dll indem du alle Dateien in der acknex_plugins Ordner umbenennst zB. ackphysX_dll ackAR_dll usw, danke.
Posted By: FEL

Re: PhysX Cloths Sample - 11/08/14 13:44

sollte das physx nicht mit allen geräten unter windows Tadellos laufen? XD dazu ist das schliesslich da
Posted By: Tele

Re: PhysX Cloths Sample - 11/08/14 13:52

Hallo rojart
Hier der acklog.txt
Log of A8 Engine 8.45.4 run at Sat Nov 08 14:49:32 2014
Telemar on Windows NT/2000/XP version 6.1 Build 7601
Options clothdemo2.c -diag -tl
App: D:\GStudio8\acknex.exe in Z:\clothdemo2\

MM mixer opened
DSOUND device opened
DI interface opened
Start Window opened(c) Conitec - www.3dgamestudio.com
A8 Engine - Commercial Edition V8.45.4 - Jan 16 2014
Development version
Registered to: Telemar

Mouse found
Lautsprecher (VIA High Definition Audio) opened
NVIDIA GeForce GTX 750 Ti pure T&L device 1ff9 detected
D3D device NVIDIA GeForce GTX 750 Ti 1ff9 selected.
ackphysX.dll opened
ackAR.dll opened
ackoal.dll opened
ackwii.dll opened
Compiling CLOTHDEMO2.C - [Esc] to abort.........
on_ent_remove_px: function not found
on_exit_px: function not found
on_level_load_px: function not found... 0.174 sec
Running CLOTHDEMO2.C.
2 objects
Main started at 1.290
D3D_Init Window: 720x480 -> Window: 1x720x480x32
Video memory found: 4020 MB
LevelInit at 1.338 0 lmaps 0 textures...ok
LevelReady at 1.339
Opening PhysX...

- GPU: NVIDIA GeForce GTX 750 Ti

- gHardwareSimulation: 1

ok
def_startup started
Main loop at 2.715....
1st frame with 4020 MB. at 2.734
Normal exit at 6.653
Close level,DLL
Posted By: rojart

Re: PhysX Cloths Sample - 11/08/14 18:14

Originally Posted By: FEL
sollte das physx nicht mit allen geräten unter windows Tadellos laufen? XD dazu ist das schliesslich da

Schön wäre es, wir sprechen hier über neue Kepler GPUs, was nicht mehr mit PhysX SDK 2.8.4.6 kompatibel sind.
Posted By: rojart

Re: PhysX Cloths Sample - 11/08/14 18:51

Hallo Tele

Leider erkenne ich hier keine Fehler, deswegen wundere ich mich, dass es nicht funktioniert.

Ich habe noch eine andere ackphysX.dll ohne HW Unterstützung für deine GeForce 750 Ti kompiliert, was mit Performance deiner CPU gerechnet werden muss.
Posted By: FEL

Re: PhysX Cloths Sample - 11/08/14 19:38

Ein update der internen PhysX api auf die neueste version sollte das eigentlich richten, aber das ist wohl ein JCL Update
Posted By: rojart

Re: PhysX Cloths Sample - 11/08/14 21:19

Stimmt wenn du PhysX 3 meinst, aber das wird in näher Zukunft nicht geschehen nach meine Meinung.
Posted By: Tele

Re: PhysX Cloths Sample - 11/09/14 06:10

Hallo Rojart

Wieder mal Genial !

Ahhhhhaaa jetzt läuft alles, hab die GeForce 750 auf HW Auto umgestellt und läuft.
Natürlich wie du sagst in einem riesigen Tempo.
Kannst du die ackphysX.dll mal testen wegen Masse abprall und Dumping eines Objekts.
Das geht hier so schnell das ich das so nicht erkenne.
Danke Rojart.
Posted By: Tele

Re: PhysX Cloths Sample - 11/10/14 16:11

Hallo rojart
Ist wirklich noch ein Problem.
Kannst du mal schaun warum der Ball nicht springt.
Masse und dump wird ignoriert.
Gruss Tele
Posted By: Tele

Re: PhysX Cloths Sample - 11/11/14 14:35

Hallo rojart

Alles zurück, Fehler gefunden.
In der clothdemo.c muss der parameter des Balls
nicht 10 sonder 90 oder 100 gesetzt werden dann ist alle OK.
Sonnst hüpft da nix ;-)

pXent_setelasticity(my,100);

Danke für alles!

Gruss Tele
© 2024 lite-C Forums