This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Need to run an custom OpenGL Application in the DM816x target EVM

we are working on  DM816x  EVM , i need to run an custom OpenGL  Application  'GLmark'  which uses  libraries such as

the application is complied  with above libraries and exported the  binaries and libraries to the target EVM and when i ran this the binaries it throws an  error stating "[ Fail ] - Video mode set failed: No video mode large enough for 800x600 Segmentation fault", when i checked  this error  it  gives me indication that SDML library was not able to create an graphics window with given resolution . i checked with so many resolutions like 1024 x 768 it gives same error  . this application is used for running on  systems which has X Window systems support in it ( basically on  desktop  PC's which has operating system in it

my question is whether can i run this  kind of custom OpenGL app in the DM816x Target EVM which requires Xwindow  system support ?  or in order to run this app on Dm816x what are the things i need to take care w.r.t  Opengl support , graphics support?

i had went through so many documents like DM816x_C6A816x_AM389x_EZ_Software_Developers_Guide.pdf, PSP document (http://processors.wiki.ti.com/index.php/DM816x_C6A816x_AM389x_PSP_User_Guide)

but none of this were able to give me some direction  for my issue. request your help on this regards

--chethan

  • First - Are you able to get the GLES2 Graphics demos part of the Graphics SDK running on the platform ?

     

     

    Mesa should not be used, as there is hardware openGL ES acceleration in the SOC.

    >> MESA(Mesa 3D is an open source 3D compute

     

    Can you point out - what OpenGL ES API is failing ?

    >> when i checked  this error  it  gives me indication that SDML library was not able to create an graphics window with given resolution

     

    What X environment are you using ? Angstrom/ Ubuntu or other ?

  • Hi Prabindh,

    ---First - Are you able to get the GLES2 Graphics demos part of the Graphics SDK running on the platform ?

    currently i checked  demos of OpenGL which were available in  matrix GUI .   And i am not  using  or downloaded the graphics SDK  ( http://processors.wiki.ti.com/index.php/AM35x-OMAP35x_Graphics_SDK_Getting_Started_Guide#Download_Information_for_TI_SGX_Graphics_SDK)  in EZSDK enviornment. whether 'graphics SDK enviornment' is mandatory for developing any of the OpenGL custom apps?

    ---Mesa should not be used, as there is hardware openGL ES acceleration in the SOC.

    currently from mesa i am using two libraries GL and GLUfor my custom OpenGL app, so in order to avoid using this  in Platform and make use of hardware openGL ES acceleration which libraries i need to use? and  where can i get the information on this regards.

    ---Can you point out - what OpenGL ES API is failing ?

    in the SDML library  , my app is using SDL_SetVideoMode(mWidth, mHeight, mBpp, mFlags)  to create a window inside this it is failed to create an graphics window becuase  it will call another function SDL_GetVideoMode(int *w, int *h, int *BitsPerPixel, Uint32 flags)[parameters i am passing is  mWidth - 800 ; mHeight -600;mBpp- 32 , mFlags-SDL_OPENGL | SDL_FULLSCREEN] to Get the closest non-emulated video mode to the one requested.

    --What X environment are you using ? Angstrom/ Ubuntu or other ?

    i am using X environment Ubuntu 10.04 LTS.

    ------------------

    And i have some more questions  on DM816x Target EVM  for OpenGL

    1)  whether default linux os or Linux kernal  in DM816x it contains Xwindows support in the platform? and how currently OpenGL demos available under Matrix GUI is creating graphics window ?

     2)  I Need to run an custom OpenGL Application in the TMDXEVM8168 platform, inorder to do so what are the things i need to have in my environment? whether graphics SDK environment is mandatory to use any of the custom OpenGL App? So inorder to see my custom OpenGL app 'GLmark ' complile in graphics SDK enviornment and run in target EVM what are the things i need to follow ? if i need create OpenGL app which requires xwindows support ,how can  i accomplish this in the platform ?

    3) if need to use graphics SDK , then how can i use it target EVM with SD card ,instead of NFS ?

    4) Is there any way i can install operating system( Ubuntu 10.04 LTS ) on the TMDXEVM8168 or is there any possibility of this ?

    thanks for replying to my query . waiting for your reply.

     --Chethan

  • Looking at your command line, it appears the application needs OpenGL, and not OpenGL ES. The HW acceleration is for OpenGLES only.

    Take a look at below link for getting the Graphics demo with GLES functional. The SDK also comes with 3D GLES1/2 benchmark applications.

     

    http://processors.wiki.ti.com/index.php/AM35x-OMAP35x_Graphics_SDK_Getting_Started_Guide

     

     

  • Hi Prabindh ,

    Thanks for your reply. i will go through document and try to get on with 3d benchmarks available with openGL ES.

    So as per your post whether it means DM816x  supports only OpenGL ES( Embedded system ) and not the  OpenGL (for desktop apps)?

    so is there any possibility to run my  'GLmark'  Opengl based ( for desktop ) on  current DM816x platform? request  your suggestion on this regards.

    Thanks

    chethan

  • chethan venkatesh said:
    So as per your post whether it means DM816x  supports only OpenGL ES( Embedded system ) and not the  OpenGL (for desktop apps)?

    OpenGL is not supported.  Only OpenGLES is supported.

     

    chethan venkatesh said:
    so is there any possibility to run my  'GLmark'  Opengl based ( for desktop ) on  current DM816x platform? request  your suggestion on this regards.

    Chethan,

    As far as I can tell there is no document that gives a precise comparison of what's supported in OpenGLES relative to OpenGL.  Some high level differences are discussed here:

    http://en.wikipedia.org/wiki/OpenGL_ES#OpenGL_ES_2.0

    That should at least give you a general idea of what's supported.  Our best suggestion for benchmarking is to use the GLES benchmarking application.

    I did some searching of the web and came across this page:

    http://manpages.ubuntu.com/manpages/natty/man1/glmark2.1.html

    It looks like a test called glmark2 was written specifically for the purpose of using OpenGLES2 APIs.  If you really want to stick with glmark(2) then you should probably look into that particular benchmark.

    Brad

  • Brad Griffis said:

    I did some searching of the web and came across this page:

    http://manpages.ubuntu.com/manpages/natty/man1/glmark2.1.html

    It looks like a test called glmark2 was written specifically for the purpose of using OpenGLES2 APIs.  If you really want to stick with glmark(2) then you should probably look into that particular benchmark.

    I should probably clarify a bit.  The glmark2 benchmark depends on X11.  You would need to have Ubuntu (maybe Angstom) running on the board in order to get X11 to run this benchmark.  We don't provide an Ubuntu distribution for DM8168 so using the bundled 3D example would be the recommended (i.e. best supported) approach.

     

  • Brad,

      "for DM8168 so using the bundled 3D example would be the recommended (i.e. best supported) approach."

    sorry I didn't understand this , can u please elaborate more on this info.

    thanks

    --chethan

     

  • I'm just referring to the sample applications that are bundled with the Graphics SDK.  Prabhu mentioned these earlier too.

     

    Prabindh Sundareson said:

    Take a look at below link for getting the Graphics demo with GLES functional. The SDK also comes with 3D GLES1/2 benchmark applications.

     

    http://processors.wiki.ti.com/index.php/AM35x-OMAP35x_Graphics_SDK_Getting_Started_Guide

     

     

    Here's a more up-to-date page that includes details for DM816x/AM389x:

    http://processors.wiki.ti.com/index.php/Graphics_SDK_Quick_installation_and_user_guide