open gl trig question / follow circumference of circle

    Sep 20 2010 | 3:12 pm
    trying to code something to draw circles around circles, and yes im going round in circles ;)
    basically i want my blue and green circles to follow the circumference of the red circle. i would like to get the coordinates out of the red circle ( geometry matrix). the other circles will use the coordinates to set centre position along circumference...
    my main problem is that i dont know which points to extract from the geometry dim.
    hope that makes sense, any help much appreciated!

    • Sep 20 2010 | 3:14 pm
      oops here's screenshot...
    • Sep 20 2010 | 7:39 pm
      part of the problem is that the when matrixoutput enabled, the scale attribute is not applied to the vertices coming out of the matrix.
      for this goal, you probably don't need to use matrixoutput, but simply the equation of a circle with simple scaling applied (sin theta, cos theta).
      see if this helps you out. notice that every frame 10 circles are being drawn using one single (by turning automatic off, explicitly banging and setting the position 10 times, using uzi).
    • Sep 21 2010 | 11:41 am
      thanks for the answer robtherich... i was hoping i'd be able to use a certain part of the matrix as kind of animation path, but your explanation clarifies that this isnt really feasible. so yes the equation approach seems a logical way to progress...
      seems spam may have hijacked my thread :(