Go Back   Winamp Forums > Visualizations > AVS

Reply
Thread Tools Search this Thread Display Modes
Old 5th December 2004, 17:43   #1
viskey
Junior Member
 
viskey's Avatar
 
Join Date: Sep 2003
Location: Germany
Posts: 11
problem with ssc

i tried to make a nice 3d ssc with the megabuf-thing. that works so far. but when the scope gets larger (you'll see what i mean when you download the attached file) it sometimes gets behind the camera. then those ugly lines appear. i have tried different things to get rid of them but none of them worked. i hope someone can help.
Attached Files
File Type: zip building_scope_test.zip (895 Bytes, 76 views)
viskey is offline   Reply With Quote
Old 5th December 2004, 20:05   #2
hboy
Senior Member
 
hboy's Avatar
 
Join Date: Dec 2003
Location: Hungary
Posts: 217
Send a message via AIM to hboy
some veeeeery familiar code here . i had also an idea to do a version like this, but I liked my original version more. actually i get no lines you described, but I see no line skipping in the last scope, so maybe that is your problem.
hboy is offline   Reply With Quote
Old 5th December 2004, 21:35   #3
viskey
Junior Member
 
viskey's Avatar
 
Join Date: Sep 2003
Location: Germany
Posts: 11
yes i tried the method you used in your new pack (i try different things for more than a week now so i look in every preset in wich a ssc moves behind the camera ). i have seen now that i used it wrong :P . now i modyfied it so it should work now but it doesn't. so i have to go on trying different things .... or anyone can help me
viskey is offline   Reply With Quote
Old 6th December 2004, 00:52   #4
S-uper_T-oast
Forum King
 
S-uper_T-oast's Avatar
 
Join Date: May 2003
Location: Fnord?!
Posts: 2,653
You are right in useing skip, the hard part is figuring out at what point you need to skip. You have to remeber you need to skip both positive and negative z values. (abs value)
I don't remeber were the cutoff is, but it's something like that.
S-uper_T-oast is offline   Reply With Quote
Old 6th December 2004, 01:25   #5
TomyLobo
Major Dude
 
TomyLobo's Avatar
 
Join Date: Feb 2004
Location: Germany
Posts: 578
nice scope idea
about the skip... use a threshold that is a bit above 0.
it depends on the scale of your coordinates.
also, use this piece of code for skipping, so a line is skipped when either of its end points is behind the camera.
code:

nskip=above(zvalue,0.1234);
skip=nskip+lskip;
lskip=nskip;



btw, if your code becomes more complex and you need loops, ifs with code in them, do a lot of megabuf assignments or simply want to shorten your code, you might be interested in this APE

If you can't say something nice, say something surrealistic.
TomyLobo is offline   Reply With Quote
Old 6th December 2004, 09:59   #6
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
one of the problems is that a line can span 'from' behind the camera or 'to' behind the camera, you need to account for both cases. The skip if z is above a certain number method will still work, but only if your lines are pretty short. To be sure you can say skip if z>longest length a line will be

http://PAK-9.deviantart.com

...innit
PAK-9 is offline   Reply With Quote
Old 6th December 2004, 14:25   #7
TomyLobo
Major Dude
 
TomyLobo's Avatar
 
Join Date: Feb 2004
Location: Germany
Posts: 578
that's exactly what my piece of code takes care of, pak

If you can't say something nice, say something surrealistic.
TomyLobo is offline   Reply With Quote
Old 6th December 2004, 16:41   #8
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 get bored quickly, I usually only read the first couple of posts before I blurt out a reply

http://PAK-9.deviantart.com

...innit
PAK-9 is offline   Reply With Quote
Old 6th December 2004, 18:43   #9
viskey
Junior Member
 
viskey's Avatar
 
Join Date: Sep 2003
Location: Germany
Posts: 11
thanks for all the replies. havn't tried it yet but i will do that later.
viskey is offline   Reply With Quote
Reply
Go Back   Winamp 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