lfnetwork.com mark read register faq members calendar

Thread: Black blending?
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 12-14-2003, 07:15 PM   #1
Janos Oudrin
Lurker
 
Join Date: Dec 2003
Posts: 3
Question Black blending?

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 is offline   you may: quote & reply,
Old 12-15-2003, 03:17 PM   #2
Janos Oudrin
Lurker
 
Join Date: Dec 2003
Posts: 3
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.
Janos Oudrin is offline   you may: quote & reply,
Old 12-16-2003, 12:39 PM   #3
Wudan
Got Balance?
 
Wudan's Avatar
 
Join Date: Oct 2002
Location: Salt Lake, UT
Posts: 1,442
Good job. I'm working on a similar problem at the moment - got any pics of your black saber?


Mt-Wudan.com
I made a silly little program called Dragon, which is an animation tool for the GLA format, used in Jedi Outcast, Jedi Academy and Krakatoa.
Wudan is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > Black blending?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:26 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.