POV-Ray : Newsgroups : povray.binaries.animations : Playing with matrix transforms : Re: Playing with matrix transforms Server Time
21 Jan 2025 20:25:36 EST (-0500)
  Re: Playing with matrix transforms  
From: Bald Eagle
Date: 21 Jan 2025 06:40:00
Message: <web.678f878a28e999341f9dae3025979125@news.povray.org>
"Easiest" and fastest thing to do is stop speculating and crank out some
numbers.

Have one shear matrix and another and apply them individually to a VECTOR, and
spit out the result to #debug with vstr.

Then have POV-Ray sequentially apply the matrices and spit out the result.

Apply your matrix transforms to a "matrix" by matrix transforming your basic
vectors x-hat, y-hat, and z-hat and stack the transform output in the #debug
stream to see what matrix you're actually applying in both individual cases and
your compound matrix transform case.

You can use the result vectors to plot spheres in a scene.
Match them up with the corners of the checkerboard pattern.

If anything is mis-matched, it's probably not POV-Ray, but some matrix
construction error.

Run all of the calculations with POV-Ray matrix transforms and vectors to check
and verify your calculations in the above post.

- BW


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.