CompuServe Messages

#Hellppp! with Matrix

    22-Aug-95 11:18:36
Fm: David J. Marks 72172,1036
To: John McLeod 75662,1611
Before I answer, let me qualify this with a statement that I have not done IPAS programming, and my knowledge of the mathematics involved is limited, but rapidly catching up. I HAVE done some script programming so I CAN offer some ideas that may help… >> I need the world co-ordinate XYZ values (as in the ASC file). << The Script Extensions (TSE) offer a parameter that allows you to call the Bounding Box in either local or world coords. If the IPAS API doesn't allow that, you will have to use a combination of the local axis (in world coords) together with the transformation matrix to determine the BBox coords. >> 1. The rectange is not consistant in a X,Y,Z ratio << I believe the camera aspect ratio is determined by the render settings. Someone with more IPAS knowledge will have to fill you in with details on actual calculation of the camera cone… >> Is there a way for me to detect in which direction the camera is facing << In TSE a camera structure has separate coords for camera and target. It should be a fairly basic calculation between two points to determine the camera-target vector. >> …seez.ixp and we are finding color in the output file. Any ideas ? << If you need pure grey-scale, try turning off your gamma correction. I'm guessing here, but possibly the gamma correction curves are slightly shifting the colors. FWIW, the z-buffer is VERY easy to access via TSE (and I'm guessing IPAS as well). Given a z-buffer value, it is relatively easy to generate any color spectrum you prefer. It's all a matter of percentages and basic math. Hope this helps. – Dave