1. 3d function

Hello,
I'm still working on this perspective function:

function perspective (sequence thing, sequence eye)
    sequence t, i
    object d
    t=thing[X..Y]
    i=eye[X..Y]
    d = eye - thing
    d = sqrt((d[X] * d[X]) + (d[Y] * d[Y]) + (d[Z] * d[Z]))
    return t * t /d
end function

I've got it this far but it's still not quite right.
What am I doing wrong?

Sincerely,
Lewis Townsend

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu