Another beam node

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Post Reply
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Another beam node

Post by bitplane »

I didn't like the other beam nodes so I created a new one. Like the others it uses billboards for the start and end points, but this one rotates the beam quad around to the correct angle in screen space, so it looks good from most angles.

Note: you need to use svn trunk (or Irrlicht 1.6 and above), or at least copy the code for SViewFrustum::clipLine. You could comment that line out, but I guess it would cause problems when it goes off the screen.

Image

binary demo | latest source | readme.txt
Last edited by bitplane on Thu Sep 03, 2009 6:33 pm, edited 1 time in total.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Mel
Competition winner
Posts: 2293
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Post by Mel »

Interesting!. I never saw actually a beam node which was based on a screen projection. All i could see was a beam which had planes crossed.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

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