Results 1 to 2 of 2

Thread: cube-sphere-new

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2003
    Location
    athens,attica,greece
    Posts
    12

    cube-sphere-new

    thanks a lot for your answers.
    your solution to my fullscreen problem mode
    worked but in my second question i think i didn't explained enough.Imagine that i want to make a very very simple head.The cube will be the head an i want the spheres to
    be the two eyes.when i see the face from the one side i want to see a sphere and behind the sphere the cube but when i rotate my scheme i want the face to looks like
    -------SIDE
    |--------|
    | /\ | <----eye(sphere)
    ---->eye(sphere) | \/ |
    | |
    | |
    |________|<-----face(cube)


    ---------rotation 90 FACE

    |--------|
    /| |\ <----eye(sphere) | |
    ---->eye(sphere) \| |/
    | |
    | |
    |________|<-----face(cube)

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Nov 2002
    Location
    Latvia
    Posts
    626

    Re: cube-sphere-new

    Your drawing are explanatory as h.ll
    Problem: order of translations&rotations+loadidentity&push/popmatrix
    Answer: use display lists, draw your face and then (even if you dont understand what you're doing with rotations) everything will work fine, because you'll be rotating "one" solid object. Like:
    glrotatef(45,0,1,0);
    callist(face);(or somthn like that, don't remeber for sure)

Similar Threads

  1. Map a cube to a sphere
    By shapeare in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 06-27-2013, 06:08 PM
  2. Simple Sphere and Cube
    By Zath in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-11-2006, 09:31 PM
  3. Rotating cube, sphere and collision.
    By UnIcron in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-24-2003, 12:02 AM
  4. sphere-cube-objects
    By pavlov123 in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 01-08-2003, 09:25 AM
  5. cube-sphere
    By pavlov123 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-07-2003, 09:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean