Results 1 to 3 of 3

Thread: Does somebody use Cosmo3D & Optimizer ?

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2001
    Location
    DEPEW, NY, USA
    Posts
    2

    Does somebody use Cosmo3D & Optimizer ?

    How can I finish some rotation in one step?
    in my program if I do like list below:
    ...
    m_pTransform->setRotation(0.0f, 0.1f, 0.0f, CS_DEG2RAD(angle1));
    m_pTransform->setRotation(1.0f, 0.1f, 0.0f, CS_DEG2RAD(angle2));

    m_pDrawAction->apply(m_pRoot);
    ...

    the result is only the sectond rotation.
    Anybody can tell me how to do it ?
    Thanks.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Arlon, Belgium
    Posts
    477

    Re: Does somebody use Cosmo3D & Optimizer ?

    If you try this ?

    **************
    m_pTransform->setRotation(0.0f, 0.1f, 0.0f, CS_DEG2RAD(angle1));

    m_pDrawAction->apply(m_pRoot);

    m_pTransform->setRotation(1.0f, 0.1f, 0.0f, CS_DEG2RAD(angle2));

    m_pDrawAction->apply(m_pRoot);
    ******************

    Or you can make a loop with the angle value in a board.

    for (i = 0; i < 2; i ++)
    {
    m_pTransform->setRotation(0.0f, 0.1f, 0.0f, CS_DEG2RAD(tab(i)));

    m_pDrawAction->apply(m_pRoot);
    }

  3. #3
    Senior Member Regular Contributor
    Join Date
    Apr 2011
    Posts
    288

    Re: Does somebody use Cosmo3D & Optimizer ?

    zming,

    There are several ways to do what you want, one of these is:

    csRotation rot1(0.0f, 0.1f, 0.0f, CS_DEG2RAD(angle1)), rot2(1.0f, 0.1f, 0.0f, CS_DEG2RAD(angle12));

    rot1.mult(rot2, rot1); //rot2 * rot1
    m_pTransform->setRotation(rot1);
    m_pDrawAction->apply(m_pRoot);

    Let me know if it works.

Similar Threads

  1. Anyone have OpenGL Optimizer 1.3.1??
    By Cu Tun in forum OpenGL: General
    Replies: 0
    Last Post: 05-31-2010, 08:51 PM
  2. OpenGL Optimizer
    By -mk- in forum OpenGL: General
    Replies: 4
    Last Post: 07-26-2004, 11:23 PM
  3. Bugs with Optimizer ??
    By scalou in forum OpenGL: General
    Replies: 0
    Last Post: 07-21-2002, 11:10 PM
  4. installing opengl optimizer on VC++ 6.0
    By asingh in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 02-23-2002, 07:33 PM
  5. Cosmo3D
    By kkher in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-11-2001, 05:16 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