Light rotating with model?

About Monkey 2 Forums Monkey 2 Programming Help Light rotating with model?

This topic contains 2 replies, has 2 voices, and was last updated by  TurkeyLurker 1 year, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9975

    TurkeyLurker
    Participant

    When I run the following code, the loaded object is rotating, but the light seems to rotate along with the object. What could I be doing wrong?

    [/crayon]
    Attachments:
    1. introrim.7z
    #9977

    Mark Sibly
    Keymaster

    I think there is something about the introrim.dae model monkey2 doesn’t like. How was it created?

    If you replace it with the BirdieFly ‘bird’ model or a plain sphere via Model.CreateSphere() etc lighting behaves as expected.

    Actaully, looking at the model in Open 3D ModelViewer (which also uses assimp), some of the model normals appear to be ‘twisted’, ie: they are not pointing ‘out of’ the model but at odd angles to it, in same cases parallel to it. This will certainly make lighting look crappy.

    #9982

    TurkeyLurker
    Participant

    The introrim.dae was created in Poser by using a torus primitive and scaling it down with a morph target. After I read your response, I created another torus in blender and now the lights behave as expected in Mojo3d. So much for using Poser as a modeller. :>

    Thanks for your time.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.