Old 2nd April 2003, 06:43   #1
Magic.X
Major Dude
 
Magic.X's Avatar
 
Join Date: Feb 2002
Location: Leipzig / Germany
Posts: 859
Erm, Atero? | XOR Blending

As i said i was working through your Primer in order to get some more knowledge on 3d stuff. Well i figured out that something was missing.

Quote:
Originally written by Atero
Minimum Blend
Uses the least amount of color between the two frames. I can't
remember where this is used, but it's not usable in effect lists.
Its used in UnConeD's APE's (Picture RendererII and Corlor Map). I'd advise you to either leave this out, or to explain those APE's too.

Quote:
Originally written by Atero
XOR
Don't know anything about what this is, but it's trippy.
To understand XOR generally we need to know that eXclusiveOR means nothing else than a boolean or - but excluding the and.

The programming code woud be: x xor y = (x or y) and not (x and y)

And here is a tabe to make this more obvious:

x|y|result
-+-+------
0|0|0
0|1|1
1|0|1
1|1|0]


As we know, the color channels are calculated seperately.

Now we imagine x and y to be the two red-channel values.

First, AVS converts them too boolean values which means dividing by 255 and rounding up or down.

That means a color value of 128-255 is 1, a color value of 0-127 is 0.

Then, AVS does XOR, as explained before.
Finally we need to get a useable color value as a result which means multiplying the result with 255.

To put it in a nutshell, a value above 127 and a value below 128 will result in a full valued color channel with 255, if the values are both above 127 or below 128 this will result in color channel of 0.

Well, i could also have pm'ed this but if Atero did'nt know about XOR there are probably more around who don't either.


-=[The Ultimate VJ-Tool for AVS]=-

Hotlist 2.3 developement thread (old)

Last edited by Magic.X; 2nd April 2003 at 07:41.
Magic.X is offline   Reply With Quote
Old 2nd April 2003, 06:47   #2
Tuggummi
Bin King
 
Tuggummi's Avatar
 
Join Date: Mar 2001
Location: Finland
Posts: 2,179
Erhm... You know there is a thread about the primer uptade already at http://forums.winamp.com/showthread....hreadid=121697 Also you could've just PM atero , why make a new thread about it?

Texer Resources

Im retarded... err i mean retired!
Probably both...
Tuggummi is offline   Reply With Quote
Old 2nd April 2003, 07:46   #3
Magic.X
Major Dude
 
Magic.X's Avatar
 
Join Date: Feb 2002
Location: Leipzig / Germany
Posts: 859
Quote:
Originally posted by Magic.X
Well, i could also have pm'ed this but if Atero did'nt know about XOR there are probably more around who don't either.
Ok, seems i to sorta missed the primer update thread.

But anyway, this is not just about updating the Primer, but mainly about XOR Blending (renamed the Topic) and this way the 2-3 months old thread wont be revived.

/Edit
And this way there may be more newbies profiting from it because they wont have to work themselves through 50 posts first. Anyway i dont think it would'nt kill anyone to have a new thread


-=[The Ultimate VJ-Tool for AVS]=-

Hotlist 2.3 developement thread (old)

Last edited by Magic.X; 2nd April 2003 at 08:07.
Magic.X is offline   Reply With Quote
Old 2nd April 2003, 07:55   #4
Tuggummi
Bin King
 
Tuggummi's Avatar
 
Join Date: Mar 2001
Location: Finland
Posts: 2,179
Quote:
this way the 2-3 months old thread wont be revived.
I think you as a regular already know what old threads are appropriate to be revived and what not, like take example the Tips&Tricks (which eventually was made into a sticky one)

But anyway... actually i have nothing to say anymore

Texer Resources

Im retarded... err i mean retired!
Probably both...
Tuggummi is offline   Reply With Quote
Old 2nd April 2003, 12:02   #5
anubis2003
Forum King
 
anubis2003's Avatar
 
Join Date: Dec 2002
Location: middle of somewhere
Posts: 5,564
Send a message via AIM to anubis2003
I don't think that that is how AVS does XOR, because then XOR would only result in a couple of colors being used, not the entire range that it does use.
anubis2003 is offline   Reply With Quote
Old 2nd April 2003, 12:18   #6
Magic.X
Major Dude
 
Magic.X's Avatar
 
Join Date: Feb 2002
Location: Leipzig / Germany
Posts: 859
I just checked that, seems you're right

I found this out by testing it with large text letters in many color constallations and in most cases this rule works. Maybe it processes some color constellations in a diffrent way.


-=[The Ultimate VJ-Tool for AVS]=-

Hotlist 2.3 developement thread (old)
Magic.X is offline   Reply With Quote
Old 2nd April 2003, 20:52   #7
dirkdeftly
Forum King
 
dirkdeftly's Avatar
 
Join Date: Jun 2001
Location: Cydonia, Mars
Posts: 2,651
Send a message via AIM to dirkdeftly
I'M WORKING ON IT. I DON'T NEED ANY HELP FROM ANYONE AT THIS POINT. MOST OF ALL, GET OFF MY ASS ABOUT IT. it'll be done when it's done

"guilt is the cause of more disauders
than history's most obscene marorders" --E. E. Cummings
dirkdeftly is offline   Reply With Quote
Old 2nd April 2003, 22:58   #8
jheriko
Forum King
 
jheriko's Avatar
 
Join Date: Aug 2002
Location: a twist in the fabric of space
Posts: 2,150
Send a message via ICQ to jheriko
The real way that XOR works has been explained by me in another thread...

http://forums.winamp.com/showthread....&highlight=XOR

-- Jheriko

'Everything around us can be represented and understood through numbers'
jheriko is offline   Reply With Quote
Old 3rd April 2003, 05:29   #9
Magic.X
Major Dude
 
Magic.X's Avatar
 
Join Date: Feb 2002
Location: Leipzig / Germany
Posts: 859
Thanx jheriko, i expected it to be a per byte xor and not a per bit xor - this explains why i got partially those results by playing around.


-=[The Ultimate VJ-Tool for AVS]=-

Hotlist 2.3 developement thread (old)
Magic.X is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Visualizations > AVS

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off

Forum Jump