O'Reilly logo

Panda3D 1.6 Game Engine by Dave Mathews

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Additional egg-texture-card options

There are three more flags for egg-texture-cards that we'll talk about here. The first is the flag -g, which is used to set the dimensions for the polygon that's created. It takes the left,right,bottom, and top values as inputs. The origin for the card is always at 0. For example, if we wanted these dimensions:

Left: -0.25
Right: 1.25
Bottom: -0.4
Top: 0.8

We would use the flag like this:

egg-texture-cards.exe -g -0.25,1.25,-0.4,0.8

If the -g flag isn't supplied, the default dimensions are -0.5, 0.5, -0.5, 0.5, or a one unit square centered on its origin.

The next flag worth mentioning is -p. This flag tells egg-texture-cards the pixel size of an image that exactly fits the polygon described by the dimensions ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required