|
|
|
|
#1 |
|
Senior Member
Join Date: Aug 2002
Location: right around the corner
Posts: 223
|
my first raytrace preset :)
I posted this yesterday but it seems I didnt put it in the right place
. So I post it here again. I changed the name of the preset, everithing else is he same.
I hate signatures!! *bangs his head on the keyboard in hope of getting an idea* Ufihreevf43n98pevfr |
|
|
|
|
|
#2 |
|
Whacked Moderator
Join Date: Jun 2001
Posts: 2,104
|
Haha this effect rules!
Though I would remove the front wall and let the ceiling/floor continue because it looks a bit weird when the light shines at the wall in front of the camera. If I were you I'd add some more patterns to the light (like non-square ones by blacking out some rays) and add a few more spheres floating around. The first time it crossed the beams I thought it was a bug. Or make the sphere larger. It looks pretty awesome when you add alternating high radius/low radius blurs w/ convolution to equalize the dots (see here) By the way, is there any reason why the camera is not moving? If you're raytracing, what is keeping you from having the camera move around? Some optimization tricks... replace: Det=-sqr(vb)+4*va*vc; k51=(-vb+sqrt(Det))/(2*va); k52=(-vb-sqrt(Det))/(2*va); ... ....if(below(Det,0), ... with: Det=-sqr(vb)+4*va*vc; alpha=below(Det,0);Det=sqrt(Det); va=.5/va; k51=(-vb+Det)*va; k52=(-vb-Det)*va; ... ...if(alpha, (sqrt is a slow operation) Oh and 'sqr(.5)' can be replaced by a constant too . I'm not sure why dz=1.3/15 would be faster, but I think it's because of random fluctuations. Remember that depending on the position of the camera, AVS has to draw more and longer lines, so the speed can vary a lot during the preset. I think you got the wrong impression because of this.Also, I think it wouldn't be very noticable if you didn't raytrace the sphere in the volumetric beams scope, and it would be slightly faster. Oh and you need to make it so it is already moving at the beginning... a common mistake which makes the preset weirder on slow songs .Now of course for the ultimate effect, you need to add a discoball on the ceiling that reflects the rays correctly... just kidding (though reflections aren't *that* difficult actually), this is an awesome effect!
Last edited by UnConeD; 18th March 2003 at 13:17. |
|
|
|
|
|
#3 |
|
Major Dude
Join Date: Jan 2003
Location: Estonia.
Posts: 851
|
Really neato effecto... this is really good.
Phi = (1+sqrt(5))/2 |
|
|
|
|
|
#4 |
|
Forum King
Join Date: Dec 2002
Location: Manchester
Posts: 6,470
|
wow, sweet effect, now that is nice. love that realistic shine when the projector thing points towards you. really nice job
|
|
|
|
|
|
#5 |
|
Whacked Moderator
Join Date: Jun 2001
Posts: 2,104
|
By the way, any reason you're using:
k5=if(below(min(k51,k52),0),max(k51,k52),min(k51,k52));; and not k5 = k52 and thus k5 = (-vb-sqrt(Det))/(2*va) ? Because of the way you calculate the quadratic equation (va always positive), -vb-sqrt(Det) will always be the positive intersection closest to the camera as far as I know, so you don't need to check for that explicitly. |
|
|
|
|
|
#6 |
|
Whacked Moderator
Join Date: Jun 2001
Posts: 2,104
|
And finally, if you replace:
dx1=(3+ox)/(dx3); dx1=if(below(dx1,0),-dx1,(3-ox)/(dx3)); with dx1=(3/pp+ox)/(dx3); dx1=if(below(dx1,0),-dx1,(3/pp-ox)/(dx3)); Then your box won't have black edges on the sides, but the rotation will not look squashed .You seem to have missed a lot of common optimizations though. Don't divide by a constant, always multiply by its inverse (instead of x/2, use x*.5). Also instead of: x=dx/(1+(dz+8)/3)*pp; y=dy/(1+(dz+8)/3); use: dz=1/(3.6666+dz*.3333); x=dx*pp*dz;y=dy*dz; Multiplications are a lot faster than divisions, and doing a calculation once instead of twice is faster too. |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Aug 2002
Location: right around the corner
Posts: 223
|
There two reasons for me not using all the improvements that you pointed out. The first is me not knowing enough about programing and math
,and the second one is the preset is not realy finnshed yet,I usualy edit the presets before the finnal publish in a pack and thats when I get rid of the devideing by the constants thing). I said this before and I'll say it again, I really had no programing experience before AVS, I got my comuter 3 years ago and started playing with avs about two years ago. At the time I couldnt even understand the examples in the SSC . I'm slowly geting there and Im loveing it. Thanks for pointing them out I REALLY apreciate it, I'll aplly all of them before the finnal realease and when codeing in the future .
I hate signatures!! *bangs his head on the keyboard in hope of getting an idea* Ufihreevf43n98pevfr |
|
|
|
|
|
#8 |
|
Forum King
|
Wow...wow. The camera should move (the central one as well as the user's), and there should be more balls...and the balls should be translucent, as well as the walls.....
...but dayamn... "guilt is the cause of more disauders than history's most obscene marorders" --E. E. Cummings |
|
|
|
|
|
#9 |
|
Forum King
|
That is a nice preset. I agree that it does need more balls.
|
|
|
|
|
|
#10 |
|
Forum King
|
haha...your preset doesn't have enough balls
...nevermind "guilt is the cause of more disauders than history's most obscene marorders" --E. E. Cummings |
|
|
|
|
|
#11 |
|
Major Dude
|
damn you are sick...fsk good preset,a bit too dynamic but nice
|
|
|
|
|
|
#12 |
|
Major Dude
Join Date: Feb 2003
Location: Somewhere in Canada
Posts: 776
|
Nice preset!
Darn, I can't think of anything to put here. |
|
|
|
|
|
#13 |
|
Senior Member
Join Date: Aug 2002
Location: USA
Posts: 158
|
Wow, that's an awesome effect, especially considering it's your first experience with raytracing. I'm gonna have to learn that stuff one of these days.
|
|
|
|
|
|
#14 |
|
Major Dude
|
Wowowowowow
The balls look like little lumps caused by coding mistakes to me though o_O [soon to leave, sirs] |
|
|
|
|
|
#15 |
|
Forum King
|
btw...those balls should bounce off the walls, and you shouldn't be able to see through them - esp. when the light shines on them from behind.
"guilt is the cause of more disauders than history's most obscene marorders" --E. E. Cummings |
|
|
|
|
|
#16 |
|
Major Dude
Join Date: Jan 2003
Location: Mumbai, India
Posts: 787
|
what i want to say is already said.....by so many people.
*sigh (why cant I be on the net at the right time ) * http://home.iitb.ac*****~shreyaspotnis |
|
|
|
|
|
#17 |
|
Bin King
Join Date: Mar 2001
Location: Finland
Posts: 2,179
|
When i heard the word "raytracing" i was in the impression that it was a dm
![]() Oh well, nice work. Tech freaks are in heaven i assume, but i didn't get that much out of it... |
|
|
|
|
|
#18 |
|
Forum King
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,121
|
[just what shreyas_potnis said]
Dude, this is really original... Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever |
|
|
|
|
|
#19 |
|
Senior Member
Join Date: Aug 2002
Location: right around the corner
Posts: 223
|
Thats funny Atero
.Tugg This is not really far away from a dm, actually its the same code just squezzed between a SSC grid and another projection, its like looking at a 3dDM from outside and at the end where the mapping usualy comes you calculate color valeues. You could easyly simulate a lamp and use the rays coordinates to calculate the texture(that would be static on the walls).I tried different stuff but this one had the best idea behind it . You can make cool objects this way to.More balls and cool stuf = les FPS:P I hate signatures!! *bangs his head on the keyboard in hope of getting an idea* Ufihreevf43n98pevfr |
|
|
|
|
|
#20 |
|
Forum King
|
That's fine. The FPS can still drop a little. Add 2 more balls or something.
|
|
|
|
|
|
#21 |
|
Wildly Confused
(Major Dude) Join Date: Jan 2003
Location: Minnesota
Posts: 1,204
|
Cool
Raytracing has to be one of the hardest things to do with AVS, but you pulled it off! BTW: your avatar rules
"It's like saying give a man a Les Paul guitar and he becomes Eric Clapton, and of course that's not true, give a man an amplifier and a synthesizer and he doesn't become...whoever; he doesn't become us." - Roger Waters |
|
|
|
|
|
#22 |
|
Member
|
that is so awesome
![]() at first, i couldnt tell what the hell it was doing, but after i watched it for a little... it was so incredible ![]() very very excellent job ^_^ |
|
|
|
|
|
#23 |
|
Member
Join Date: Feb 2003
Location: Ozshtrayleeuh
Posts: 98
|
wowzaaz..
this is about as cool a ssc as i have ever seen. even the pattern on the dot grid is insane.. fsk-the ideas man.. |
|
|
|
|
|
#24 |
|
Member
Join Date: Feb 2003
Location: Ozshtrayleeuh
Posts: 98
|
sorry for double posting, but its to late to edit..
Youre code is very nice fsk. Very user friendly.. i cant find anything wrong with it that ucd hasnt pointed out.. though there are lots of optimisation thingys.. there is no reason why the volumetric beams should be that complex.. i tryed to add more spheres, but i hit the var limit. heres a version with a solid sphere.. its not optimised yet though.. so its even slower than the orig. cant wait till you next pack man.. it will be something special.. can we have another zvezda-ish scope perhaps?? i love that preset. |
|
|
|
|
|
#25 |
|
Senior Member
|
holy crap, that is stunning. Too bad the FPS are so low its not even worth using as a visualization. but keep working on it. only good things can happen.
|
|
|
|
|
|
#26 |
|
Senior Member
|
I take that back. FPS are kinda low, but not too bad. keep working on this one.
|
|
|
|
|
|
#28 |
|
Member
Join Date: Feb 2003
Location: Ozshtrayleeuh
Posts: 98
|
this sort of wuestion always seems to piss people of on this board, but here goes:
where can i find the rest of your packs fsk? i have pdm3. i have searched the forums and the wa3 site. |
|
|
|
|
|
#29 |
|
Forum King
|
Try using deviantart I got pickin dim 2 from there. winamp.com is pretty weak for AVS because it is flooded with noob packs and because the serious artists tend only to release their major releases there.
Take a look at all of the artists that you like there, you will probably find a lot of amazing AVS presets that you won't see anywhere else. For instance... on winamp.com I haven't published anything since J7, yet at deviantart I have about 7 or 8 newer presets. Also if you are serious about AVS you should get an account there because you will get *real* feedback (a decent amount of useful comments) from actual AVS artists there. Also you will get to see the AVS packs first, usually before they turn up on winamp.com |
|
|
|
|
|
#30 |
|
Member
Join Date: Feb 2003
Location: Ozshtrayleeuh
Posts: 98
|
hm.. i used to have an account there when i was into pixel art..
im actually looking at your page at deviant now jheriko. |
|
|
|
|
|
#31 |
|
Forum King
|
Its always good to look at my page.
![]() Its better to download my presets. ![]() (NOTE: A dominating factor in my personality is self-plugging, I need publicity god dammit!) |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|