Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsShowcase → Translucent lightsabers and Additive Blending
Translucent lightsabers and Additive Blending
2010-12-22, 2:16 PM #1
For the last few weeks I've been working on the JKUP, adding small cog verbs and documenting the exe, as well as experimenting with a few ideas I had. The first two being translucent lightsaber and additive blending, the former to let me use the standard JK system with a GSX-look, and the later to improve the look overall. I've successfully achieved both. :D

[http://www.jkhub.net/project/screens/project-74-oIWS1aG_VU.jpg]

[http://img109.imageshack.us/img109/3520/jkadditiveblend.gif]

These next few were just recently taken:

[http://www.jkhub.net/project/screens/project-74-gd4nG8SILR.jpg]

[http://www.jkhub.net/project/screens/project-74-jnd_g5SjiB.jpg]

[http://www.jkhub.net/project/screens/project-74-qieMuikplK.jpg]

[http://www.jkhub.net/project/screens/project-74-7E8SengrzY.jpg]

[http://www.jkhub.net/project/screens/project-74-7H_SZKi_5_.jpg]

A lot is going on there, from changing the lightsabers face flags to 0x2 (translucent) to telling the engine when to apply additive blending. Additive blending will only apply to a surface which has the following characteristics:

1. It's translucent.
2. It's material is transparent.

The additive blending uses the color channels as a blending source, not the alpha channel. This allows us to use full-resolution textures and still get proper alpha blending. No more texture stretching to achieve glows!

There's still a few issues with translucent lightsabers, namely the usual clipping you get from alpha blending geometry. I have a general idea on how to fix it, I just need to get an implementation done.

I'm hoping to change the additive blending to use a flag system which enables us to specify exactly which surfaces should have it and which ones should use the color channels as a blend source, this way we can use color channels with non-additive blending as well. This would make it more customizable and would solve any compatibility issues with already-existing content from other mods/maps.

So yep.. wish me luck. :D
2010-12-22, 2:22 PM #2
Wow, that's really fantastic! Well done.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2010-12-22, 6:44 PM #3
What exactly is JKUP?
I had a blog. It sucked.
2010-12-22, 7:34 PM #4
Simple cog fixes most clipping issues. Don't have the resources with me, but if I remember correctly, all it does is change one flag on every Thing in the level. Check through the DM or whathaveyou to find the flag.
"And lo, let us open up into the holy book of Proxy2..." -genk
His pot is blacker than his kettle!
2010-12-22, 10:43 PM #5
Jedi Knight Unofficial Patch
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2010-12-22, 10:45 PM #6
You should redo all the explosion and splash/hit sprites as well. Give Shred18 a shout, he might have suitable replacements from JKE before reducing them to 16-bit.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2010-12-23, 12:47 AM #7
I could have used these 1 year ago :P

Great work! (As you probably knew from my comments at #Jkhub)
Star Wars: TODOA | DXN - Deus Ex: Nihilum
2010-12-23, 12:49 PM #8
wow. this really does not look like the same game at all anymore.
Welcome to the douchebag club. We'd give you some cookies, but some douche ate all of them. -Rob

↑ Up to the top!