dim3 Forum

Full Version: "Laser"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
Those of you who have played Half-Life 2 will know what I mean by this. In HL2, the Combine snipers are never seen, but you can see the aiming lasers from their rifles hunting you down, which is really cool and creepy. So, is there a way that I could make an enemy's gun project a laser, and when it is in contact with the player for, say, 2 seconds, he shoots. Thanks a ton.
(By the way, this does mean I'm trying to start up a new project, stay tuned for more info.)
Depends: Do you want to be able to see the beam? Or the dot?
How I would do it:
Use the new line of site feature straight ahead then fire straight ahead.
The little dot from the laser will only be visible on segments, you'd make a hitscan straight ahead from the enemy that has a dot decal that immediately disappears (to be redrawn immediately at the next point)....
I'd prefer to see the beam for the enemies, just the dot for the player. How could I make the beam show?
Well, you could have the weapon fire a no damage laser, for visual effect, and some invisible no damage shots, that send messages back on impact to tell it if the player is still in the laser. Then it fires the actual shot.
Just a guess.

Note, I'm not sure how the new line of sight thing works, if its what I think it is, the no damage invisible shots won't be needed.
That would work, but it would lag like crazy, I think.
ccccc Wrote:Depends: Do you want to be able to see the beam? Or the dot?
How I would do it:
Use the new line of site feature straight ahead then fire straight ahead.
The little dot from the laser will only be visible on segments, you'd make a hitscan straight ahead from the enemy that has a dot decal that immediately disappears (to be redrawn immediately at the next point)....

Realistically speaking, you can't EVER see the beam of a laser unless it's in a smoky room. A real laser is invisible expect where it hits a surface and scatters light over that surface.
Alexander Smith Wrote:Realistically speaking, you can't EVER see the beam of a laser unless it's in a smoky room. A real laser is invisible expect where it hits a surface and scatters light over that surface.

Wikipedia Wrote:The representation of lasers in popular culture, especially in science fiction and action movies, is often misleading. Contrary to their portrayal in many science fiction movies, a laser beam would not be visible (at least to the naked eye) in the near vacuum of space as there would be insufficient matter to cause scattering, except if there were a significant amount of fine shrapnel and other organic particles in that region.

In air, however, moderate intensity (tens of mW/cm²) laser beams of shorter green and blue wavelengths and high intensity beams of longer orange and red wavelengths can be visible due to Rayleigh scattering. With even higher intensity pulsed beams, the air can be heated to the point where it becomes a plasma, which is also visible.

Wink
Bink Wrote:
Alexander Smith Wrote:Realistically speaking, you can't EVER see the beam of a laser unless it's in a smoky room. A real laser is invisible expect where it hits a surface and scatters light over that surface.

Wikipedia Wrote:The representation of lasers in popular culture, especially in science fiction and action movies, is often misleading. Contrary to their portrayal in many science fiction movies, a laser beam would not be visible (at least to the naked eye) in the near vacuum of space as there would be insufficient matter to cause scattering, except if there were a significant amount of fine shrapnel and other organic particles in that region.

In air, however, moderate intensity (tens of mW/cm²) laser beams of shorter green and blue wavelengths and high intensity beams of longer orange and red wavelengths can be visible due to Rayleigh scattering. With even higher intensity pulsed beams, the air can be heated to the point where it becomes a plasma, which is also visible.

Wink

He's talking about a laser pointer, not a laser blast. Go read this stuff:

http://www.intuitor.com/moviephysics/

Info about lasers near the lower mid.
Anyways, just look at a real laser sight. You'll see a dot, but not a beam Wink

of course you could build a laser sight that'd be visible as a beam, but you'd better get some bad-ass AA batteries to power it :P
Alexander Smith Wrote:
Bink Wrote:
Alexander Smith Wrote:Realistically speaking, you can't EVER see the beam of a laser unless it's in a smoky room. A real laser is invisible expect where it hits a surface and scatters light over that surface.

Wikipedia Wrote:The representation of lasers in popular culture, especially in science fiction and action movies, is often misleading. Contrary to their portrayal in many science fiction movies, a laser beam would not be visible (at least to the naked eye) in the near vacuum of space as there would be insufficient matter to cause scattering, except if there were a significant amount of fine shrapnel and other organic particles in that region.

In air, however, moderate intensity (tens of mW/cm²) laser beams of shorter green and blue wavelengths and high intensity beams of longer orange and red wavelengths can be visible due to Rayleigh scattering. With even higher intensity pulsed beams, the air can be heated to the point where it becomes a plasma, which is also visible.

Wink

He's talking about a laser pointer, not a laser blast. Go read this stuff:

http://www.intuitor.com/moviephysics/

Info about lasers near the lower mid.
Depending on the strenght of the laser pointer, you can see the beam in the air.
They are pretty expensive though. http://dragonlasers.com/viper
Don't know if I want to pay $100 for a laser pointer.

dimwit Wrote:Anyways, just look at a real laser sight. You'll see a dot, but not a beam Wink

of course you could build a laser sight that'd be visible as a beam, but you'd better get some bad-ass AA batteries to power it :P
You're right of course. Like I said above, the strong ones are expensive. And a laser sight with a visible beam would be pretty stupid because the sniper could be spotted really fast. :P
Pages: 1 2 3 4 5
Reference URL's