I’m doing some 3D modelling, and want to include a billboarded element in the model in question.
For the most part this seems to be working–it called for a few minor edits to YABEE, but nothing serious, I believe.
However, the resulting egg-geometry, while correctly billboarded, is not located in its intended position.
Here’s an illustration of the issue, using a pair of simple models–specifically, a cube surrounding a plane. The plane is billboarded, while the cube is not. Both are placed into the “fixed” bin, and their draw-orders set such that the plane should render first, if I’m not much mistaken. Furthermore, depth-writing is disabled on the plane.
In the first example, the two objects are located at (0, 0, 0); in this case, the result is as expected:
Blender:
PView:
In the second example, the objects have been moved upwards a little–and now the billboarded plane is offset beyond the cube, despite their being in the same place in Blender:
Blender:
PView:
And finally, here’s an egg-file that displays the issue, on my machine at least:
billboardTest.egg (5.2 KB)
Does anyone know why this is, and what might be done about it?
(Short of carefully offsetting the billboarded object to compensate, I suppose. I’m wary of doing so: not only is it untidy, it incurs the potential for the model to become incorrect should changes be made, and the result in Panda to become incorrect should this billboarding behaviour be changed.)
[edit]
It occurs to me that t he problem might be that the billboarded object is rotating around the origin. However, I would expect it to rotate around its local origin (so that billboarded objects work when placed elsewhere than the origin), and parenting it to the cube (thus giving it a local position of (0, 0, 0) doesn’t seem to fix the problem.