The egg-texture-cards program works fine and the resultant egg works fine in my program with two issues:
the Y-axis of the egg is backward. Employing lookAt(camera) on the node orients the Y-axis in exactly the wrong direction so that nothing is seen. I have corrected this with the following code:
The reason I want this is that I have observed that as this model is introduced repeatedly at different points in my overall program that the animation actually begins at different places in the total animation.
(1) egg-texture-cards creates a model that is designed to be facing the camera when you parent it to render2d. That is to say, it is oriented to face down the -y axis, instead of down the +y axis. This means that if you use card.lookAt(camera), it will turn its backside to face the camera.
But you probably really want to use card.doBillboardAxis(camera, 0) instead. This is very like lookAt(), but it rotates the -y axis to face the indicated node.
(2) The manual is a bit stale. The interface to SequenceNode has changed. Now you can call sequenceNode.pose(), loop(), play(), stop(), etc., very much like an Actor. In particular, to start the sequence looping from the beginning, do:
did the trick. I tried the BillBoard thing but I’m doing something wrong. The lookAt() then reversing hack thingy works fine though.
This is for an explosion and they are shortlived enough that if they are oriented correctly in the beginning there isn’t a an appreciable need to have the node continue to look at the camera.