Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Who can help me with this problem ?

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2003
    Location
    Austria
    Posts
    1

    Who can help me with this problem ?

    Hello,
    I am not quite new in programming OpenGl but i need some help with this problem.

    To my problem. Please first look at this pictrue (
    as you can see i get 2 different Diameters D1 and D2. You can see this circle as a ellipse, so D1 and D2 are the 2 half axes.
    I get all n time/way new measurment datas.
    K1 and K2, with this value i get the information about the position of the ellipse.

    So this information i had to visual. I dont't want to texture it, no shadow etc. only draw some lines. What and How should i do ?

    Lot's of thanks
    christian

    [This message has been edited by cebner (edited 04-13-2003).]
    eb

  2. #2
    Junior Member Newbie
    Join Date
    Apr 2003
    Posts
    1

    Re: Who can help me with this problem ?

    points for the ellipse
    for ( angle=0.0; angle <2*PI; angle += PI/100)
    {
    r = 1.0 /sqrt(cos(angle)*cos(angle)/D1+
    sin(angle)*sin(angle)/D2);
    fprintf(result,"%.3f %.3f\n",
    r*cos(angle), r* sin(angle));
    }

    ---
    cBe

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •