Change Agent: The amazing technicolor OBJ shapes
While StarLogo TNG stays true to its roots by providing several turtle shapes, including one that is the default shape for agents when TNG first loads, it also provides dozens of other shapes to help the user differentiate agents in a visually appealing way.
StarLogo TNG supports two different formats for 3D shapes. One is the MD3 format used by the Quake III engine. The MD3 shapes provide vividly rendered creatures to enhance your TNG models, featuring multicolored skins such as the clown fish's orange and white stripes. However, you cannot (yet) change their color to suit your model. The other format is called OBJ, first developed by Silicon Graphics, for which TNG does support changing colors.
Granted, you can always set an agent's internal pen color, but StarLogo TNG's MD3 shapes do not express these colors on their skin, fur, clothing, or even turtle shell. That is where TNG's OBJ shapes really shine. Though they only appear as one color at a time, their color changes to match the color of their pen.
Unfortunately, we do not (yet) provide an easy way to tell from the Shapes category whether a particular shape is MD3 or OBJ. One trick to figure it out is that if the image on the shape block has more than one color, then it is probably an MD3 model, and if it is all a solid color, then it is probably an OBJ model. If you want to be absolutely certain, you can test a shape by setting your agents to be that shape and then calling set color. If the agent visibly changes color, then it is an OBJ shape. In the example below, the OBJ turtle shape turns bright magenta:
StarLogo TNG Preview 2 includes several OBJ shapes. All of the letter and number shapes, as well as all of the geometric shapes (the cone, cube, cylinder, diamond, pyramid, sphere, and tetrahedron) are OBJs. We also have several creatures that come in both MD3 and OBJ format, including the clown fish and one of the turtle shapes, and future releases will include more still.
So, if your model relies on color to convey information in Spaceland, the OBJ models are there to help.
StarLogo TNG supports two different formats for 3D shapes. One is the MD3 format used by the Quake III engine. The MD3 shapes provide vividly rendered creatures to enhance your TNG models, featuring multicolored skins such as the clown fish's orange and white stripes. However, you cannot (yet) change their color to suit your model. The other format is called OBJ, first developed by Silicon Graphics, for which TNG does support changing colors.
Granted, you can always set an agent's internal pen color, but StarLogo TNG's MD3 shapes do not express these colors on their skin, fur, clothing, or even turtle shell. That is where TNG's OBJ shapes really shine. Though they only appear as one color at a time, their color changes to match the color of their pen.
Unfortunately, we do not (yet) provide an easy way to tell from the Shapes category whether a particular shape is MD3 or OBJ. One trick to figure it out is that if the image on the shape block has more than one color, then it is probably an MD3 model, and if it is all a solid color, then it is probably an OBJ model. If you want to be absolutely certain, you can test a shape by setting your agents to be that shape and then calling set color. If the agent visibly changes color, then it is an OBJ shape. In the example below, the OBJ turtle shape turns bright magenta:
StarLogo TNG Preview 2 includes several OBJ shapes. All of the letter and number shapes, as well as all of the geometric shapes (the cone, cube, cylinder, diamond, pyramid, sphere, and tetrahedron) are OBJs. We also have several creatures that come in both MD3 and OBJ format, including the clown fish and one of the turtle shapes, and future releases will include more still.
So, if your model relies on color to convey information in Spaceland, the OBJ models are there to help.
Labels: change agent, spaceland
0 Comments:
Post a Comment
<< Home