#TSE SXP
3 messages in this thread
Martin, I think the last message I sent you got lost so if you have read this
please disregard this. I am tryng to determine if I can get World coordinates,
or translate object coordinates to world in sxp extensions using SXPX, SXPY,
and SXPZ? Any help would be appreciated.
Thank You, Kevin
Kevin:
>> I am tryng to determine if I can get World coordinates, or translate
object coordinates to world in sxp extensions using SXPX, SXPY, and SXPZ? Any
help would be appreciated. <<
Unfortunately, SXPs are highly isolated entities in 3D Studio (it's irritating,
but that's just the way IPAS is set up). The only way I know how to do what you
have in mind is to *transform* the coordinates sent the SXP with the
transformation matrix of the object being referenced. For an explanation of
transformation matrices, I recommend Alan Watt's "3D Computer Graphics"
(Addison Wesley #63186). Jonas Ruikis knows a fair amount about
transformations, and he would probably be happy to refer you to specific script
examples here on the forum.
Once you understand transformation matrices, you'll have to devise a way of
getting the transformation information to the SXP script (again, the SXP has no
access to scene information, so you have to spoon feed it). I suggest you check
out SXPBALL.S3D and SXPBALL.P3D, which are on your TSE shipping disk: they
demonstrate embedding relevant scene information from a PXP for later access by
an SXP script.
Hope this helps.
Martin
Martin, Thanks for the info. I guess I need to re think how to attack this
problem. That make it a little morre difficult than it should be.
Kevin