Skip to content

ofxAssimpModelLoader::draw #695

Closed
Closed

Description

@juliolucio

Hei

I am using this model loader and i found a rotation and translation in the draw method.
Shouldt it be removed from there?

I want the model like it is when i build it i the modeling software.

   glEnable(GL_NORMALIZE);

    ofPushMatrix();

    ofTranslate(pos);

    //ofRotate(180, 0, 0, 1);
    //ofTranslate(-scene_center.x, -scene_center.y, scene_center.z);

    if(normalizeScale)
    {
        ofScale(normalizedScale , normalizedScale, normalizedScale);
    }

Activity

  1. ofTheo commented on Aug 5, 2011

    @ofTheo
    Member

    Hi - I just looked into this.
    If we don't have that code in there the model appears upside down relative to OF.

    Eg if you try the assimpLoader example with those two lines commented out and then comment out the rotate happing from the mouse in testApp everything is drawn upside down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions