Changing the shape of lasers.

Started by Rayce, April 22, 2015, 07:08:11 PM

Previous topic - Next topic
Is it possible to change the shape of lasers? Has anyone ever tried? I'm toying around with the idea of changing them to a pill shape.

It should be, I think you just need to edit the alpha channels to look pill shaped in gimp or photoshop.
=AaTc= Forever

SALLY....

-Retired Modder

Quote from: Snake on April 22, 2015, 07:57:40 PM
It should be, I think you just need to edit the alpha channels to look pill shaped in gimp or photoshop.

Yeah I'm not sure if it's geometry, a sprite or a combination thereof. If it were a sprite or very large particle effect, that should make it easier just to swap in another material. If it's mapped onto some kind of projectile that could get a little tougher.

Fill me in somebody if I'm wrong?
photobucket limit image removed

I'm 98% sure the bolts are just a large rectangular mesh. I remember accidentally removing some effect file and it cause the lasers to be rectangles. So, I think changing the alphas should work. I guess just try it and see.
=AaTc= Forever

SALLY....

-Retired Modder

April 22, 2015, 08:43:12 PM #4 Last Edit: April 22, 2015, 08:53:14 PM by -RepubliqueCmdr-
You may find the actual geometry in Common.lvl, it is a series of planes all fit together to look spherical in combination with a glow emission (shaders?), and of course the laser texture can change the shape a bit as well.

The reason for the retangle shape as you describe, is because of the billboarding effect that only renders the piece facing the camera as needed. You may see the effect of the different planes switching out if you pause in SPTest, and spectate with freecamera (backspace toggles game-run, i think). Just move your camera around of bolt that has been shot a few times, and you can see the switching billboards effect.

--
The difference between geometry effects and particle effects is fussy, as they are mutually inclusive on the matter (a particle/effect in an FX file can utilize *.MSH files in emission, and billboards are built in, like primitives). You could edit the laser bolt fx files to use a different MSH if desired, and directly modify the MSH in common.lvl itself.

For simplicity in switching out the laser bolt model and texture, copy paste the FX file from common to %side%/effects/ folder, and edit the texture and MSH references with notepad.


Once i found in some random  weapon  _ord.odf file something very interesting.We all know that most of the range weapons have classlabel "bolt".I found ord weapon file with classlabel "bullet" and under that line i found also this:   GeometryName       = "msh file name here"  This mean that if you know how to make 3d models you can make your lasers to look like anything you want.So for example i used an ewok prop msh model and when i munge i was shooting ewoks from my gun all over the place.I hope i help you guys. :D

You are kidding, Ginev?! LOL!

Please just make that mod and publish it. Haha! :tu:
Formerly:
{Alpha}Gen.Ultimo
[212]Cpl.Ultimo
WUSi.Whisper

Cool! So then, can someone model me a pill-shaped laser?

Quote from: Ginev on May 06, 2015, 02:39:42 PM
Once i found in some random  weapon  _ord.odf file something very interesting.We all know that most of the range weapons have classlabel "bolt".I found ord weapon file with classlabel "bullet" and under that line i found also this:   GeometryName       = "msh file name here"  This mean that if you know how to make 3d models you can make your lasers to look like anything you want.So for example i used an ewok prop msh model and when i munge i was shooting ewoks from my gun all over the place.I hope i help you guys. :D

Yes, it's used for rocket launchers.
In Progress:
--Star Wars: Battlefront - Anniversary Edition (formerly Star Wars: Battlefront - Legacy Edition)

On Hold:
--Star Wars Battlefront: Elite Squadron For SWBF1
--Endor: Imperial Base