I am really enjoying Five3D, and I’m seriously considering using it in an important project coming up.
It’s a pretty new system though, and there are some little things about it that I think could do with a bit of ironing out. (I hope you read this Mathieu and add your comments!)
What I am trying to do is to create a random scattering of different types of objects in the 3D scene: some vector-based, some bitmap-based. The vector-based ones I am implementing using Sprite3D; the bitmap ones with the new (as of Five3D 2.1) class Bitmap3D.
Now, the problem is … these classes cannot be treated polymorphically. these classes have common properties, such as x, y and z, and rotationX, rotationY and rotationZ. I need to be able to manipulate them regardless of the exact class they are. But there is no common interface!
This is actually easy to fix - I have sketched up an interface and made Sprite3D and Bitmap3D implement it, on my local copy. However, I’m sure there are other other properties that I’m not using yet that could also be included .. and other classes than those two surely could implement it, not just Sprite3D and Bitmap3D. Mathieu, your thoughts would be much appreciated!



Recent Comments