cloth ?

Posted By: 3run

cloth ? - 06/20/18 23:02

Hi guys!

Can anyone else get cloth example from samples folder working? For me it just doesn't get created, PVD doesn't show it as well. I wonder why it's not working. I even installed PhysX System software but it doesn't fix the problem. I remember that it used to work out of the box, but maybe before the 'latest' update?

Best regards!
Posted By: 3run

Re: cloth ? - 06/21/18 17:59

Hmm.. anyone ?
Posted By: Superku

Re: cloth ? - 06/21/18 19:02

That used to work but apparently it doesn't anymore, hm! confused
Posted By: Quad

Re: cloth ? - 06/22/18 09:27

Does not work here neither
Posted By: rojart

Re: cloth ? - 07/20/18 13:07

I'll check what's going wrong.
Posted By: 3run

Re: cloth ? - 07/20/18 15:53

Thank you rojart!
Posted By: rojart

Re: cloth ? - 07/21/18 17:05

Please check the new dll from here.

I know what is happening, but for now I'm waiting for answers, thanks!
Posted By: 3run

Re: cloth ? - 07/21/18 17:15

Just tried clothdemo from samples folder with your .dll and it works! But it crashes on exit/close. In my other projects with cloth it crashes too.
Posted By: rojart

Re: cloth ? - 07/21/18 18:21

Can you send the acklog.txt (-diag) file?
Posted By: 3run

Re: cloth ? - 07/21/18 18:30

Here it goes:
Quote:
Log of A8 Engine 8.47.1 run at Sat Jul 21 21:28:14 2018
Мага on Windows NT/2000/XP version 6.1 Build 7601
Options clothdemo.c -diag -tl -debug
App: C:Program Files (x86)GStudio8SED.exe in C:UsersМагаDesktopcloth

MM mixer opened
DSOUND device opened
DI interface opened
Start Window opened(c) Conitec - www.3dgamestudio.com
A8 Engine - Pro Edition V8.47.1 - Mar 9 2016
Development version
Registered to: Magomet Kochkarov

Mouse found
Динамики (ASUS Xonar DX Audio Device) opened
NVIDIA GeForce GTX 1060 6GB pure T&L device 1ff9 detected
D3D device NVIDIA GeForce GTX 1060 6GB 1ff9 selected.
ackphysX.dll opened
acknet.dll opened
ackoal.dll opened
ackphysX.dll opened
Compiling CLOTHDEMO.C - [Esc] to abort......
PATH C:Program Files (x86)GStudio8code
PATH C:Program Files (x86)GStudio8templatesimages..........
on_ent_remove_px: function not found
on_exit_px: function not found
on_level_load_px: function not found.... 0.293 sec
Running CLOTHDEMO.C.
2 objects
Main started at 1.376 in debug mode
D3D_Init Window: 720x480 -> Window: 1x720x480x32
Video memory found: 1646 MB
LevelInit at 1.421 0 lmaps 0 textures...ok
LevelReady at 1.422
Opening PhysX...

- GPU: NVIDIA GeForce GTX 1060 6GB

- gHardwareSimulation: 1

ok
def_startup started
mtlfx_startup started
Main loop at 2.677....
1st frame with 1646 MB. at 2.692
Normal exit at 3.623
Close level,DLL
Never used -diag before, I simply added -diag in SED Preferences, under Command Line Options and then clicked Debug Run.
If it's needs to be done differently, just let me know how and I'll do it man. Thank you very much for helping out!
Posted By: rojart

Re: cloth ? - 07/21/18 18:40

Thanks, rename the old ackphysX.dll to ackphysX_old or something like this and try again.
Posted By: 3run

Re: cloth ? - 07/21/18 18:44

