problem with cameras

  • Abe

    Abe - 2009-03-31

    Hi everybody,
    I have a collada file that includes a camera (camera3), whose details in the collada file are below. However, when I load the file, I get:

    CrtScene, always create a default camera and it is the first camera to use
    CrtScene, no instance_camera found creating a node with an instance

    and the view is not corresponding to the camera location. Should I have to change something in the code? Or where and how I tell to use camera3 as camera?

    When I debug, the scene attribute of _CrtRenderer, has two cameras, the first named "cameraShape3" and two CameraInstances. The first is referring to cameraShape3, but when I check its transform is the unit matrix and not the data loaded from file.

    again, am I doing something wrong?
    best regards to all,

    <camera id="cameraShape3" name="cameraShape3">
    <technique profile="MAYA">

    <node id="camera3" name="camera3" type="NODE">
    <translate sid="translate">-149.85 -2.20374 297.329</translate>
    <rotate sid="rotateZ">0 0 1 0</rotate>
    <rotate sid="rotateY">0 1 0 -12.4</rotate>
    <rotate sid="rotateX">1 0 0 12.5923</rotate>
    <instance_camera url="#cameraShape3"/>

    • Christoph Nenning


      by digging in the SVN log I found a small code snippet which might be what you need. See file rt/src/Crt/1.4/CrtScene.cpp revision 219 (comment: "don't add default camera when there is a camera is the scene").

      I don't know why this code has been removed later.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks