flyingsaucerinvasion
Member
GM Version: Game Maker Studio.
Target Platform: I've only windows to test on, so windows.
Download link: https://app.box.com/s/ln6lxtula8qn89zaqwmlpk0ewp7lfy6b
Project File: ArbitraryAxisLaserBeam.gmz for Game Maker Studio, 12kb
Note: The project makes use of a shader for drawing some point sprite billboards.
Here's a gyfcat demonstration of the laser beam drawn between two crosshairs:
https://gfycat.com/SinfulCommonGraywolf
Summary:
arbitrary-axis billboarding in 3d
think of a laser beam, which always tries to rotate around its length to face as much toward the camera as it can
And in this example, that is exactly what I am doing.
This example just shows you how to get a laser "beam" object to face toward the camera.
It doesn't show you how to do any fancy effects with the laser beam, only how to rotate it.
EDIT:
Hugely cleaned up the code in the project linked above. It should be a lot easier to wrap your mind around now.
Target Platform: I've only windows to test on, so windows.
Download link: https://app.box.com/s/ln6lxtula8qn89zaqwmlpk0ewp7lfy6b
Project File: ArbitraryAxisLaserBeam.gmz for Game Maker Studio, 12kb
Note: The project makes use of a shader for drawing some point sprite billboards.
Here's a gyfcat demonstration of the laser beam drawn between two crosshairs:
https://gfycat.com/SinfulCommonGraywolf
Summary:
arbitrary-axis billboarding in 3d
think of a laser beam, which always tries to rotate around its length to face as much toward the camera as it can
And in this example, that is exactly what I am doing.
This example just shows you how to get a laser "beam" object to face toward the camera.
It doesn't show you how to do any fancy effects with the laser beam, only how to rotate it.
EDIT:
Hugely cleaned up the code in the project linked above. It should be a lot easier to wrap your mind around now.
Last edited: