Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Energy weapon effect?

Author
Message
Nemo
22
Years of Service
User Offline
Joined: 31st Oct 2002
Location: Bangor, Northern Ireland
Posted: 11th Oct 2004 19:39
Hi there.
I have been trying to get some kind of plasma style effect for ray guns and the like.

I made a cylinder to act as the ray and used some ray intersection stuff to scale it when it hits something. I ghosted the cylinder and used fade object to make it nice and bright but it still looks a bit naff.
I also have a texture that fades from one colour to another, which I then scroll along the length of the cylinder at speed to create the impression that the ray is pummelling its target.

It looks quite average still. I want it to be kind of glowing but I can’t find any way to achieve this. I remember seeing a demo somewhere that had something like this but I can’t find it now.
A good example of what I am trying to achieve is the UT plasma gun that shoots a continuous stream of glowing green death.

Any thoughts would be much appreciated chaps.

In the future we will not spank the monkey, the monkey will spank us.
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 11th Oct 2004 19:45
If this effect is mainly gonna be seen from behind the gun in first person view, then simply adding some plains to each side with a glow texture should be enough. Cylinders are not hugely usefull, you'd get a better effect with some crossed plains - maybe some particle effects comming off it as well.


Van-B


Muhahahahaha.
Nemo
22
Years of Service
User Offline
Joined: 31st Oct 2002
Location: Bangor, Northern Ireland
Posted: 11th Oct 2004 20:08
Cheers mate.

Will give that a try when i get home from work.

In the future we will not spank the monkey, the monkey will spank us.
NathanF
21
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 12th Oct 2004 23:20
I'd make like 5 cylinders inside eachother, each smaller than the last. Scale them in using a timer variable and apply fading using same variable. The variable would be incremented by 1 or so, through to 100. So they would all smoothly fade in and get larger...get me sort of..?

-Formerly DarkSephiroth-
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 12th Oct 2004 23:37
sounds a solid idea.. Thing is, cylinders can look a little naf and too straight...

Maybe you could make a .C object of a kind lighting bolt.. Then do the same principle as NathF? Have a few of them scaling outward and using the set object alpha?

The Wendigo
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: A hole near the base of a tree in the US
Posted: 13th Oct 2004 21:13
I concur with VanB. Plains look the best. Just make sure to disable their object Z-Write. If you use 3 plains each perpindicular to a different axis and all the same size. If you have a glow texture on them and disabled lighting, you will have a really cool looking plasma ball. You could also stretch it to make it more like an oval. Another method for perfectly semetrical plasma is one plain with a glow texture and just make sure it is rotated exactly the same direction on all axis with the camera:



NOTE: for all of you who know how down I am on disable object z-write, this is an exception

Current Projects: Verious things right now. Lots of utils for game making. Hopefully something solid soon.

http://www.geocities.com/djpeterson83

Login to post a reply

Server time is: 2025-06-08 05:19:23
Your offset time is: 2025-06-08 05:19:23