I solved my problem of not being able to run the demos in debug mode.
It was the project settings. I had to change the debug info. format to Program Database for Edit and Continue (/ZI)
Thanks for all your concern anyway.
I have some issues converting the demos to use Irrlicht. I converted Tuto1 to use Irrlicht.
Firstly I'll say that I don't know how to use camera perspective and projection properly yet as I have been using 2D drawing and not using Irrlicht scene manager until now. So although I can get the particles working, I can't get the same perspective as in Tuto1.
I don't understand the coordinate system used by SPARK.
For example does it use the video drivers coordinate system or does SPARK have its own coordinate system that must be mapped to the graphics engine.
Using Tuto1 as my example:
The particle systems are created between -2.0 and 2.0 on x,y and z axes.
Code: Select all
SPK::Vector3D color(SPK::random(0.0f,360.0f),0.8f,1.0f);
SPK::Vector3D position(SPK::random(-2.0f,2.0f),SPK::random(-2.0f,2.0f),SPK::random(-2.0f,2.0f)); particleSystems.push_back(createParticleSystem(position,convertHSV2RGB(color)));
How does that work? How does it work with Irrlicht? Has it got to do with the camera perspective?
When I try to map the mouse location when I click the button to create a particle system at the mouse location, I am getting messed up results.
Even if I try to directly create a system at a location, I don't understand the minimum and maximum coordinates.
After messing with perspective and not being able to zoom in close to the explosions (the particles were dots), I thought about the size of the particles.
Code: Select all
pointRenderer->setSize(0.1f);
quadRenderer->setScale(0.1f,0.1f);
With irrlicht I had to make the point renderer size near 16 to look similar to the particles in Tuto1. But it does look pretty good with and with fast FPS.
Is the pointRenderer size the maximum size of a particle?
Same question for the scale of a quadRenderer? Is that the max. size?
So in the end I do get a similar look to the Tuto1 but it doesn't seem quite the same perspective.
I'm sure I need a lesson on camera perspective.