|
Author |
Topic: z-coordinates (Read 573 times) |
|
meltphace
|
z-coordinates
« on: Aug 20th, 2003, 3:07am » |
|
when i run that piece of code, the lines at the screen don't mean anything : //--------------------------------------- void setup() { size(200,200); background(0); } void loop() { stroke(255); line(0,0,0, 0,0,500); line(50,0,0, 50,0,1000); } //------------------------------------------- ...and if i just inverse the z-coordinates, then it yields a correct drawing : //------------------------------------------- void setup() { size(200,200); background(0); } void loop() { stroke(255); line(0,0,0, 0,0,-500); line(50,0,0, 50,0,-1000); } //------------------------------------- is it normal ?
|
|
|
|
benelek
|
Re: z-coordinates
« Reply #1 on: Aug 21st, 2003, 2:05am » |
|
the lines not being drawn seem to be given a z-value behind the camera... so they are outside the field of view.
|
|
|
|
meltphace
|
Re: z-coordinates
« Reply #2 on: Aug 22nd, 2003, 3:20pm » |
|
line(0,0,0, 0,0,500); line(50,0,0, 50,0,1000); (this example gives shitty results) the coordinates are all positive. so they are not behind the camera. am i wrong ?
|
|
|
|
meltphace
|
Re: z-coordinates
« Reply #4 on: Aug 25th, 2003, 3:49pm » |
|
ok. so i'm very sorry. in my mind it was clear that z coordinates was always positive. thanks for the info. ...and i won't ask questions like that in the "software bugs" sections anymore.
|
|
|
|
fry
|
Re: z-coordinates
« Reply #5 on: Aug 25th, 2003, 6:23pm » |
|
on Aug 25th, 2003, 3:49pm, meltphace wrote:...and i won't ask questions like that in the "software bugs" sections anymore. |
| heh, don't worry about it.. the distinction between bugs and confusing but proper implementation can be vague in programming, but worse with the current state of the Processing release. so i won't get uppity until the legitimate traffic on the bugs section of the site slows down
|
|
|
|
|