joelpryde / cinderflex Goto Github PK
View Code? Open in Web Editor NEWNVidia Flex support for Cinder.
NVidia Flex support for Cinder.
hi Joel,
I haven't found flex.h anywhere, has it been renamed in Flex SDK?
Hi there, I found this cinder block and wanted to play around to see what I can do with it and got stuck with the sample. Downloaded and installed CUDA, flex and this sample project. All paths are set as they should, but here is the thing.
NvFlexSolverDesc solverDesc; NvFlexSetSolverDescDefaults( &solverDesc ); solverDesc.maxParticles = particleCount; solverDesc.maxDiffuseParticles = 0; mSolver = NvFlexCreateSolver( mLibrary, &solverDesc );
Throws an error. The fix:
mSolver = NvFlexCreateSolver(mLibrary, particleCount, diffuseParticleCount);
Next error (no such method)
NvFlexSetActiveCount( mSolver, particleCount );
Commenting this line now compiles the sample, but then a serious memory leak is created and the particles don't move. They are positioned and you can move around, but nothing happens despite setting some initial parameters. What can I do to get this sample project working?
Thanks!
Hi @joelpryde
First of all, thanks for this awesome block. It's amazing!
It works just fine in debug build as the demo video you posted to old cinder forum but it seems collision between particles not working in release build like the video I have attached here.
my working environment info is following,
Logs only complain about PDB files but no specific error messages.
CinderFlex.exe' (Win32): Loaded 'C:\Users\avseoul\Documents\Github\Cinder\blocks\CinderFlex\sample\vc2015\x64\Release\CinderFlex.exe'. Module was built without symbols.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\ntdll.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\kernel32.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\KernelBase.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\ws2_32.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\sechost.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\rpcrt4.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\nsi.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\shlwapi.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\msvcrt.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\combase.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\gdi32.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\user32.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\comdlg32.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\SHCore.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\opengl32.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\Users\avseoul\Documents\Github\Cinder\blocks\CinderFlex\sample\vc2015\x64\Release\NvFlexReleaseCUDA_x64.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\advapi32.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\shell32.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.10240.16384_none_0212ec7eba871e86\comctl32.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\windows.storage.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\kernel.appcore.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\glu32.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\ddraw.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\powrprof.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\Users\avseoul\Documents\Github\Cinder\blocks\CinderFlex\sample\vc2015\x64\Release\cudart64_80.dll'. Module was built without symbols.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\profapi.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\dciman32.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\ole32.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\oleaut32.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\WinSxS\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.10240.17319_none_89a9f4e99af45e30\GdiPlus.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\version.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\IPHLPAPI.DLL'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\wininet.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\winnsi.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\imm32.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\msctf.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\uxtheme.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\dwmapi.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\nvoglv64.dll'. Cannot find or open the PDB file.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\setupapi.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\cfgmgr32.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\wtsapi32.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\devobj.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\wintrust.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\msasn1.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\crypt32.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\ntmarta.dll'. Symbols loaded.
The thread 0x1cb8 has exited with code 0 (0x0).
The thread 0xf88 has exited with code 0 (0x0).
The thread 0x1f70 has exited with code 0 (0x0).
The thread 0x1f74 has exited with code 0 (0x0).
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\nvspcap64.dll'. Cannot find or open the PDB file.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\winsta.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\bcryptprimitives.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\nvcuda.dll'. Cannot find or open the PDB file.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\nvfatbinaryLoader.dll'. Cannot find or open the PDB file.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\nvapi64.dll'. Cannot find or open the PDB file.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\dxgi.dll'. Symbols loaded.
'CinderFlex.exe' (Win32): Loaded 'C:\WINDOWS\System32\DWrite.dll'. Symbols loaded.
The thread 0x4a8 has exited with code 0 (0x0).
The thread 0x1018 has exited with code 0 (0x0).
The thread 0x81c has exited with code 0 (0x0).
The thread 0x26e8 has exited with code 0 (0x0).
The thread 0xffc has exited with code 0 (0x0).
The thread 0x1388 has exited with code 0 (0x0).
The thread 0x1758 has exited with code 0 (0x0).
The thread 0xa14 has exited with code 0 (0x0).
The thread 0x1f9c has exited with code 0 (0x0).
The thread 0x1f98 has exited with code 0 (0x0).
The thread 0x25a0 has exited with code 0 (0x0).
The thread 0x950 has exited with code 0 (0x0).
The thread 0x27a4 has exited with code 0 (0x0).
The program '[9504] CinderFlex.exe' has exited with code 0 (0x0).
Any thought would be appreciated.
Thanks!
av
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.