Ask a Question related to Macromedia Director 3D, Design and Development.
-
frank #1
Camera control become inverse :(
Hi there!
I would like to use camera motion to interact with my 3D model instead of
using drag Model fonction.
My script work just fine but it steal a problem when the model is rotating
180 degrees the manipulation become inverse :(
That is possible to fix this?
there is my full script for camera control:
property ax,ay,az
property mh,mv
on exitframe
-- record the world position of model "smallbox"(small box) into variable
"polePos"
polePos = vector (0, -2, 0 )
--
if the mousedown=true then
if mh<> the mouseh then
-- rotate camera number 1 (default camera) following y axis
(vector(0,1,0)
-- the centre point is on small box/"smallbox" (polePos)
-- rotate this much (mh-the mouseh)
member("3D").camera[1].rotate(polePos, vector(0,1,0), (mh-the mouseh),
#world)
--
mh = the mouseh
end if
if mv<> the mousev then
-- rotate camera number 1 (default camera) following y axis
(vector(0,1,0)
-- the centre point is on small box/"smallbox" (polePos)
-- rotate this much (mh-the mouseh)
member("3D").camera[1].rotate(polePos, vector(1,0,0), (mv-the mousev),
#world)
--
mv = the mousev
end if
else
mh=the mouseh
mv=the mousev
end if
end
frank Guest
-
3D character camera control
Hi, Just had a quick look and don't think this question has been answered before. I'm trying to get my camera to follow a character so the camera... -
Camera control
:camera; How can I get the camera to move to the left or right (or vertically up & down for that matter) while pointing straight ahead,all the... -
Is there an inverse of ParagraphFormat
Hi, I'm trying to build a forum and want to allow users to edit their message boxes (textarea boxes). I use the ParagraphFormat whenever I... -
Control of web camera
Hello, I'm trying to find out if it is possible to open up the sofware for a web cam take a picture and use it in my director movie. Basically... -
Trouble with Matrix::inverse
I decided to use Ruby to write a simple program to help my daughter with her math homework, which involves solving systems of linear equations... -
Karl Sigiscar #2
Re: Camera control become inverse :(
With your code as it is, you could add a test updating a boolean, e.g
pIsGoingNorthward, to know whether you are going northward (e.g between -90
and 90° on the X axis) or not.
E.g, when you go northward, you update the position with a positive offset,
otherwise, you update the position with a negative offset.
Karl Sigiscar Guest



Reply With Quote

