|
Author |
Topic: sphere resolution hack? (Read 820 times) |
|
mKoser
|
sphere resolution hack?
« on: Oct 24th, 2003, 4:22pm » |
|
i am wondering if there is a way to change the resolution of a sphere...? something like sphereResolution(10); would be nice, or alternatively sphere(radius, resolution);. which would allow each sphere to be drawn with it's own resolution. ...has anyone discovered a built-in command for this, or does anyone have an idea as to how you can hack it? + mikkel
|
mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
|
|
|
toxi
|
Re: sphere resolution hack?
« Reply #1 on: Oct 25th, 2003, 2:01am » |
|
nope, can't hack it at the moment as it's still hardcoded via a "static final" value (30). i think a flexible resolution has been proposed before though and AFAIK it should be in the pipe... maybe you should have posted this under "suggestions"! wink...
|
http://toxi.co.uk/
|
|
|
mKoser
|
Re: sphere resolution hack?
« Reply #3 on: Oct 25th, 2003, 2:09am » |
|
ahh shit toxi ... double posting again!... you're right - this has turned out to be a SUGGESTION! (hello... operator.. feel free to move this!)
|
mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
|
|
|
toxi
|
Re: sphere resolution hack?
« Reply #4 on: Oct 29th, 2003, 8:07pm » |
|
hey mikkel, i hope you'll pleased to see this http://www.toxi.co.uk/p5/xsphere/ it's not a hack as such, but a rewrite of my old lingo code i used for macronaut. it's not properly optimized yet (not using TRIANGLE_STRIPs) but once this is done, i'll try to get ben to integrate this instead of the current sphere() function... btw. move left-right to change res, click to toggle filled/stroked only
|
« Last Edit: Oct 29th, 2003, 8:11pm by toxi » |
|
http://toxi.co.uk/
|
|
|
fry
|
Re: sphere resolution hack?
« Reply #8 on: Jul 12th, 2004, 9:43pm » |
|
(fwiw, this code was added by toxi to the main graphics engine around rev 6
|
|
|
|
|