Installation and compilation notes:
-----------------------------------------------------------------------------------

These are not particularly verbose instructions because... 
if you know how to interpret fluid-dynamics in CUDA, and are competent with Maya plug-ins, then you should have no problems deciphering this. :-)


Prerequisites:
-----------------------------------------------------------------------------------

You will need a Cuda5.0 capable driver and Maya2013 installed.


Contents
-----------------------------------------------------------------------------------

	base
	o	Contains utility classes and functions.
	library
	o	Contains the code for the particle system architecture. 
	solvers
	o	Code for the core solver of the particle system.
	testing
	o	A simple test application.
	scripts
	o	Installation and Launch shell scripts.
	props
	o	MSVC 2010 property files.
	dist
	o	External libraries required for execution.
	extras
	o	Contains the Maya plug-in code and scripts.


Compilation (Windows)
-----------------------------------------------------------------------------------

This is compiled in msvc2010. Simply load the nvparticles-all.sln solution and build.


Compilation (Linux)
-----------------------------------------------------------------------------------

There are project files for Codeblocks. But you can also use the Makefile tree.
It's pretty self explanatory, just hack the Makefile as you see fit.
You may want to install gcc4.1.2 if you are building the plug-in for Maya.


Running a compilation build
-----------------------------------------------------------------------------------

There are numerous scripts in the "scripts" directory. 
If you are testing a compilation, rather than running a final installation, then you will want to use the commands which start with "__".
A quick glance at the __install scripts should tell you that these "__" scripts are not copied to the installation directory.


Installation (Windows7 - x64):
-----------------------------------------------------------------------------------

Copy the demo into any appropriate directory.

Provided the "maya" executable is in the PATH, you can launch maya with all the correct environment by running "bin\run_maya_win64.bat"

However if you wish to build the environment yourself then set the following environment variables:

NVPARTICLES_INSTALL_PATH = <installdir>
PATH = <installdir>\lib\win64;<installdir>\lib\win64\third;%PATH%

MAYA_PLUG_IN_PATH = <installdir>\NvParticlesForMaya\plug-ins;%MAYA_PLUG_IN_PATH%
MAYA_SCRIPT_PATH = <installdir>\NvParticlesForMaya\module\scripts;%MAYA_SCRIPT_PATH%
XBMLANGPATH = <installdir>\NvParticlesForMaya\module\icons;%XBMLANGPATH%

Now you should be able to load the plug-in from within Maya.
The file to load is: "NvParticlesForMaya-win64.mll"

You can tell if it was successful if the NvParticles menu appears.


Installation (Linux - x64):
-----------------------------------------------------------------------------------

Copy the demo into any appropriate directory.

Provided the "maya" executable is in the PATH, you can launch maya with all the correct environment by running "bin\run_maya_linux64.bat"

However if you wish to build the environment yourself then set the following environment variables:

NVPARTICLES_INSTALL_PATH = <installdir>
LD_LIBRARY_PATH = <installdir>\lib\linux64:<installdir>\lib\linux64\third:$LD_LIBRARY_PATH

MAYA_PLUG_IN_PATH = <installdir>\NvParticlesForMaya\plug-ins:$MAYA_PLUG_IN_PATH%
MAYA_SCRIPT_PATH = <installdir>\NvParticlesForMaya\module\scripts:$MAYA_SCRIPT_PATH
XBMLANGPATH = <installdir>\NvParticlesForMaya\module\icons:$XBMLANGPATH

Now you should be able to load the plug-in from within Maya.
The file to load is: "libNvParticlesForMaya-linux64.so"

You can tell if it was successful if the NvParticles menu appears.

You may need to run, "chmod -R 777 <installdir>/bin/*", so that you can execute the files after copying them.

