<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><br></div><div>Howdy,<br><br></div><div>I have 4 things to say:<br></div><div><br>1)   I compared OSG to OpenInventor or OpenCV and it is a toy.<br><br></div><div>2)   I download osgmovie.cpp (attached a copy) and add it to my cmake file that works fine on other downloaded sample code.<br><br>osgmovie.cpp, Line #150 + 151<br>view->computeIntersections takes x,y and not ea as parameters.<br></div><div><br></div><div>3)   ==== the error ====<br></div><div dir="ltr"><br>/home/shooki/swdev/osg-eval/build> make<br>Scanning dependencies of target hci571-hw01<br>[100%] Building CXX object CMakeFiles/hci571-hw01.dir/osgmovie.c++.o<br>/home/shooki/swdev/osg-eval/osgmovie.c++: In member function ‘virtual bool MovieEventHandler::handle(const osgGA::GUIEventAdapter&, osgGA::GUIActionAdapter&, osg::Object*, osg::NodeVisitor*)’:<br>/home/shooki/swdev/osg-eval/osgmovie.c++:151:70: error: no matching function for call to ‘osgViewer::View::computeIntersections(const osgGA::GUIEventAdapter&, osgUtil::LineSegmentIntersector::Intersections&)’<br>                                                         intersections) :  view->computeIntersections(ea, nv->getNodePath(), intersections));<br>                                                                      ^<br>/home/shooki/swdev/osg-eval/osgmovie.c++:151:70: note: candidates are:<br>In file included from /usr/include/osgViewer/Viewer:21:0,<br>                 from /home/shooki/swdev/osg-eval/osgmovie.c++:19:<br>/usr/include/osgViewer/View:225:14: note: bool osgViewer::View::computeIntersections(float, float, osgUtil::LineSegmentIntersector::Intersections&, osg::Node::NodeMask)<br>         bool computeIntersections(float x,float y, osgUtil::LineSegmentIntersector::Intersections& intersections,osg::Node::NodeMask traversalMask = 0xffffffff);<br>              ^<br>/usr/include/osgViewer/View:225:14: note:   candidate expects 4 arguments, 2 provided<br>/usr/include/osgViewer/View:228:14: note: bool osgViewer::View::computeIntersections(float, float, const NodePath&, osgUtil::LineSegmentIntersector::Intersections&, osg::Node::NodeMask)<br>         bool computeIntersections(float x,float y, const osg::NodePath& nodePath, osgUtil::LineSegmentIntersector::Intersections& intersections,osg::Node::NodeMask traversalMask = 0xffffffff);<br>              ^<br>/usr/include/osgViewer/View:228:14: note:   candidate expects 5 arguments, 2 provided<br>/home/shooki/swdev/osg-eval/osgmovie.c++:151:138: error: no matching function for call to ‘osgViewer::View::computeIntersections(const osgGA::GUIEventAdapter&, osg::NodePath&, osgUtil::LineSegmentIntersector::Intersections&)’<br>                                                         intersections) :  view->computeIntersections(ea, nv->getNodePath(), intersections));<br>                                                                                                                                          ^<br>/home/shooki/swdev/osg-eval/osgmovie.c++:151:138: note: candidates are:<br>In file included from /usr/include/osgViewer/Viewer:21:0,<br>                 from /home/shooki/swdev/osg-eval/osgmovie.c++:19:<br>/usr/include/osgViewer/View:225:14: note: bool osgViewer::View::computeIntersections(float, float, osgUtil::LineSegmentIntersector::Intersections&, osg::Node::NodeMask)<br>         bool computeIntersections(float x,float y, osgUtil::LineSegmentIntersector::Intersections& intersections,osg::Node::NodeMask traversalMask = 0xffffffff);<br>              ^<br>/usr/include/osgViewer/View:225:14: note:   no known conversion for argument 1 from ‘const osgGA::GUIEventAdapter’ to ‘float’<br>/usr/include/osgViewer/View:228:14: note: bool osgViewer::View::computeIntersections(float, float, const NodePath&, osgUtil::LineSegmentIntersector::Intersections&, osg::Node::NodeMask)<br>         bool computeIntersections(float x,float y, const osg::NodePath& nodePath, osgUtil::LineSegmentIntersector::Intersections& intersections,osg::Node::NodeMask traversalMask = 0xffffffff);<br>              ^<br>/usr/include/osgViewer/View:228:14: note:   candidate expects 5 arguments, 3 provided<br>make[2]: *** [CMakeFiles/hci571-hw01.dir/osgmovie.c++.o] Error 1<br>make[1]: *** [CMakeFiles/hci571-hw01.dir/all] Error 2<br>make: *** [all] Error 2<br>*** Failure: Exit code 2 ***<br><br>4)   Cheers :),<br>-Joshua Robinson<br></div><div><span><img style="margin-right: 0px;" src="https://docs.google.com/uc?export=download&id=0B73x17sTfMvKamNaUUNPanFoZ2s&revid=0B73x17sTfMvKYS81eVVUZWhCTDRRYXdnTkswSzdKeDg2SDhnPQ" height="24" width="24"></span>"Live long and prosper"<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><br><br><div class="gmail_quote">On Wed, May 27, 2015 at 8:27 AM, Sebastian Messerschmidt <span dir="ltr"><<a href="mailto:sebastian.messerschmidt@gmx.de" target="_blank">sebastian.messerschmidt@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><span class="">
    <div>Am 27.05.2015 um 13:54 schrieb Joshua
      Robinson:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr"><br clear="all">
        <div>
          <div>
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div>
                                <div dir="ltr">
                                  <div>
                                    <div dir="ltr">
                                      <div>
                                        <div dir="ltr">
                                          <div>
                                            <div dir="ltr">
                                              <div>
                                                <div dir="ltr">
                                                  <div>
                                                    <div dir="ltr">
                                                      <div>
                                                        <div dir="ltr">
                                                          <div>
                                                          <div dir="ltr">
                                                          <div>
                                                          <div dir="ltr">
                                                          <div>
                                                          <div dir="ltr">
                                                          <div>
                                                          <div>Howdy,<br>
                                                          </div>
                                                          <div dir="ltr"><span style="background-color:rgb(255,255,255)"><span></span></span><br>
                                                          </div>
                                                          <div>Newbie to
                                                          OSG. <br>
                                                          <br>
                                                          </div>
                                                          <div>Downloaded
                                                          osgmovie.c++
                                                          to learn, But
                                                          can't compile:
                                                          first look
                                                          show wrong
                                                          coding.<br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote></span>
    What exactly did not compile? <br>
    The example is part of the osg-source package and builds fine with
    the rest. So please point to where you downloaded which version etc.<span class=""><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div>
                                <div dir="ltr">
                                  <div>
                                    <div dir="ltr">
                                      <div>
                                        <div dir="ltr">
                                          <div>
                                            <div dir="ltr">
                                              <div>
                                                <div dir="ltr">
                                                  <div>
                                                    <div dir="ltr">
                                                      <div>
                                                        <div dir="ltr">
                                                          <div>
                                                          <div dir="ltr">
                                                          <div>
                                                          <div dir="ltr">
                                                          <div>
                                                          <div dir="ltr">
                                                          <div>
                                                          <div><br>
                                                          Q:  I wonder
                                                          how uncompiled
                                                          code end up as
                                                          a sample for
                                                          newbies ?<br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote></span>
    This doesn't make sense at all. Compiled coded is usually an
    executable or library, so it won't serve as a sample how to do things.<br>
    And the example code, even if not the nicest at some point due to
    #defines etc, compiles just fine and shows how to load and display a
    video and audio stream. <br>
    So what else would be anyone's expectation? <br><span class="">
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div>
                                <div dir="ltr">
                                  <div>
                                    <div dir="ltr">
                                      <div>
                                        <div dir="ltr">
                                          <div>
                                            <div dir="ltr">
                                              <div>
                                                <div dir="ltr">
                                                  <div>
                                                    <div dir="ltr">
                                                      <div>
                                                        <div dir="ltr">
                                                          <div>
                                                          <div dir="ltr">
                                                          <div>
                                                          <div dir="ltr">
                                                          <div>
                                                          <div dir="ltr">
                                                          <div>
                                                          <div><br>
                                                          </div>
                                                          <div>So far my
                                                          personal
                                                          impression
                                                          from OSG that
                                                          it is a toy,
                                                          not ready for
                                                          ... <br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote></span>
    I've been using OSG in a professional environment and industry
    applications for years, so this is really silly to say. <br>
    Please elaborate where you need help and where others can point you
    into the right direction<br>
    <blockquote type="cite"><span class="">
      <div dir="ltr">
        <div>
          <div>
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div>
                                <div dir="ltr">
                                  <div>
                                    <div dir="ltr">
                                      <div>
                                        <div dir="ltr">
                                          <div>
                                            <div dir="ltr">
                                              <div>
                                                <div dir="ltr">
                                                  <div>
                                                    <div dir="ltr">
                                                      <div>
                                                        <div dir="ltr">
                                                          <div>
                                                          <div dir="ltr">
                                                          <div>
                                                          <div dir="ltr">
                                                          <div>
                                                          <div dir="ltr">
                                                          <div>
                                                          <div dir="ltr"><br>
                                                          Cheers,<br>
                                                          -Joshua
                                                          Robinson<br>
                                                          </div>
                                                          <div><span><img src="https://docs.google.com/uc?export=download&id=0B73x17sTfMvKamNaUUNPanFoZ2s&revid=0B73x17sTfMvKYS81eVVUZWhCTDRRYXdnTkswSzdKeDg2SDhnPQ" height="32" width="32"></span>"Live
                                                          long and
                                                          prosper"<br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </span><pre>_______________________________________________
osg-users mailing list
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br></div></div>