Old 30th October 2004, 15:11   #1
Warrior of the Light
Forum King
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,121
3d colors

for the attached preset (note to self: attach file) I want to have normal 3d colors, but all I seem able to do is maxblend colors, which sucks if you have different color-intensities.

any help on how to do this in normal replace mode?
Attached Files
File Type: zip wotl - no place like 127-0-0-1.zip (1.1 KB, 186 views)

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever
Warrior of the Light is offline   Reply With Quote
Old 31st October 2004, 22:38   #2
Tuggummi
Bin King
 
Tuggummi's Avatar
 
Join Date: Mar 2001
Location: Finland
Posts: 2,179
Sorry, but im not familiar with backface culling or what ever it is called. I do want to say though that a rotating house isn't very appealing visually... But a rotating scene with house(s), trees, fences, animals... NOW there is an IDEA!

Texer Resources

Im retarded... err i mean retired!
Probably both...
Tuggummi is offline   Reply With Quote
Old 1st November 2004, 07:05   #3
Warrior of the Light
Forum King
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,121
The house refers to the "home" button in most explorers.. 127.0.0.1 is your home IP-address. therefore, "there's no place like 127.0.0.1" means "there's no place like home".

It's just a little computerfreak humour, but the preset was made mostly as a random example.

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever
Warrior of the Light is offline   Reply With Quote
Old 1st November 2004, 09:39   #4
Tuggummi
Bin King
 
Tuggummi's Avatar
 
Join Date: Mar 2001
Location: Finland
Posts: 2,179
Mnnyes, i wasn't talking about the name, just that a single house won't look like much.

But if it's just an example then who cares

Maybe i'll do that scene preset myself then

Texer Resources

Im retarded... err i mean retired!
Probably both...
Tuggummi is offline   Reply With Quote
Old 1st November 2004, 10:39   #5
^..^
Major Dude
 
^..^'s Avatar
 
Join Date: Sep 2004
Location: There
Posts: 1,002
Send a message via ICQ to ^..^
i'm not an expert on this techniques. But perhaps the colors are wrong because the parts of the house are always rendered in the same order: first the roof then the sides and bottom. So the last rendered parts always seem to be infront of the object, even if another part should cover it.

^..^ is offline   Reply With Quote
Old 1st November 2004, 12:38   #6
Warrior of the Light
Forum King
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,121
That's the problem indeed, that only covers my problem. An answer would be nicer

@ Tugg: go ahead

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever
Warrior of the Light is offline   Reply With Quote
Old 1st November 2004, 13:00   #7
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
Quote:
Originally posted by Tuggummi
But a rotating scene with house(s), trees, fences, animals... NOW there is an IDEA!
sounds like the preset of my dreams..

old mcdonalds has a farm
e, i, e, i, o!
Yathosho is offline   Reply With Quote
Old 1st November 2004, 13:01   #8
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
Quote:
Originally posted by Tuggummi
But a rotating scene with house(s), trees, fences, animals... NOW there is an IDEA!
sounds like the preset of my dreams..

http://www.dpent.ca/Images/17933.jpg

old mcdonalds had a farm
e, i, e, i, o!
and on his farm he.. ehm, wait a second
Yathosho is offline   Reply With Quote
Old 1st November 2004, 13:02   #9
^..^
Major Dude
 
^..^'s Avatar
 
