realbasic-betas.mbox
[Top] [All Lists]

Re: Vector3D ops on nil objects

To: REALbasic Betas <realbasic-betas at lists dot realsoftware dot com>
Subject: Re: Vector3D ops on nil objects
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Sun, 28 Jul 2002 12:17:50 -0700
At 3:04 PM +1000 7/28/02, Nick Dabner wrote:

Have been utilising the Vector3D function lately and have encounted a few
crashes that brought to my attention that nil vector3D objects can be used
in vector calculations (eg: plus,minus) without any compiler complaints.

You mean, you can pass nil in to a method that expects a Vector3D? This is true; the methods check for nil before doing whatever they do.

I would have expected an alert to be raised. Any reason why this is not the case?

Not really.  You're right, that does make some sense.

Debugging little problems is still hampered by the inability to use self in
the variables list without causing an IDE or machine crash.

I haven't heard of this one before.  Have you reported it with REALbugs?

On a side note, changing a vectors x component into a string to see for
debugging results in something similar to -NAM(042) instead of a double.
Does this have something to do with RB's internal representation?

Nope. That probably means that the x component of the vector you're working with really is Not A Number (NAN).

Would it be possible (or sensible) to subclass a camera to group(OO) camera
related functions? How would I go about this?

No, I don't believe you can assign to the Rb3DSpace.camera property... or maybe you can; it's really just a placeholder whose position and orientation is used to control the view camera.

Also, 4.5 is great for 3D. Think it looks after everything on my wish list.

Cool.

Well done Joe & RB. Perhaps to assist in 3D areas, RB could create a folder
on the ftp site for some basic 3dmf models for users to test with?

There should be a folder of them on both the 4.0 and 4.5 CDs. You can also find some at <http://www.turbosquid.com/>.

Cheers,
- Joe

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'


<Prev in Thread] Current Thread [Next in Thread>