Laser beam

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
gogo
Posts: 65
Joined: Tue Apr 15, 2008 1:04 am

Laser beam

Post by gogo »

I'm making a game, you know, and facing a problem about graphics.
I want to render laser beam. Concreatly speaking, a model shoots a laser-gun and the laser beam flies as a single long ray(not a bullet) straight from the model to an enemy. I hope that effect.
I'm thinking to use "createFlyStraightAnimator" or "IParticleSystemSceneNode & createBoxEmitter", but I have no idea how to do so far.
So I need your advices around the problem. :?:
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Well in the Demo tutorial there's code for shooting a billboard so if you want to use a particle system instead just copy the code and make the necessary changes.
Image Image Image
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

search the forum man!!!!!!!!

BeamSceneNode
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
gogo
Posts: 65
Joined: Tue Apr 15, 2008 1:04 am

Post by gogo »

Thanks, sudi.
I used your CBeamNode and noticed my beam stretched from the ground. I want the beam to do from the model. Can I do?
ImageImage
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

well when u use setLine start is the point where the scenenode starts and end is where it ends.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
Post Reply