glu.glBox??
in
Programming Questions
•
2 years ago
Hello all,
I am using a Code similar to that below for a sphere.
Now I want to have a box in the same manner.
How to do?
I am asking this because my problem is that I have a normal processing-box but it seems to be in another coordinate-system then the sphere. So I want to keep the sphere and bring the box in the sphere's coordinate-system.
Thanks!
Greetings, Chris
- void draw() {
- background(0);
- pgl.beginGL();
- gl.glPushMatrix();
- gl.glRotatef(degrees(rotateearth),0.0,0.0,1.0);
- gl.glColor3f(1,1,1);
- earth.enable();
- earth.bind();
- glu.gluSphere(mysphere, r, 40, 40);
- earth.disable();
- gl.glPopMatrix();
- pgl.endGL();
- if (rotateearth < 360) {
- rotateearth = rotateearth + .0005;
- }
- else {
1