We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hey, I'm struggling to find a way to place instances of a class into an array in such way that being radial so form a sphere, I think it would look somewhat like this, but along all the surface of the sphere, I tried using the cos and sin into the position variables of the vertex of the QUAD_STRIP with no success. Thanks in advance guys.
Answers
This is the parametric equation for a sphere. I would just choose random values within the bounds for u and v, then evaluate.
I'll try, thanks a lot Minesha
what i'm struggling with in your description in the QUAD_STRIP part because picture just looks like lines.
whenever i want radial lines i use a random pvector which i then normalise and magnify so that all the points are equidistant from the centre. something like
(untested)
2d lines?
A 3D sphere, Koogs, but I'll check this out
yeah, i know. but gotoloop is using 2d lines whereas i guess you're using a 3d renderer...
I only added P3D and z coordinate to the PVector, and worked, now I'll try to apply this to my code, because mine aren´t just lines but objects
code not by me