you have points but for textures you need faces. connect 3 or 4 points as a triangle or a quad.
generally you'd connect adjacent points on one row of the object with the same points on the next row down. but that doesn't work for all shapes. your double loop looks ok though.
Answers
Use the vertex() with 5 parameters.
I will try as soon as possible ;) Thanks.
I have some problem to find the values for u and v..... :(
Tell us more about the surface and the texture you want to apply.
A runnable example would be best.
Rotate, translate and zoom with mouse.
+ and - to add more points.
A uniform texture should be fine to start... :\">
you have points but for textures you need faces. connect 3 or 4 points as a triangle or a quad.
generally you'd connect adjacent points on one row of the object with the same points on the next row down. but that doesn't work for all shapes. your double loop looks ok though.
(btw have you tried PeasyCam? it's good and takes literally 3 lines to give you complete 3d rotation)
[edit - step fixed, peasycam distance fixed]
Thanks. I'll try your suggestions tomorrow.
shape is kinda dodgy at the start / end. probably because step isn't quite a factor of PI. try
step = PI / 24;
(needs to be divisible by 6)@koogs: grazie mille =D>