The two flags mentioned earlier are the two we're going to use to create our flipbook animation.
We can find
egg-texture-cards.exe
in thePanda3D-1.6.2/bin
folder. Copy it and paste it into theBGP3D/Misc
folder.Open a Windows Command Prompt and navigate it to the
BGP3D/Misc
folder.Type the following in and press enter:
egg-texture-cards.exe –fps 16 –o EBoom.egg EBoom_00.png EBoom_01.png EBoom_02.png EBoom_03.png EBoom_04.png EBoom_05.png EBoom_06.png EBoom_07.png EBoom_08.png EBoom_09.png EBoom_10.png EBoom_11.png EBoom_12.png EBoom_13.png EBoom_14.png EBoom_15.png
We've just made an egg file that contains a flipbook animation of our 16 images. Go ahead and open the egg file to take a look.
Note
It's important to note that the polygons created with egg-texture-cards don't receive lighting terribly well when placed in the 3D scene graph.
We can turn off lighting for them by calling on setLightOff()
on the NodePath
to solve that problem. That's why the explosions we used in this book were in bam files instead of egg files. They were prepped by being loaded and having setLightOff()
called on them. Then, they were saved into bam files to retain that NodePath
attribute.