hi,

what there already is for translation? If not, how hard would it be
to add something like (lock-camera-target (vector n n n)) so that
wherever the camera is, it's always pointed at that spot or object?
i think this should not be very difficult. as far as i know, lock-camera works by getting the global transformation matrix of the object, inverts it and multiplies the camera matrix with it.

3) Is there a quick way to translate the axis of rotation on a
primitive so that it does that orbit-effect instead of rotating in
place?
you can achive this by switching the order of translate and rotate. are you thinking about something like this?

(clear)

(define p (build-cube))

(every-frame
    (with-primitive p
        (identity)
        (rotate (vector 0 (* 90 (time)) 0))
        (translate #(3 0 0))))


gabor

Reply via email to