FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   vertex() doesn't like transform()
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: vertex() doesn't like transform()  (Read 224 times)
skloopy

WWW
vertex() doesn't like transform()
« on: Nov 14th, 2003, 8:39am »

vertex() calls inbetween beginShape() and endShape() don't seem to pay attention to the transform matrix..
 
Code:
beginShape(LINE_STRIP);
vertex(0,0);
translate(100,20);
vertex(0,0);
translate(-50,30);
vertex(0,0);
endShape();

It draws everything at the current transform when you call endShape. Is it a bug?
 
Oops too much p5 is not good for you.. I just tried to submit this post with command-R
 
fry


WWW
Re: vertex() doesn't like transform()
« Reply #1 on: Nov 23rd, 2003, 11:47pm »

you can't make transform calls inside a beginShape(), unfortunately.. this comes from opengl. but if that's not documented, it sounds like something that we should make a note of so that people arent' confused.
 
Pages: 1 

« Previous topic | Next topic »