Announcement

Collapse
No announcement yet.

Hurrican SDL Port

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    the pvrtc code is now commited, although I did not include the script I used to convert the images, or include preconverted images. I should at least include the script.

    Comment


    • #32
      Hurrican GLES on Rpi / Pandaboard status update - Panda no go

      Originally posted by Pickle View Post
      I think the debate on libmikmod is not worth much, really for a much better experience the libmodplug support should be used. The issue I had with libmikmod was how multiple tracks were handled internally. Again libmodplug solves all of the issues and is thought to have better sound quality.

      danboid: so you get the crack intro and then once you hit a key it freezes? There nothing graphically special going on there, just a progress bar while everything is being loaded.
      Hi Pickle!

      Sorry for the delayed response but I've only just seen your question!

      No, I don't see any graphics whatsover - all I get is blackness whether I run it windowed (with the previously mentioned hack) or full screen (as is the default) and I've just now done a clean build of rev 80 to check thats still the case.

      I mentioned the cracktro as I can hear that startup and if I keep on hitting enter I can progress through the menus and start the first level but I never see anything so I just have to exit or kill it.

      I'm also still getting 'Max Texure Units 0' when I start it.

      I should prob report this as a problem app to the TI OMAP devs if you have got it running fine on your RPi with GLES - Pickle?

      Comment


      • #33
        so its seems your issues are in the EGL part, can you post the EGL log lines?

        I have not run hurrican on the rpi just yet, but I ran my own project on it this weekend. So I need to make some minor SDL changes and it should run on the rpi.

        Comment


        • #34
          EGL log?

          I don't know where the EGL log might be - I monitored dmesg, syslog and X.org.log as I started Hurrican but didn't see any EGL messages/warnings/errors

          Do you mean Game_Log.txt in pwd?

          Hurrican Game_Log.txt. GitHub Gist: instantly share code, notes, and snippets.

          Comment


          • #35
            If your build is using the eglport.c/h you should see messages about the EGL process over your terminal. That part of the code is just using printf's. You should see them before the Max Texure Units statement.

            If you dont see anything about EGL at all there, then something is very wrong. Most likely your build does not include the EGL code and would explain quite well why the screen is black. You should be using a define USE_EGL_SDL and USE_GLES1.

            Really if your going to use any source code from any project I have ported to the pandora that uses opengles you need to know the eglport code. You need to know if the SDL portions can work. I expect they can since your using a similar TI driver as the pandora does.

            Comment


            • #36
              missing DEFINE and include path

              Hi Pickle!

              Ah! You never mentioned USE_EGL_SDL before, or if you did I missed it, hence the revised Pandaboard build instructions would become:

              If you're lucky enough to own a Pandaboard and Pickle doesn't update the Makefile to support the Panda, you can compile Hurrican by simply adding:

              Code:
              -DUSE_GLES1 -DUSE_EGL_SDL
              to the end of line 1 (ie the DEFINES section), replacing -lGL with

              Code:
              -lGLESv1_CM -lEGL
              In the LDFLAGS section which is at line 36 and adding:

              Code:
              -I/usr/include/EGL
              to the end of the INCLUDES section on line 34, all within hurrican-code/Hurrican/src/Makefile
              Last edited by danboid; 06 August 2012, 04:53 PM.

              Comment


              • #37
                New build prob

                Here's the error I get trying to build Hurrican on Pandaboard 12.04 with the corrected DEFINES:

                Code:
                DX8Graphics.o: In function `DirectGraphicsClass::Init(unsigned int, unsigned int, unsigned int, unsigned int, bool)':
                /home/dan/src/hurrican-code/Hurrican/src/DX8Graphics.cpp:255: undefined reference to `EGL_Open'
                /home/dan/src/hurrican-code/Hurrican/src/DX8Graphics.cpp:288: undefined reference to `EGL_Init'
                DX8Graphics.o: In function `DirectGraphicsClass::Exit()':
                /home/dan/src/hurrican-code/Hurrican/src/DX8Graphics.cpp:318: undefined reference to `EGL_Close'
                DX8Graphics.o: In function `DirectGraphicsClass::ShowBackBuffer()':
                /home/dan/src/hurrican-code/Hurrican/src/DX8Graphics.cpp:674: undefined reference to `EGL_SwapBuffers'
                collect2: ld returned 1 exit status
                make: *** [../hurricanlinux] Error 1

                Comment


                • #38
                  you have to add the eglport.c to the file list. If I didnt mention it before I didnt use the makefile, I used codeblocks to build. The makefile was added by someone else for a desktop build.

                  when i get to the rpi version, I will try to clean up the makefiles and add some basic build docs.

                  Comment


                  • #39
                    Hurrican running on Pandaboard

                    Hi Pickle!

                    You were right - after adding SDLport/eglport into the Makefile that got Hurrican to compile with OGLES/EGL but for me to see anything on my Panda I had to apply the previously mentioned window mode hack as otherwise I just got a black screen. I was expecting this as thats what happens for me under d1x and d2x (Descent rebirth) and so it has confirmed a bug in the current drivers.

                    I THINK Hurrican should run now but since last night my Panda has become more unstable than it usually is running 12.04 and now I can barely open a xterm without it dieing and so I've only actually seen Hurrican run as far as the loading screen that comes after the game menu. I'm not going to bother with the Panda again until TI get some more stable drivers out as I'm lucky if I get an hour out of it at the best of times right now before it tanks.

                    Comment


                    • #40
                      Hurrican SDL Port

                      Hurrican has USB joystick/pad support under the Windows version and apparently this should work under the SDL port too but I've not got that to work so please test that if you can and let us know if you get your controller to work please!

                      Comment

                      Working...
                      X