I'm new to this area and have less knowledge. I want to create some graphics like  sparks and lightning by writing some code, using my own physics. I don't want to use some engine, However I can use external libraries. Can anyone tell me how to set started, where should I proceed?Like should I go with OpenGL for writing my own code or something else. 
Creating Sparks using Code
3d;physics;projections