Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Black blending?

Page: 1 of 1
 Janos Oudrin
12-14-2003, 7:15 PM
#1
I'm having a tough time getting my black saber to work...
In JO, I would have a negative grayscale lightsaber and I would use the blendFunc GL_DST_COLOR GL_SRC_COLOR in the shader. This worked, except for the fact that if you played JO in windowed mode, it would look really strange, seemingly displaying the white stuff instead of the black stuff.

In JA, I tried the same, but unfortunatly, it does the exact same thing as JO did in windowed mode... But ALL THE TIME!

As my black saber looks awful now, I'm just asking the GL blending pro's out there...

What is the correct blendFunc to use for displaying black lightsabers?
 Janos Oudrin
12-15-2003, 3:17 PM
#2
Right, to answer my own question then:

If you use a negative greyscale image of a lightsaber, and use the "blendFunc filter" in the shader, you can make it display a black lightsaber.
 Wudan
12-16-2003, 12:39 PM
#3
Good job. I'm working on a similar problem at the moment - got any pics of your black saber?
Page: 1 of 1