Now it crashed SED (if I run in debug mode, in 'run current script' mode, it simply crashes as before.
Quote:
Log of A8 Engine 8.47.1 run at Sat Jul 21 21:41:53 2018
Мага on Windows NT/2000/XP version 6.1 Build 7601
Options clothdemo.c -diag -tl -debug
App: C:Program Files (x86)GStudio8SED.exe in C:UsersМагаDesktopcloth

MM mixer opened
DSOUND device opened
DI interface opened
Start Window opened(c) Conitec - www.3dgamestudio.com
A8 Engine - Pro Edition V8.47.1 - Mar 9 2016
Development version
Registered to: Magomet Kochkarov

Mouse found
Динамики (ASUS Xonar DX Audio Device) opened
NVIDIA GeForce GTX 1060 6GB pure T&L device 1ff9 detected
D3D device NVIDIA GeForce GTX 1060 6GB 1ff9 selected.
acknet.dll opened
ackoal.dll opened
ackphysX.dll opened
ackphysX_old.dll opened
Compiling CLOTHDEMO.C - [Esc] to abort......
PATH C:Program Files (x86)GStudio8code
PATH C:Program Files (x86)GStudio8templatesimages..........
on_ent_remove_px: function not found
on_exit_px: function not found
on_level_load_px: function not found.... 0.298 sec
Running CLOTHDEMO.C.
2 objects
Main started at 1.378 in debug mode
D3D_Init Window: 720x480 -> Window: 1x720x480x32
Video memory found: 1646 MB
LevelInit at 1.414 0 lmaps 0 textures...ok
LevelReady at 1.415
Opening PhysX...

- GPU: NVIDIA GeForce GTX 1060 6GB

- gHardwareSimulation: 1

ok
def_startup started
mtlfx_startup started
Main loop at 2.674....
1st frame with 1646 MB. at 2.690
Normal exit at 3.821
Close level,DLL
Renamed old 'ackphysX.dll' to 'ackphysX_old.dll' and placed new one in 'acknex_plugins' folder.
Posted By: rojart

Re: cloth ? - 07/21/18 19:11

Please rename it without the (.dll)
Posted By: rojart

Re: cloth ? - 07/21/18 20:45

just for clarity, you need to open one ackphysX.dll, but not two at the same time.

from your log file:
...
acknet.dll opened
ackoal.dll opened
ackphysX.dll opened
ackphysX_old.dll opened <- Wrong!
...
Posted By: 3run

Re: cloth ? - 07/22/18 00:57

Ok, removed .dll
Here is log
Quote:
Log of A8 Engine 8.47.1 run at Sun Jul 22 03:54:51 2018
&#1052;&#1072;&#1075;&#1072; on Windows NT/2000/XP version 6.1 Build 7601
Options clothdemo.c -diag -tl -debug
App: C:Program Files (x86)GStudio8SED.exe in C:Users&#1052;&#1072;&#1075;&#1072;Desktopcloth

MM mixer opened
DSOUND device opened
DI interface opened
Start Window opened(c) Conitec - www.3dgamestudio.com
A8 Engine - Pro Edition V8.47.1 - Mar 9 2016
Development version
Registered to: Magomet Kochkarov

Mouse found
&#1044;&#1080;&#1085;&#1072;&#1084;&#1080;&#1082;&#1080; (ASUS Xonar DX Audio Device) opened
NVIDIA GeForce GTX 1060 6GB pure T&L device 1ff9 detected
D3D device NVIDIA GeForce GTX 1060 6GB 1ff9 selected.
acknet.dll opened
ackoal.dll opened
ackphysX.dll opened
Compiling CLOTHDEMO.C - [Esc] to abort......
PATH C:Program Files (x86)GStudio8code
PATH C:Program Files (x86)GStudio8templatesimages..........
on_ent_remove_px: function not found
on_exit_px: function not found
on_level_load_px: function not found.... 0.307 sec
Running CLOTHDEMO.C.
2 objects
Main started at 1.386 in debug mode
D3D_Init Window: 720x480 -> Window: 1x720x480x32
Video memory found: 1646 MB
LevelInit at 1.429 0 lmaps 0 textures...ok
LevelReady at 1.430
Opening PhysX...

- GPU: NVIDIA GeForce GTX 1060 6GB

- gHardwareSimulation: 1

ok
def_startup started
mtlfx_startup started
Main loop at 2.712....
1st frame with 1646 MB. at 2.726
Normal exit at 3.843
Close level,DLL
Posted By: rojart

Re: cloth ? - 07/22/18 09:06

any crashes?
Posted By: 3run

Re: cloth ? - 07/22/18 13:05

Sorry, yes. Crash is still there.
Posted By: rojart

Re: cloth ? - 07/22/18 15:00

ok, that's normal because of my different dll, but this is not the issue.

Probably after the change of "PhysX System Software", the GPU acceleration is no longer working, I'll check why.

Now you can check the same effect with the old ackphysX.dll

1. Make sure to use the old ackphysX.dll in acknex_plugins folder.

2. For some debug run the NVIDIA Control Panel and check "Show PhysX Visual Indicator" under "3D Settings" Menu.

3. From task menu "Configure Sorround, PhysX" change the PhysX Settings.. to CPU.

Now the cloth simulation should works without GPU acceleration.

p.s.
Even the GPU PhysX 3 of cloth simulation, also does not work.
Posted By: 3run

Re: cloth ? - 07/22/18 16:50

Thank you for the answer, rojart!
Posted By: 3run

Re: cloth ? - 07/22/18 18:48

All this means (as far as I understood), that cloth in acknex (physX plugin) is always simulated on GPU. If so, then 'NX_CLF_HARDWARE' flag makes no sence.. Is there any way to set CPU to default and make GPU simulation only with 'NX_CLF_HARDWARE' flag set ?

Greets!
Posted By: rojart

Re: cloth ? - 07/23/18 18:12

Take a look in the ackphysX.h file.

Code:
var CLOTH_DEFAULT[40] = 
{
...
// Flag bits.
0 // NX_CLF_HARDWARE is set automatically, depending on your GPU (see above)
...
}


Therefore this function in the old dll will not work, but with my new dll should work.

Code:
cloth options[37] &= ~NX_CLF_HARDWARE;



Posted By: 3run

Re: cloth ? - 07/23/18 23:50

Sad, I hoped there would be easy way out, simply by 'unsetting' that flag before creating cloth. Thank you for your time and help, rojart!
Posted By: rojart

Re: cloth ? - 07/26/18 17:11

Gladly, I found the issue!

rename the nvcuda.dll file to nvcuda-dll from C:\Windows\SysWOW64\ folder.

Now the clothdemo should work in the CPU mode.
Posted By: 3run

Re: cloth ? - 07/26/18 20:19

Great to read this! laugh Thank you very much, rojart! It works now.
Posted By: rojart

Re: cloth ? - 07/28/18 21:56

Thanks, but it's really annoying when the old Nvidia libraries are forgotten.
© 2024 lite-C Forums