Skip to content
Forum Archive

How you apply algebraic geometry in AVS?

5 posts

patipano#

How you apply algebraic geometry in AVS?

Did you set up the equations (Algebraic Geometry like Chmutov Surface, Tunnel) in your paper and then coding to AVS?
How did you do that 😕?
patipano#

This is the website that contains lots of awesome algebraic surfaces but i dont know how to apply it (In Dynamic Movement) 😢
Synth-C#
You can do raytracing in DM's, which allows you to graph the type of equations.
Read a tutorial or book on raytracing, that should theach you the basics.
If the equation has an analytic solution it's not that hard (check out my Lift-Off pack for some examples of raytraced sphere's and cylinders. Feel free to use anything, just give credit
where credit is due.) For the cooler surfaces, you'll need an approximate solver, take a look at UnConed's presets like VJ Chmutov for and example.
patipano#
What I did wrong about solving sphere? I got the distorted sphere or my knowledge (theory of raytracing) was wrong.


Pixel:
x1=x;y1=y*asp;z1=1;
y2=y1*xc-z1*xs;z2=y1*xs+z1*xc;
x2=z2*ys+x1*yc;z3=z2*yc-x1*ys;
x3=x2*zc-y2*zs;y3=y2*zc+x2*zs;

dx=x3;dy=y3;dz=z3;
a=sqr(dx)+sqr(dy)+sqr(dz);
b=2*(dx*ox+dy*oy+dz*oz);
c=sqr(ox)+sqr(oy)+sqr(oz)-3;
q=sqr(b)-4*a*c;

k=(-b+sqrt(q))/(2*a);
ix=ox+dx*k;iy=oy+dy*k;iz=oz+dz*k;
x=ix/(iz+2);
y=iy/(iz+2);