- AVS Presets
- 3d colors
Archive: 3d colors
Warrior of the Light
30th October 2004 16:11 UTC
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?
Tuggummi
31st October 2004 23:38 UTC
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! ;)
Warrior of the Light
1st November 2004 08:05 UTC
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.
Tuggummi
1st November 2004 10:39 UTC
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 :igor:
Maybe i'll do that scene preset myself then :p
^..^
1st November 2004 11:39 UTC
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.
Warrior of the Light
1st November 2004 13:38 UTC
That's the problem indeed, that only covers my problem. An answer would be nicer :)
@ Tugg: go ahead
Yathosho
1st November 2004 14:00 UTC
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
1st November 2004 14:01 UTC
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.jpgold mcdonalds had a farm
e, i, e, i, o!
and on his farm he.. ehm, wait a second
^..^
1st November 2004 14:02 UTC
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. ;)
PAK-9
1st November 2004 18:22 UTC
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
PAK-9
1st November 2004 18:25 UTC
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
Warrior of the Light
1st November 2004 18:46 UTC
lol
I know it's localhost, I was just trying to make n00bs understand it too and to have some sort of funny preset :igor:
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)
Tuggummi
1st November 2004 22:32 UTC
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 :igor:
I just make stuff that i like... i don't care
how it is done :p
Uhmm... and yeah, sorry for the offtopic, but i just wanted to correct that one.
^..^
1st November 2004 23:04 UTC
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. :p
Sorry for offtopic too, but had to stop tuggummi from being overmodest (hope i got the right word..)
PAK-9
2nd November 2004 15:20 UTC
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
PAK-9
2nd November 2004 15:22 UTC
The winamp.com AVS forums, a writhing sea of bad grammer, made up words and double negatives
Warrior of the Light
2nd November 2004 17:10 UTC
Whoa! Thanks a lot for that! I'll spend the night studying this I suppose
you are the [insert made up word here]!!!
^..^
2nd November 2004 19:04 UTC
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 :p) 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... :weird:
PAK-9
2nd November 2004 22:49 UTC
Originally posted by ^..^
That's why those with poor english knowledges (like me :p) 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
Tuggummi
2nd November 2004 22:56 UTC
Naah, i think your finnish is way better than mine PAK-9.
vittu
PAK-9
2nd November 2004 23:06 UTC
yea pituu vippii bloobly wooby skii pae boob
Doggy Dog
3rd November 2004 10:19 UTC
Yeah pak, but horses usually don't have five legs...
^..^
3rd November 2004 17:43 UTC
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 :p
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 ;)
PAK-9
3rd November 2004 19:09 UTC
Originally posted by ^..^
...My formulations may be ugly...
ugly formulations aside, your English is still terrible.
Okay enough offtopic formulations please
^..^
3rd November 2004 22:01 UTC
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. :p
And now let's leave it at that...
PS: Sorry W.O.T.L. for holding this linguistic discussions in your thread... :)
Warrior of the Light
4th November 2004 08:52 UTC
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
PAK-9
4th November 2004 17:09 UTC
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.
Warrior of the Light
4th November 2004 17:24 UTC
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
PAK-9
4th November 2004 22:58 UTC
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.
Warrior of the Light
5th November 2004 07:17 UTC
yes I have.
(I guess then that's how far my english reaches :) )
amphirion
24th January 2005 17:21 UTC
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
PAK-9
24th January 2005 18:29 UTC
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
amphirion
25th January 2005 00:40 UTC
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?
Mr_Nudge
25th January 2005 11:34 UTC
@ WotL, you'd want to talk to unconed about scope swapping, just take at his preset goldie.
PAK-9
26th January 2005 14:33 UTC
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
amphirion
26th January 2005 22:51 UTC
you know what? i think i wil ;)