3d Lazer (3d > 2d)

hi nice Of people,
i am into laser actually,
i did something like that recently
https://vimeo.com/66803122
i would like to go next level with 3d Laser.
i just would like to project something like that

but laser doesn’t work in 3d natively
Do you have formule or library to do 2d projection with 3d environnement

vector transform(vector) !!
thanks
francois

you can create a projection and modelview matrix using ofMatrix4x4 then:

  
  
        vec = modelView.preMult(vec);  
	vec = projection.preMult(vec);  
	vec.set(vec.x/vec.z*ofGetWidth()*0.5,vec.y/vec.z*ofGetHeight()*0.5);