Results 1 to 2 of 2

Thread: please help!!!

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2004
    Location
    singapore
    Posts
    2

    please help!!!

    i use this formula :
    x=1.6f*(cos(0.5*angle1)*cos(0.5*angle1)*cos(0.5*an gle1));
    y=1.6f*(cos(angle2)*sin(0.5*angle1)*cos(angle2)*si n(0.5*angle1)*cos(angle2)*sin(0.5*angle1));
    z=1.6f*sin(angle2)*sin(0.5*angle1);

    but however i didnt know how to wrap it when it is rendered. everytime i rendered it i couldnt get a smooth shape.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: please help!!!

    Hi !

    This is an OpenGL forum not a math forum, so what is it you try to render ? and it might be more useful if you post the code that does the rendering (and fails to do it).

    If the problem with the rendering is difficult to describe, screenshots are always useful.

    A few ideas.
    Make sure the winding order for all triangles is the same or you might get wacky colors, make sure all normals are correct, if you get incorrect normals/or miss to set them you will get weird shapes also.

    Mikael

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