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.

Code Snippets / [DBP] Lightsaber

Author
Message
Twu Kai
19
Years of Service
User Offline
Joined: 2nd Oct 2005
Location:
Posted: 25th Oct 2007 22:53 Edited at: 26th Oct 2007 21:11
This is a lightsaber/laser type bit of code. I think that's how they did the lightsabers in Jedi Knight: Jedi Academy.

Oh, and there's one image you need to go with it, I'll attach some different colours that you can pick - it doesn't matter which one.





Here's the code:


Hope you like it!


This is Bish. Copy Bish into your signature to help him take over from Bunny’s control. (Bogwizard.com - Bunny hybrids)

Attachments

Login to view attachments
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 27th Oct 2007 16:11
Dude, this looks cool.

STOP reading my signature!
Twu Kai
19
Years of Service
User Offline
Joined: 2nd Oct 2005
Location:
Posted: 28th Oct 2007 11:49 Edited at: 29th Apr 2008 17:33
Thanks. I'm trying to get it to sheath and unsheath at the moment, which is taking some time. I'll edit this post when I've got it working...

EDIT: Here it is! I've got it working (that was quick).




I seem to be overly lost in shadow and bloom... I must be in a game.

Attachments

Login to view attachments
Jeff032
17
Years of Service
User Offline
Joined: 13th Aug 2007
Location:
Posted: 28th Oct 2007 16:09
Looks good from the ends, but when you look at it from the side it gets kind of messed up

Space Game WIP
Twu Kai
19
Years of Service
User Offline
Joined: 2nd Oct 2005
Location:
Posted: 28th Oct 2007 17:07
Yep, I'm still trying to get that sorted out. I've tried a long box (textured white) inside the beam, and it looks okay but for the fact that if you're near the beam then the box gradually fades away as you look further away from where you are. I'll post/edit again when I do find a way.

print rnd(20)/0
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 29th Oct 2007 11:57
It would possibly work better if you didn't use transparency and just let the green fade to black and then use ghosting.

Twu Kai
19
Years of Service
User Offline
Joined: 2nd Oct 2005
Location:
Posted: 29th Oct 2007 21:03 Edited at: 30th Jan 2008 10:54
That works. Thank you very much for telling me how.

That's the ghosting version.



And seeing as I was using 'alpha channels' I've made the ones with a black background:





Again, Thank you so much, TEH_CODERER!

Edit: It even works with a different backdrop! If there was a bowing smily...

That has me so confused.
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 30th Oct 2007 01:12
Looks good. Glad I could help.

Login to post a reply

Server time is: 2024-11-22 13:04:37
Your offset time is: 2024-11-22 13:04:37