Ask a Question related to Macromedia Director 3D, Design and Development.
-
Roofy #1
What is the maxium number a vector can handle
Hi,
Well since I have not recieved any replies as of yet to my other question, and
since I need to push my project along, I decided to use the behaviour scripts
given at director-online/havok site, and I applied them to my car. In
additioin, I am also trying to use the create terrain behaviour that is
included in the raycast jeep demo. However, I would like to set my terrain size
to 6000 units in width and 6000 units in depth. So when I attach the behaviour
to the 3d scene, the getPropertyDescriptionList dialog window opens to allow
you to set the terrain's size, which it asks you to set the upper left corner
vector which I set it to vector(3000, 0, -3000) and then it asks you to set the
lower right coner vector which I set this to vector(-3000, 0, 3000) which in
total should give me the size of 6000 units in width and 6000 units in depth.
However, after I click on the "OK" button my values change to the following...
upper left corner = vector(3.00000e3, 0, -3.00000e3)
lower right corner = vector(-3.00000e3, 0, 3.00000e3)
In addition, not only that the whole number changed from 3000 to 3, but the
biggest problem is that because the end values have the e3 added to it I get a
script error when I play the movie. So I was wondering if there is a maximum
number that a vector unit can handle? If so then is there another type of
format I could use that handle larger numbers? Or is this a bug in Director
8.51. Yeah I know, I am way behind in the software versions, but I do not have
$1200 to shovle out for a new version of Director.
Roofy Guest
-
#40501 [NEW]: fgetcsv can't handle trailing odd number of backslashes
From: mike at opendns dot com Operating system: Linux, debian sarge PHP version: 5.2.1 PHP Bug Type: Filesystem function... -
#39538 [NEW]: fgetcsv can't handle starting newlines and trailing odd number of backslashes
From: mike at opendns dot com Operating system: Linux, debian sarge PHP version: 5.2.0 PHP Bug Type: *Directory/Filesystem... -
how the vector is created, how to pass vector to webservices method apachesoap:Vector
Below is input parameter of my Web Services method vectorTest - <wsdl:message name="vectorTestRequest"> <wsdl:part name="userName"... -
sort from the smallest number to the highest number
Hi Just say I want to sort the row by using the fifth column data as reference from the smallest the largest number, if using sort, It will give... -
is there a maxium of behaviours
iam completing a director piece but for some reason it wont let me put anymore behaviours in place. does anyone no if there is a set amount of... -
ensamblador #2
Re: What is the maxium number a vector can handle
first of all, scientific notation:
3.00000e3=3.00000*power(10,3)=3.00000*1000=3000
simply write in the message window:
put 3e10 (press the carriage key now)
-- 30000000000.0000
another:
put vector(3.00000e3, 0, -3.00000e3)
-- vector( 3.00000e3, 0.0000, -3.00000e3 )
think that is another way to write the number (internally is the same number)
if there is a limit, it is not 3000. Sure. Find other sources for your script
error.
ensamblador Guest
-
Roofy #3
Re: What is the maxium number a vector can handle
Oh I see. So I guess what you are saying is that is Director's way of
compressing vector numbers. Also, as to what you were saying about the number
3000 is sure not the limit for vector units, I think I was just jumping the gun
considering that I only glanced at the script error, and then clicked on the
debug button to see where the error happened. Then once I looked at the
varibles in the varible window, I saw these weird numbers with the e3 at the
end of them, and I just thought that it could not add the vectors together with
the e3 at the end of each vector unit. However, to make a long story short, I
detached the script and reattached it which did no create the error again, and
I learned that Director can add vector units together that have an e3 at the
end of each vector unit. So thanks for clarifying what the e3 means.
Roofy Guest
-
ensamblador #4
Re: What is the maxium number a vector can handle
Actually, e3 means "exponent 3" or "multiplied by 10^3 (the third power of ten), it is a standard notation used by a lot of programming languages.
ensamblador Guest



Reply With Quote

