×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    May 2010
    Location
    London, Ontario, Canada
    Posts
    4

    Lightbulb [moved] Request: Barebones OpenGL Game-Ready Sample/Template for N8 (and Symbian^3)

    Hi,

    This article is very negative and old regarding OpenGL ES being "weird and different" than the OpenGL "we are used to".

    http://developer.symbian.org/wiki/3D...sing_OpenGL_ES

    Well it's 2010 now (almost 2011), and OpenGL ES is anything but "weird and different" now.

    What would make our jobs 1000x easier is if we had a sample program or article that didn't treat use like we've never done this before, but want to start making high performance games for Symbian^3 right now. Some 90%+ of the API's are meaningless to game developers, yet we have to spend hours/days combing the docs for fundamental details that are incredible common for us. Such things as:

    - Take over the full screen as either OpenGL ES 1 or 2, in whatever way provides best performance (i.e. not sharing with any window manager, etc).
    - How to get the screen resolution
    - Where to request things like a Stencil or Depth Buffer
    - Call a draw/refresh function either sync'd with the LCD refresh rate, or 60 times per second (if impossible)
    - Get touch events
    - Get orientation change events (or accelerometer data)
    - Get key press events
    - Exit (if appropriate)
    - What common messages to watch for (Kill, Low battery, lost focus, gained focus)
    - Where to read our files from
    - Where to write our files to
    - Playing a Music track using the DSP, making the song loop, adjusting volume.
    - Detect when a music track is being played by the OS, so not to interrupt.
    - If there's no Sound FX mixing API, tell us where to send raw PCM audio data so we can have sound fx AND music.

    It doesn't even need per-line documentation. More than likely, the functions already are well named (GetKeypress). We can always drill down in to the documentation if we want to know more.

    Thanks

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Request: Barebones OpenGL Game-Ready Sample/Template for N8 (and Symbian^3)

    Valid request I'd say. But while the wiki article may not be of much use to you, you are welcome to update it based on your expertise.

    How do you find the OpenGL examples provided in the Symbian^3 SDK? Are they answering at least partly your questions?
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  3. #3
    Registered User
    Join Date
    May 2006
    Location
    Germany
    Posts
    598

    Re: [moved] Request: Barebones OpenGL Game-Ready Sample/Template for N8 (and Symbian^

    Quick answers:

    - Take over the full screen as either OpenGL ES 1 or 2, in whatever way provides best performance (i.e. not sharing with any window manager, etc).
    Have an empty RESOURCE EIK_APP_INFO structure in your RSS file.
    Then SetExtentToWholeScreen on your container CCoeControl

    - How to get the screen resolution
    CCoeEnv::Static()->ScreenDevice().SizeInPixels() or something like that

    - Where to request things like a Stencil or Depth Buffer
    Can you not use OpenGL for that?

    - Call a draw/refresh function either sync'd with the LCD refresh rate, or 60 times per second (if impossible)
    I use CPeriodic object to tick 32 times per second.

    - Get touch events
    CCoeControl::HandlePointerEventL

    - Get orientation change events (or accelerometer data)
    void CMyContainer::HandleResourceChange(TInt aType)
    {
    switch( aType )
    {
    // Dynamic screen resize changes by calling the
    // SetExtentToWholeScreen() method again.
    case KEikDynamicLayoutVariantSwitch:
    SetExtentToWholeScreen();
    break;
    }
    }

    - Get key press events
    CCoeControl::HandleKeyEventL

    - Exit (if appropriate)
    AppUi::Exit() or User::Exit()

    - What common messages to watch for (Kill, Low battery, lost focus, gained focus)
    ControlEnv()->AddForegroundObserverL( *this );
    HandleGainingForeground()
    HandleLosingForeground()


    - Where to read our files from
    RFs::PrivatePath

    - Where to write our files to
    RFs::PrivatePath

    - Playing a Music track using the DSP, making the song loop, adjusting volume.
    - Detect when a music track is being played by the OS, so not to interrupt.
    - If there's no Sound FX mixing API, tell us where to send raw PCM audio data so we can have sound fx AND music.
    There use to be a sound mixer example on forum nokia try look for it

    Good luck!

  4. #4
    Registered User
    Join Date
    Dec 2010
    Posts
    6

    Re: Request: Barebones OpenGL Game-Ready Sample/Template for N8 (and Symbian^3)

    Quote Originally Posted by ltomuta View Post
    Valid request I'd say. But while the wiki article may not be of much use to you, you are welcome to update it based on your expertise.

    How do you find the OpenGL examples provided in the Symbian^3 SDK? Are they answering at least partly your questions?
    Are those projects importable into Carbide? I tried to do this but I couldn't figure out how. Of course, I've used Carbide for all of 2 hours now....

    Any hints?

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,671

    Re: Request: Barebones OpenGL Game-Ready Sample/Template for N8 (and Symbian^3)

    If you mean importing any project, it is done via the File menu, Import and check for something saying Symbian project from bld.inf file. And pick the bld.inf file of the given project ("traditionally" in the group folder).
    If you mean some specific issue with the OpenGL examples, please provide some details about what you have tried and what happens.

  6. #6
    Registered User
    Join Date
    Dec 2010
    Posts
    6

    Re: Request: Barebones OpenGL Game-Ready Sample/Template for N8 (and Symbian^3)

    Quote Originally Posted by wizard_hu_ View Post
    If you mean importing any project, it is done via the File menu, Import and check for something saying Symbian project from bld.inf file. And pick the bld.inf file of the given project ("traditionally" in the group folder).
    If you mean some specific issue with the OpenGL examples, please provide some details about what you have tried and what happens.
    Ok well for instance, I tried to import Nokia_Symbian3_SDK_v0.9\examples\symbian\gui\openglex\Particles\group\bld.inf into Carbide which seems to work. I select the GCCE\Debug build which builds fine but when I try to Run As "debug" I get a TRKProtocolPlugin failure. But then in another window Carbide says "c:\sys\bin\particles.exe" was sucessfully launched.

    So I go to project settings. Carbide.c++/Build Configurations -> Add. For the .pkg name I select the Particles.pkg (for GCCE) and select self sign .SIS.... build... deploy... error due to file being accessed by another process.

    It's quite annoying when we have to FIGHT the system to get our code onto it!

  7. #7
    Registered User
    Join Date
    May 2006
    Location
    Germany
    Posts
    598

    Re: Request: Barebones OpenGL Game-Ready Sample/Template for N8 (and Symbian^3)

    My tip: I never use Carbide Remote Debugger. I simply Bluetooth my SIS files to the device and install them there.
    OpenGL examples using ES 1.1 should run on the EPOC emulator too though very slowly.
    For developing OGL ES application I do it on Windows using the PowerVR SDK from Imagination Technology and layers of portable C++ code.
    Then I target specific devices and optimize code for each GPU.

Similar Threads

  1. OpenGL poor quality on N8?
    By lenclud in forum Symbian Media (Closed)
    Replies: 12
    Last Post: 2010-12-12, 14:54
  2. [moved] N8 Symbian 3 - what to install
    By dichterDichter in forum [Archived] Qt SDKs and Tools
    Replies: 3
    Last Post: 2010-10-16, 21:45
  3. Replies: 7
    Last Post: 2009-02-03, 21:24
  4. Sockets - Sample (from sdk symbian 8.1a) not working !!!!! ( Write a Request )
    By Benad_sam in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-11-24, 15:54
  5. Replies: 2
    Last Post: 2003-10-28, 05:44

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×