Join Date: Sep 2004
Location: There
Posts: 1,002
Send a message via ICQ to ^..^
Well, sorry. I thought you wanted to fix it by changing the render mode somehow. (what doesn't fix it at all, i think).
But surely Tuggummi will find a solution.

^..^ is offline   Reply With Quote
Old 1st November 2004, 17:22   #10
PAK-9
Major Dude
 
PAK-9's Avatar
 
Join Date: Oct 2002
Location: The United Kingdom of Great Britain and Northern Ireland
Posts: 1,374
I havent looked at the preset cos I'm at uni but if you have essentially a rotating cube and you want to use replace mode you need to keep swapping the faces such that the last ssc/triangle render in your editor is always the front face. You also should optimise by not drawing the faces that are facing away from the camera

This typically involves taking the normal of the face and putting it through your rotation matrices, then testing the result against a value to determine if it is facing the camera or not....this is backface culling

To sort the faces you compare the 'final' z value of your faces (this will tell you what is further or nearer from the camera) and 'swap' them accordingly. Try a test with 2 faces, 2 opposing sides of a cube for example, use 2 seperate solid ssc's and swap the primary z value based on the final z values.

Thats such a terrible description of both those ideas

/me downloads preset to take home and fix

I'll just fix it and upload it later :P

http://PAK-9.deviantart.com

...innit
PAK-9 is offline   Reply With Quote
Old 1st November 2004, 17:25   #11
PAK-9
Major Dude
 
PAK-9's Avatar
 
Join Date: Oct 2002
Location: The United Kingdom of Great Britain and Northern Ireland
Posts: 1,374
And 127.0.0.1 is actually 'localhost' not 'home'. (Try start->run->cmd->ping localhost then start->run->cmd->ping home) so the title of your preset is "there's no place like localhost"...mmm catchy

http://PAK-9.deviantart.com

...innit
PAK-9 is offline   Reply With Quote
Old 1st November 2004, 17:46   #12
Warrior of the Light
Forum King
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,121
lol

I know it's localhost, I was just trying to make n00bs understand it too and to have some sort of funny preset

Thanks a lot (in advance) for fixing it. I know i understand pure math code better than english literature, since the names aren't even close to what we call it all in dutch.

I think I'll understand it better if I read your above post over for about 5 times or so..

Guess I'd better start reading and waiting now instead of speak (=write)

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever
Warrior of the Light is offline   Reply With Quote
Old 1st November 2004, 21:32   #13
Tuggummi
Bin King
 
Tuggummi's Avatar
 
Join Date: Mar 2001
Location: Finland
Posts: 2,179
Quote:
But surely Tuggummi will find a solution.
Uhm... i wonder why no one hasn't told you yet, but im really really crappy at technical stuff! I don't even know backface culling or how to use megabuf inniit

I just make stuff that i like... i don't care how it is done


Uhmm... and yeah, sorry for the offtopic, but i just wanted to correct that one.

Texer Resources

Im retarded... err i mean retired!
Probably both...
Tuggummi is offline   Reply With Quote
Old 1st November 2004, 22:04   #14
^..^
Major Dude
 
^..^'s Avatar
 
Join Date: Sep 2004
Location: There
Posts: 1,002
Send a message via ICQ to ^..^
If it's really so, then you can hide that fact pretty well. My "technical" skills aren't very good too, but my presets hardly ever look as nice as yours.

Sorry for offtopic too, but had to stop tuggummi from being overmodest (hope i got the right word..)

^..^ is offline   Reply With Quote
Old 2nd November 2004, 14:20   #15
PAK-9
Major Dude
 
PAK-9's Avatar
 
Join Date: Oct 2002
Location: The United Kingdom of Great Britain and Northern Ireland
Posts: 1,374
i wonder why no one hasn't told you yet, but I'm really good at doing technical stuff

Sorry for being undermodest (hope i got the right word..) but here's teh proof
Attached Files
File Type: zip wotl - no place like 127-0-0-1 (fixed).zip (3.2 KB, 163 views)

http://PAK-9.deviantart.com

...innit
PAK-9 is offline   Reply With Quote
Old 2nd November 2004, 14:22   #16
PAK-9
Major Dude
 
PAK-9's Avatar
 
Join Date: Oct 2002
Location: The United Kingdom of Great Britain and Northern Ireland
Posts: 1,374
The winamp.com AVS forums, a writhing sea of bad grammer, made up words and double negatives

http://PAK-9.deviantart.com

...innit
PAK-9 is offline   Reply With Quote
Old 2nd November 2004, 16:10   #17
Warrior of the Light
Forum King
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,121
Whoa! Thanks a lot for that! I'll spend the night studying this I suppose

you are the [insert made up word here]!!!

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever
Warrior of the Light is offline   Reply With Quote
Old 2nd November 2004, 18:04   #18
^..^
Major Dude
 
^..^'s Avatar
 
Join Date: Sep 2004
Location: There
Posts: 1,002
Send a message via ICQ to ^..^
Quote:
Originally posted by PAK-9
The winamp.com AVS forums, a writhing sea of bad grammer, made up words and double negatives
That's why those with poor english knowledges (like me ) don't fear to post here: It's not that obvious when the dusty school-english fails.

Like a vicious circle: The linguistic level decreases what lures more comments in poor english.
Damn, there's no way out...

^..^ is offline   Reply With Quote
Old 2nd November 2004, 21:49   #19
PAK-9
Major Dude
 
PAK-9's Avatar
 
Join Date: Oct 2002
Location: The United Kingdom of Great Britain and Northern Ireland
Posts: 1,374
Quote:
Originally posted by ^..^
That's why those with poor english knowledges (like me ) don't fear to post here: It's not that obvious when the dusty school-english fails.
As if to perfectly illustrate your point I have absolutely no idea what your saying.

The easiest way to make your posts easier to read is to remove the double negatives, for example

won't not = will
no one hasn't = everyone has

Also lots of non-native english posters seem to like adding unnecessary preamble to their text like "I just want to say that in this case it is..." or "If I may just say so with regards to this particular subject.."

I wont labour the point though, I'm sure its hard when english isnt your first language. Heck I'm sure your english is better than my finnish/dutch/estonian/latin/whateverthehellelse

http://PAK-9.deviantart.com

...innit
PAK-9 is offline   Reply With Quote
Old 2nd November 2004, 21:56   #20
Tuggummi
Bin King
 
Tuggummi's Avatar
 
Join Date: Mar 2001
Location: Finland
Posts: 2,179
Naah, i think your finnish is way better than mine PAK-9.

vittu

Texer Resources

Im retarded... err i mean retired!
Probably both...
Tuggummi is offline   Reply With Quote
Old 2nd November 2004, 22:06   #21
PAK-9
Major Dude
 
PAK-9's Avatar
 
Join Date: Oct 2002
Location: The United Kingdom of Great Britain and Northern Ireland
Posts: 1,374
yea pituu vippii bloobly wooby skii pae boob

http://PAK-9.deviantart.com

...innit
PAK-9 is offline   Reply With Quote
Old 3rd November 2004, 09:19   #22
Doggy Dog
Canis Sapiens
(Reviewer)
 
Doggy Dog's Avatar
 
Join Date: Apr 2001
Location: Split, Croatia
Posts: 1,832
Send a message via ICQ to Doggy Dog
Yeah pak, but horses usually don't have five legs...
Doggy Dog is offline   Reply With Quote
Old 3rd November 2004, 16:43   #23
^..^
Major Dude
 
^..^'s Avatar
 
Join Date: Sep 2004
Location: There
Posts: 1,002
Send a message via ICQ to ^..^
Quote:
Originally posted by PAK-9
As if to perfectly illustrate your point I have absolutely no idea what your saying.
well, it wasn't supposed to be understood, i think

Quote:
Originally posted by PAK-9
The easiest way to make your posts easier to read is to remove the double negatives, for example
Don't blame me for that! My formulations may be ugly, but tuggumi was the one with those confusing double negatives. It's said: credit where credit is due

^..^ is offline   Reply With Quote
Old 3rd November 2004, 18:09   #24
PAK-9
Major Dude
 
PAK-9's Avatar
 
Join Date: Oct 2002
Location: The United Kingdom of Great Britain and Northern Ireland
Posts: 1,374
Quote:
Originally posted by ^..^
...My formulations may be ugly...
ugly formulations aside, your English is still terrible.

Okay enough offtopic formulations please

http://PAK-9.deviantart.com

...innit
PAK-9 is offline   Reply With Quote
Old 3rd November 2004, 21:01   #25
^..^
Major Dude
 
^..^'s Avatar
 
Join Date: Sep 2004
Location: There
Posts: 1,002
Send a message via ICQ to ^..^
Quote:
Originally posted by PAK-9
ugly formulations aside, your English is still terrible.
Everybody feel free to correct my mistakes (at least the major ones)!
I surely never don't want you to have no headache when reading my posts.

And now let's leave it at that...

PS: Sorry W.O.T.L. for holding this linguistic discussions in your thread...

^..^ is offline   Reply With Quote
Old 4th November 2004, 07:52   #26
Warrior of the Light
Forum King
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,121
To close the offtopic topic, let's conclude it with this:

Just as in AVS, we all do our what we can to try and learn to improve.

//below is back on topic

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever
Warrior of the Light is offline   Reply With Quote
Old 4th November 2004, 16:09   #27
PAK-9
Major Dude
 
PAK-9's Avatar
 
Join Date: Oct 2002
Location: The United Kingdom of Great Britain and Northern Ireland
Posts: 1,374
I never mentioned it before but what are these exciting '3D colours' you refer to at the top of this thread and in the title.

http://PAK-9.deviantart.com

...innit
PAK-9 is offline   Reply With Quote
Old 4th November 2004, 16:24   #28
Warrior of the Light
Forum King
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,121
In maxblend mode, I usually made all scopes with the same colorintensity, i.e. r+g+b= (some constant value) and then tweaked the proportions of r,g and b. If you multiply that with the distance (z), you have some backface culling hack that uses colors only.

r2d2 in pp2 was done this way

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever
Warrior of the Light is offline   Reply With Quote
Old 4th November 2004, 21:58   #29
PAK-9
Major Dude
 
PAK-9's Avatar
 
Join Date: Oct 2002
Location: The United Kingdom of Great Britain and Northern Ireland
Posts: 1,374
nothing exciting then (its an occlusion hack btw not a bf culling hack). Hopefully you've learnt the error of your colour coding ways from my fixed version.

http://PAK-9.deviantart.com

...innit
PAK-9 is offline   Reply With Quote
Old 5th November 2004, 06:17   #30
Warrior of the Light
Forum King
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,121
yes I have.

(I guess then that's how far my english reaches )

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever
Warrior of the Light is offline   Reply With Quote
Old 24th January 2005, 16:21   #31
amphirion
Junior Member
 
amphirion's Avatar
 
Join Date: Mar 2004
Location: earth
Posts: 5
since this is around my problem area, i hope someone can help me out:
i was fiddling with the megabuff again and i made something really cool. however, there are some ugly lines that connect the squares together. i don't have enough color manipulation skills to cull off these lines so if some math genius figured it out for me, that'd be great.
preset is here:
http://www.deviantart.com/deviation/14291423/

thanks
amphirion is offline   Reply With Quote
Old 24th January 2005, 17:29   #32
PAK-9
Major Dude
 
PAK-9's Avatar
 
Join Date: Oct 2002
Location: The United Kingdom of Great Britain and Northern Ireland
Posts: 1,374
I took a brief look at it ampy but I think you need to re-code the structure a little bit. You would be better defining a square, then repeating that square with whatever offsets you want....

point=if(equal(point,4),0,point+1);
x1=<define square>+megabuf(index)
y1=<define square>+megabuf(index+1);
z1=<define square>+megabuf(index+2);
index=index+bnot(point);
skip=bnot(point);

define a square using equal(point,0)*bleh+equal(point,1)*blehbler etc..

so you are starting a new square when point=0, and skipping drawing that line. I dont have your code in front of me but i think you used trig to define your squares which is not a good way (expensive)

If anyone can be bothered to explain that better feel free :P

http://PAK-9.deviantart.com

...innit
PAK-9 is offline   Reply With Quote
Old 24th January 2005, 23:40   #33
amphirion
Junior Member
 
amphirion's Avatar
 
Join Date: Mar 2004
Location: earth
Posts: 5
just need to make sure, because i never really dealt with equal/above/below functions very much, so what the equal(point,0) , equal (point,1) means is that you are telling the scope to draw a line from 0 to 1 so i would need a total of four lines to define a square right?
amphirion is offline   Reply With Quote
Old 25th January 2005, 10:34   #34
Mr_Nudge
Major Dude
 
Mr_Nudge's Avatar
 
Join Date: Apr 2004
Location: melbourne, australia
Posts: 655
@ WotL, you'd want to talk to unconed about scope swapping, just take at his preset goldie.

Life's a game, break the rules
Click here
Mr_Nudge is offline   Reply With Quote
Old 26th January 2005, 13:33   #35
PAK-9
Major Dude
 
PAK-9's Avatar
 
Join Date: Oct 2002
Location: The United Kingdom of Great Britain and Northern Ireland
Posts: 1,374
Well, yes you need four lines but thats five points per square because the last point and first point have to be the same to make it join up. My pseudocode should probably be point=if(equal(point,5),0,point+1); I rushed it off just to give you an idea of the structure.

You can search the forums for a point to point square drawing method but I'll knock one out here quickly:

frame:
n=5;
point=0;
point:
x1=
equal(point,0)*-1
+equal(point,1)*1
+equal(point,2)*1
+equal(point,3)*-1;
y1=
equal(point,0)*-1
equal(point,1)*-1
equal(point,2)*1
+equal(point,3)*1;
z1=0;
point=point+1;
....

if you want it to be a long line of squares you can say

frame:
n=50;
point=0;
offset=-1;
point:
x1=
equal(point,0)*-1
+equal(point,1)*1
+equal(point,2)*1
+equal(point,3)*-1;
y1=
equal(point,0)*-1
equal(point,1)*-1
equal(point,2)*1
+equal(point,3)*1;
point=if(equal(point,4),0,point+1);
offset=offset+bnot(point)*0.1;
z1=offset;
skip=bnot(point);
....

that way 'point' defines the point of the square you are drawing, and when it hits 0 you offset in the z axis a little bit and draw another square. You get rid of the lines by setting skip to 1 when point = 0. I dont know if that code works as is, I'm not in front of AVS but its basically right.

You should get my programming guide if you want learn how to do more 'advanced' stuff like this

http://PAK-9.deviantart.com

...innit
PAK-9 is offline   Reply With Quote
Old 26th January 2005, 21:51   #36
amphirion
Junior Member
 
amphirion's Avatar
 
Join Date: Mar 2004
Location: earth
Posts: 5
you know what? i think i wil
amphirion is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Visualizations > AVS > AVS Presets

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

Forum Jump