Old 7th October 2003, 07:35   #1
skupers
Senior Member
 
skupers's Avatar
 
Join Date: Aug 2002
Location: the Netherlands
Posts: 207
Send a message via AIM to skupers
Question SSC Raytracing Preset (for AVS2.70pre3)

I usually don't like posting unfinished preset, but this time I have a problem that you guys might know how to solve.

If you load the preset, you'll see that the light sometimes goes in the box in the cube. I would like to see that fixed without removing the random movements of the box and the light. I tried to make the light stay on a cylinder around the box, when it comes to close, but that wouldn't work.
Attached Files
File Type: zip skupers - ssc raytracing demo.zip (2.0 KB, 126 views)
skupers is offline   Reply With Quote
Old 7th October 2003, 07:50   #2
UnConeD
Whacked Moderator
 
UnConeD's Avatar
 
Join Date: Jun 2001
Posts: 2,104
Could you give some more info on the vars? Doesn't make much sense to me now.

What are the coordinates of the light... of the box? How are they projected? Under what conditions is the light in the box?

Very nice effect btw. Very knipperlichtjes.

UnConeD is offline   Reply With Quote
Old 7th October 2003, 12:46   #3
Deamon
Major Dude
 
Deamon's Avatar
 
Join Date: Nov 2002
Location: Arnhem, the Netherlands
Posts: 927
I like it It indeed has great lighting effects, and indeed nogal knipperlichtjes

.:HyperNation @ winamp:. .:DeviantArt:.
Thermal is now available for download at DeviantArt.
Deamon is offline   Reply With Quote
Old 7th October 2003, 14:25   #4
skupers
Senior Member
 
skupers's Avatar
 
Join Date: Aug 2002
Location: the Netherlands
Posts: 207
Send a message via AIM to skupers
I tried to make a list of the used vars.

---
In frame:

ox, oy, oz: the coördinates of the light
xm, ym: coördinates of the moving box
rx, ry, rz: the rotation angles, these are made from ox, oy, oz. This isn't really necessary for the ssc, but it was in the dynmov that the code was written in at first.
rs: the rotation around the y-axis after raytracing is done.
cs: zooming in on the cube for a bit more dynamic action.
---

In pixel:
----
r1, r2: the theta and phi for a orb.
x1, y1, z1: the coördinates of the orb

Then there's the 3d rotation code.

k1, k2, k3, k4: the k of the sides of the moving box
k5 to k10: the k of the sides of the cube

kx, ky, kz: these are the lowest values of the planes parrallel to either the x, y or z axis. These values were aren't really necessary, but they clean up the code a bit. I'm thinking of using them in the colorcoding.
k: the lowest value of kx, ky and kz.
ix, iy, iz: you could actually use these values already to make the ssc, but I wanted rotation, which will be done next.

xx, zz: the ix, iy and iz are rotated around the y-axis, to make the cube moving, instead of what you see in most raytraced ssc presets.

And then you have the projection code.
---

The light is in the box, when (0.5+ox+xm)<ox<(-0.5+ox+xm) and (0.5+oy+ym)<oy<(-0.5+oy+ym).
skupers is offline   Reply With Quote
Old 8th October 2003, 21:27   #5
Pixelcraft
Wildly Confused
(Major Dude)
 
Pixelcraft's Avatar
 
Join Date: Jan 2003
Location: Minnesota
Posts: 1,204
Quote:
Originally posted by UnConeD
What are the coordinates of the light... of the box? How are they projected? Under what conditions is the light in the box?
Heh, you sound like my geometry teacher

Neat effects skupers - unfortunately this kind of stuff is way over my head....

"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
Pixelcraft 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