Results 1 to 12 of 12

Thread: ogre assertion (!q.isNaN())

  1. #1
    Aperion
    Aperion is offline
    Aperion's Avatar


    Join Date
    Apr 2007
    Location
    USA, Oxnard, CA
    Age
    32
    Posts
    2,194
    Blog Entries
    4
    Country: United States

    Post ogre assertion (!q.isNaN())

    has any one else been getting the following error when attempting to run RoR from latest SVN?

    Code:
    RoR: /home/chris/dev/ogre/OgreMain/src/OgreNode.cpp:393: virtual void Ogre::Node::setOrientation(const Ogre::Quaternion&): Assertion `!q.isNaN() && "Invalid orientation supplied as parameter"' failed.
    it seams to happen when OGRE is starting to render frames.

    I'm not sure where this would occur, if it a problem with our code then it's not use calling setOrientation, it happens after many many calls through ogre, including renderframe.

  2. #2
    tdev
    tdev is offline
    tdev's Avatar


    Developer
    Join Date
    Apr 2007
    Location
    Germany
    Age
    29
    Posts
    10,444
    Blog Entries
    75
    Country: Germany

    Post Re: ogre assertion (!q.isNaN())

    yes, i am experiencing this error as well, and i was not able to fix it yet :-/

    we need to look through the changes list from 1.6.x to 1.7 maybe

  3. #3
    Aperion
    Aperion is offline
    Aperion's Avatar


    Join Date
    Apr 2007
    Location
    USA, Oxnard, CA
    Age
    32
    Posts
    2,194
    Blog Entries
    4
    Country: United States

    Post Re: ogre assertion (!q.isNaN())

    Quote Originally Posted by tdev
    yes, i am experiencing this error as well, and i was not able to fix it yet :-/

    we need to look through the changes list from 1.6.x to 1.7 maybe
    ok, I wanted to make sure it wasn't my configuration.

    BTW I have every item in the list for CMake compiled into RoR at this point. I will probably work on merging the win32 and linux methods together so there is less code to maintain. Minus paged, I'm

  4. #4
    tdev
    tdev is offline
    tdev's Avatar


    Developer
    Join Date
    Apr 2007
    Location
    Germany
    Age
    29
    Posts
    10,444
    Blog Entries
    75
    Country: Germany

    Post Re: ogre assertion (!q.isNaN())

    [quote=Aperion]
    ok, I wanted to make sure it wasn't my configuration.

    BTW I have every item in the list for CMake compiled into RoR at this point. I will probably work on merging the win32 and linux methods together so there is less code to maintain. Minus paged, I'm

  5. #5
    Aperion
    Aperion is offline
    Aperion's Avatar


    Join Date
    Apr 2007
    Location
    USA, Oxnard, CA
    Age
    32
    Posts
    2,194
    Blog Entries
    4
    Country: United States

    Post Re: ogre assertion (!q.isNaN())

    Quote Originally Posted by tdev
    good to hear
    i am releasing a new PG version soon hopefully that will be used then.
    are you working from a separate branch for the release? or is it just the latest version?

  6. #6
    tdev
    tdev is offline
    tdev's Avatar


    Developer
    Join Date
    Apr 2007
    Location
    Germany
    Age
    29
    Posts
    10,444
    Blog Entries
    75
    Country: Germany

    Post Re: ogre assertion (!q.isNaN())

    Quote Originally Posted by Aperion
    are you working from a separate branch for the release? or is it just the latest version?
    i am working on the "forests" trunk for that. Also see: http://redmine.rigsofrods.org/projects/pagedgeometry

  7. #7
    tdev
    tdev is offline
    tdev's Avatar


    Developer
    Join Date
    Apr 2007
    Location
    Germany
    Age
    29
    Posts
    10,444
    Blog Entries
    75
    Country: Germany

    Post Re: ogre assertion (!q.isNaN())

    fixed a problem related to entities under windows, is the problem still existing?

  8. #8
    Aperion
    Aperion is offline
    Aperion's Avatar


    Join Date
    Apr 2007
    Location
    USA, Oxnard, CA
    Age
    32
    Posts
    2,194
    Blog Entries
    4
    Country: United States

    Post Re: ogre assertion (!q.isNaN())

    Quote Originally Posted by tdev
    fixed a problem related to entities under windows, is the problem still existing?
    not sure yet, the latest changes to cmake pretty much hosed all of my changes to the CMake system for linux.

    Edit: Nope, no such luck, I still get the assertion error. Any idea what's causing it?
    Edit2: a little more digging reveals that the problem node appears to be the "PlayerCam" node it's values are getting messed up some where.

  9. #9
    Aperion
    Aperion is offline
    Aperion's Avatar


    Join Date
    Apr 2007
    Location
    USA, Oxnard, CA
    Age
    32
    Posts
    2,194
    Blog Entries
    4
    Country: United States

    Post Re: ogre assertion (!q.isNaN())

    *BUMP*

    Found the culprit, or at least the place that is causing the Quaternion to go to NAN

    it's this line of code in ExampleFrameListener.cpp:5846
    Code:
    mCamera->setOrientation(spl.rot);
    I'm not sure WHY or if this code has changed but spl.rot is Quaternion::ZERO. I will look at it more after I go plant a grapefruit tree and pull otu a stump, and another tree. and plant a pear tree.


    Edit: commenting out this line seems to fix the problem.

  10. #10
    tdev
    tdev is offline
    tdev's Avatar


    Developer
    Join Date
    Apr 2007
    Location
    Germany
    Age
    29
    Posts
    10,444
    Blog Entries
    75
    Country: Germany

    Post Re: ogre assertion (!q.isNaN())

    fixing this in the trunk, thanks!

    please try to use redmine, that speeds up a lot of things

  11. #11
    Aperion
    Aperion is offline
    Aperion's Avatar


    Join Date
    Apr 2007
    Location
    USA, Oxnard, CA
    Age
    32
    Posts
    2,194
    Blog Entries
    4
    Country: United States

    Post Re: ogre assertion (!q.isNaN())

    Quote Originally Posted by tdev
    fixing this in the trunk, thanks!

    please try to use redmine, that speeds up a lot of things
    yes yes I appologize. I found it a little while ago and because it was only one line I totally forgot about it until jtbo mentioned it, so I quickly added it here. I have more stuff I need to submit to redmine.

  12. #12
    tdev
    tdev is offline
    tdev's Avatar


    Developer
    Join Date
    Apr 2007
    Location
    Germany
    Age
    29
    Posts
    10,444
    Blog Entries
    75
    Country: Germany

    Post Re: ogre assertion (!q.isNaN())

    thanks for debugging RoR again

    i just have too little time to test everything it seems

Similar Threads

  1. ogre shaders
    By Sneer in forum General Chat About Rigs Of Rods
    Replies: 15
    Last Post: 08-21-09, 03:31 PM
  2. Replies: 0
    Last Post: 07-23-08, 02:05 PM
  3. ogre mesh tools update
    By 1crash007 in forum Mod tech
    Replies: 2
    Last Post: 04-20-08, 02:28 AM
  4. blender ogre mesh export ezport as .xml?
    By squishy in forum Mod tech
    Replies: 5
    Last Post: 04-03-08, 02:57 AM
  5. Replies: 0
    Last Post: 04-02-08, 12:43 AM

Posting Permissions



About Rigs of Rods

    Rigs of Rods is a unique soft body physics simulator.


Some Tools


Partners

SourceForge.net

Follow us

Twitter youtube Facebook RSS Feed


impressum