Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
pluggable_plants [2009-03-10 11:35] davegriffithspluggable_plants [2009-03-10 11:42] davegriffiths
Line 11: Line 11:
 ====How it works==== ====How it works====
  
-Plants are built out of components which are defined by two texture images. The first texture is the one which is rendered on screen. The second is used to define where the connection points are, indicated by black blobs - this is where child components will be connected to. These blobs can be put anywhere in the texture. +Plants are built out of components which are defined by two texture images. The first texture is the one which is rendered on screen. The second is used to define where the connection points are, indicated by black blobs - this is where child components will be connected to. These blobs can be put anywhere in the texture and are automatically located and used by the program.
  
 Each component is only allowed one place where it connects to it's parent, which is always at the bottom of the texture, in the middle. Each component is only allowed one place where it connects to it's parent, which is always at the bottom of the texture, in the middle.
Line 22: Line 22:
  
 This means that the textures have to be drawn with this in mind. We could expand this system to use strokes instead of blobs to represent position and direction at the same time. This means that the textures have to be drawn with this in mind. We could expand this system to use strokes instead of blobs to represent position and direction at the same time.
 +
 +{{:lollypop-05.png?300|}}
 +
 +A resulting lollypop tree. More work could be done on the joins between the textures, but you get the idea. You can edit the connection points in the textures, and rerun the program adjust the positions to get the components in the right places.
  
  
  • pluggable_plants.txt
  • Last modified: 2009-03-12 14:32
  • by davegriffiths