Suche Hilfe bei Openscenegraph-Tutorial



  • Hallo!
    Ich habe mich voller Zuversicht in C++ für Fortgeschrittene eingeschrieben, nachdem ich die Einsteigerklausur mit 1,7 bestanden habe. Nun stehe ich vor diesem schier unlösbaren Rätsel: Openscenegraph.

    Abgeben muss ich einen Screenshot von der Kuh. Den kann man faken, aber ich wills ja vrestehen. Ich komme irgendwie alleine nicht weiter und überwinde nun meinen weiblichen Stolz und frage nach Hilfe.

    Also bitte helft mir!
    Ich benutze Visual Studio 9, Cmake 2.8.1. und habe die OSG 2.8.3. sowie OSG_Data 2.8.0.
    Was muss ich wo tun,klicken, tippen???

    Ich habe soweit alles klar, weiss aber nicht wo ich wie anfangen soll!? Diese Beiden Punkte hier kann ich nicht, noch nicht, selbst, mangels Wissen:

    3. Compiling

    For Linux/Unix/OSX/Mingw/Cygwin the build and install is straight forward:

    cd OpenSceneGraph
    ./configure
    make
    sudo make install
    If you have a multi-processor/core system then you can use make -j <numcores> to tell the build system to multiple cores.

    For Windows you'll need to generate VisualStudio project files, for a full guide see the VisualStudio page.

    There are more details on platform specific build issues/dependencies see the Support/PlatformSpecifics

    4. Running the example applications

    To run the applications you need to set up the path to the applications, and its recommend that you add these environmental settings to you login setup such as autoexec.bat under Windows, or .tcshrc, or .bashrc under Unix. The binaries paths to set up are:

    Unix, tcsh: setenv PATH {PATH}:/usr/local/share/OpenSceneGraph/bin Unix, bash: export PATH={PATH}:/usr/local/share/OpenSceneGraph/bin
    Windows : set PATH=Mypath;where\I\put\my\OpenSceneGraph\bin
    Windows Vista : setx PATH "%PATH;c:\apps\OpenSceneGraph\bin" (one-time command)
    Then set the OpenSceneGraph file path up, so that the examples can find the data:

    Unix, tcsh: setenv OSG_FILE_PATH /home/myaccount/MyData/OpenSceneGraph-Data
    Unix, bash: export OSG_FILE_PATH=/home/myaccount/MyData/OpenSceneGraph-Data
    OSX, use the above expressions plus : setenv DYLD_BIND_AT_LAUNCH
    Windows: set OSG_FILE_PATH=where\I\put\my\OpenSceneGraph-Data
    Windows Vista : setx OSG_FILE_PATH c:\apps\OpenSceneGraph-Data (one-time command)
    Then to run a single application type in a console:

    osgviewer cow.osg

    Wenn ich Bis Mittwoch 23.55 eine Kuh auf dem Schirm hab, wär ich überglücklich!



  • Nerdine schrieb:

    for a full guide see the VisualStudio page.

    Den Guide mal gelesen?

    To run the applications you need to set up the path to the applications, and its recommend that you add these environmental settings to you login setup such as autoexec.bat under Windows

    Lol was? Um ein Sample anzuschauen? Die Frickler.



  • Gelacht hab ich auch schon, über mich, aber bringt mich nicht weiter^^
    Und ja, gelesen, aber null plan.



  • Also erst einmal muss ich ja mit cmake die project files anlegen.
    Aber ob das richtig ist, wie ich es mache, bezweifle ich. Irgendwie muss ich doch vorher irgendwo irgendwelche pfade ändern, ich weiß aber nicht wo.
    und dann weiß ich in cmake auch nicht, wo ich häkchen setzen muss und wo nicht.
    wie es dann mit dem vc projekt weitergeht ist auch noch nicht so klar.
    Es bleibt ein ?


Anmelden zum Antworten