QT and OpenGL not made

I have implemented the example in the SDK of 4.8 Qt under opengl/cube.

http://Qt.Gitorious.org/Qt/Qt/trees/4.8/examples/OpenGL/cube

I have modified so that it works on the PlayBook (that is, do not use QWindow).

It runs great on Ubuntu in Qt Creator. Cross-compile for the PlayBook just fine and I can load it on the unit and run it, but it is not working properly.

Namely, it simply display a blank screen of white that becomes black when I press on it. You will notice that there are a few qDebug()< calls="" in="" the="" initializegl()="" function="" call.="" i="" added="" some="" qmessagebox="" calls="" instead="" to="" see="" if="" these="" were="" being="" reached,="" and="" it="" seems="" they="" are.="" no="" idea="" if="" the="" other="" functions="" are="" being="" completed="" correctly,="" still="" looking="" into="">

Anyone have any ideas of what I'm missing here? Is there a way to actually debug the program, so I can find the questions myself?

It turns out that it was a problem with the repetition of the texture of OpenGL ES 2.0. Namely:

// Wrap texture coordinates by repeating
    // f.ex. texture coordinate (1.1, 1.2) is same as (0.1, 0.2)
    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);

Is not allowed. GL_REPEAT cannot be used with textures NPOT (power of two) in OpenGL ES 2.0. Instead, you must attach to the edge, or to implement in your fragment shader.

// Wrap texture coordinates by repeating
    // f.ex. texture coordinate (1.1, 1.2) is same as (0.1, 0.2)
    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);

Works fine now, EXCEPT that, when the application starts, it starts with a blank space where the OpenGL is rendered. Once the user clicks on it, it draws perfectly. No idea why this is the case.

Tags: BlackBerry Developers

Similar Questions

  • My IPad 2 Air is mad, he gets on its own, and it freezes. Not to mention it locks me. Didn't this iPad for 2 days. Have not been able to use it! I tried connecting to ITunes and will not work!

    My IPad 2 Air is mad, he gets on its own, and it freezes. Not to mention it locks me. Didn't this iPad for 2 days. Have not been able to use it! I tried connecting to ITunes and will not work!

    Hi Kareyfabela,

    For this kind of problem, I strongly recommended opening a pension with Apple iPad case will probably require inspection by an Apple engineer. You can open a file on this site: https://www.apple.com/support/contact/

    I hope this helps!

    Jonty

  • my keyboard strokes are not made, unless you type very slowly and hold down the key until the particular letter is displayed

    my keyboard strokes are not made, unless you type very slowly and hold down the key until the particular letter is displayed

    Hi Kdooley,

    Are a. When you facing this problem?

    B. using a laptop or a desktop computer?

    C. is - what happens with specific applications?

    D. don't you plug a different keyboard to check?

    Method 1

    I suggest you to connect this keyboard on another computer and see if it even. If the problem persists, try Method 2

    Method 2

    Try to change the rate of repeat on the keyboard and check if it helps.

    1. Open keyboard by clicking the Start button, clicking on Control Panel, hardware and sound, tap keyboard.
    2. Under character repeat, move the repeat rate slider to the left to keyboard characters repeat more slowly, or to the right to make them repeat faster.

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-keyboard-settings

    If the problem persists, then it might be a problem with the keyboard itself.

    Kind regards
    Bindu S - Microsoft Support
    Visit our Microsoft answers feedback Forum and let us know what you think

  • I get an error message: The Nvidia OpenGL driver lost connection with the display driver and can not continue. Error code 8

    When I play the virtual Interactiver - Second Life Community. The screen turns white and windows tells me the display adapter stopped responding and has recovered. While the second life Viewer is still Virgin (white). I get the error in a box: The Nvidia OpenGL driver lost connection with the display driver and can not continue. The application must close. Please visit http://www.nvidia.com/page/support.html for help. Error code 8. Now, I worked with Nvidia to do a clean install of the latest version of the driver. a driver in safe mode installation. They suggested to try an earlier version of the driver. Nothing that they worked me and told me to see Microsoft. The pilot hangs every 30 min or so, all online in the second game of life. Can someone help me?

    Information System
    ------------------
    Time of this report: 13/06/2011, 19:40:20
    Machine name: BEN - PC
    Operating system: Windows 7 Professional 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.110408) - 1631
    Language: English (regional setting: English)
    System manufacturer: HP-Pavilion
    System model: GC670AA-ABA a6120n
    BIOS: Phoenix - AwardBIOS v6.00PG
    Processor: Intel (r) Core (TM) 2 Duo CPU E4400 @ 2.00 GHz (2 CPUs), ~2.0GHz
    Memory: 4096 MB RAM
    Available OS memory: 3582MB RAM
    Page file: 1690MB used, 5472 MB of available space
    Windows Dir: C:\Windows
    DirectX version: DirectX 11
    DX setup parameters: not found
    User DPI setting: 96 DPI (100%)
    System DPI setting: 96 DPI (100%)
    DWM DPI Scaling: disabled
    DxDiag Version: 6.01.7601.17514 64 bit Unicode

    Two monitors

    Display devices
    ---------------
    Card name: NVIDIA GeForce 7600 GT
    Manufacturer: NVIDIA
    Track type: GeForce 7600 GT
    DAC type: Integrated RAMDAC
    The device key: Enum\PCI\VEN_10DE & DEV_0391 & SUBSYS_201F19F1 & REV_A1
    Memory display: 1768 MB
    Dedicated memory: 248 MB
    Shared memory: 1519 MB
    Current mode: 1600 x 900 (32 bit) (60 Hz)
    Name of the monitor: generic PnP monitor
    Monitor model: G205H (Acer)

    Card name: NVIDIA GeForce 7600 GT
    Manufacturer: NVIDIA
    Track type: GeForce 7600 GT
    DAC type: Integrated RAMDAC
    The device key: Enum\PCI\VEN_10DE & DEV_0391 & SUBSYS_201F19F1 & REV_A1
    Memory display: 1768 MB
    Dedicated memory: 248 MB
    Shared memory: 1519 MB
    Current mode: 1280 x 1024 (32 bit) (60 Hz)
    Name of the monitor: generic PnP monitor
    Monitor model: NEC LCD7V

    Hello

    I suggest that you have watch the following link below:

    http://forums.developer.nvidia.com/index.php?showtopic=5331

    I hope this helps.

  • Can someone help me please? I bought Photoshop elements 13 and were not able to install it on my computer.  I made attempts at veveral to install it and I lose connection every time.  Since I was on a package of data plan with at &amp; t, I buy e data

    Can someone help me please? I bought Photoshop elements 13 and were not able to install it on my computer.  I made attempts at veveral to install it and I lose connection every time.  Since I was on a package of data plan with at & t, I have buy the data each month.  I consume ALL my data.  To be a better way. Can someone help me please? I bought Photoshop elements 13 and were not able to install it on my computer.  I made attempts at veveral to install it and I lose connection every time.  Since I was on a package of data plan with at & t, I have buy the data each month.  I consume ALL my data.  To be a better way.

    I am well aware I could you bought the disc version. I bought the software Officemax in Vicksburg, MS I thought that the disc was included in the box.

  • How can I activate my Adobe Photoshop CS.  It will not work on the line and must be made by phone

    How can I activate my Adobe Photoshop CS.  It will not work on the line and must be made by phone?

    You must download the version without activation of CS2.

    Download Acrobat 7 and CS2 products

    Install, then enter the new serial number provided at this link.

  • After the hard drive failed, I changed my computer and reinstalled LR5. I've updated LR5 a few weeks before my computer crashed, so for you my serial number is up-to-date. After having read a few tutorials, I suspect this deactivation were not made before

    After the hard drive failed, I changed my computer and reinstalled LR5. I've updated LR5 a few weeks before my computer crashed, so for you my serial number is up-to-date. After reading some tutorials, I'm suspecting this disabling was not made before reinstalling... Recommendations on resettlement in this case?

    You actually have a renewal LR5 problem or ask yourself what you need to do?

    Download and install the update LR 5.6 from here: http://www.adobe.com/downloads/updates

    Enter your LR 5 serial number and you should be ready.  If something doesn't work, then, please describe the problem in detail.

  • Mixture of stunts and OpenGL ARE

    I use bbndk - 10.0.4 - beta with a Dev Alpha device. I want to have a record of the user of Cascades interface on top of an OpenGL ES 2.0 window. The web page of the Cascades examples indicates that this is possible.

    To see if it worked, I adapted the HelloForeignWindow sample so that the child window is linked to an OpenGL ES 2.0 context. I have essentially merged with the HelloForeignWindow sample GLES20Template sample and adapted bbutil_init_egl() so that it calls:

    screen_create_window_type (& screen_win, screen_ctx, SCREEN_CHILD_WINDOW)

    Instead of screen_create_window().

    All code initialization RULES and screen_ * works very well and is called createForeignWIndow() that is triggered by an event from the user interface. Note that this means that the following code is running in a different thread from the code in HelloForeignWindowApp::run() where I want to do my rendering:

    bool HelloForeignWindowApp::createForeignWindow(const QString &group, const QString id, int x,
            int y, int width, int height)
    {
    
        QByteArray groupArr = group.toAscii();
        QByteArray idArr = id.toAscii();
    
        // You must create a context before you create a window.
        if (screen_create_context(&mScreenCtx, SCREEN_APPLICATION_CONTEXT) != 0) {
            returnfalse;
        }
    
              // Adaptation of normal bbutil_init_egl()
        if(bbutil_init_egl_child(mScreenCtx, idArr.constData(), idArr.length(), groupArr.constData(), groupArr.length()) != 0)
        {
        return false;
        }
    
        if(initializegl() != 0)
        {
        return false;
        }
        return true;
    }
    

    The problem is when I call glClear() from inside the HelloForeignWindowApp::run() , I get a crash because of error of segmentation:

    • Thread [10] (Suspended: Signal: SIGSEGV: Segmentation fault)
    • glClear() to 0x78009ee4
    • Render() to helloforeignwindowapp.cpp:275 0 x 104110
    • HelloForeignWindowApp::doNoise() to helloforeignwindowapp.cpp:306 0x1042fc
    • HelloForeignWindowApp::run() to helloforeignwindowapp.cpp:88 0 x 103908

    The segmentation fault made me suspect that OpenGL ES didn't like me it boot to a thread and call it in another thread. So I tried to put the initialization and the entire interior of the HelloForeignWindowApp::run (), which would now be called HelloForeignWindowApp::initForeignWindow (). Generating this error:

    • ApplicationPrivate::screenSupport: ERROR called from the thread interface user HelloForeignWindowApp (0xaf484)
    • ApplicationPrivate::screenSupport: ERROR called from the UI thread

    from the inside of the initForeignWindow () during the call to createForeignWindow(), although createForeignWindow() has not actually called before the error was raised.

    If you're still with me at this time, thank you! My questions are:

    • What is the right way to integrate an OpenGL window in the sample of HelloForeignWindow?
    • Why glClear() causes segfault during my first attempt?
    • On my second attempt, why the 'ERROR called from the UI thread' get fired?
    • Where is the documentation that I can study to understand the Cascades model more in detail of thread? (eg. How Application: exec() works exactly, how the: run() call is threaded etc..)

    Thanks a lot guys.

    PS I tried to attach a zipper of my project, but I can't find the option.

    Solved.

    After looking at your example, I changed my second attempt and I got, it works. The cause of the "Independent from the UI thread called ERROR" was the call to ForeignWindow::mainWindowGroupId() of in the HelloForeignWindowApp::run thread (). I put this in the constructor call, stored the QString resulting as a member and then makes any OpenGL initialization and screen wire HelloForeignWindowApp::run() as before.

    I think it is equivalent to the example of your provided in terms of thread.

    For people who want this example code, see examples of community of Cascades on the developers blog. Community Macadamian mixes stunts and OpenGL rendering.

    So it seems that the constructor is executed on the user interface thread "" in this case, which is a little confusing for me because it is called main(), and I thought that a characteristic of the Cascades was that the user interface has been made on the main thread by default.

        // We complete the transaction started in the app constructor and start the client event loop here...
        return Application::exec();
    }
    

    Can you explain this comment further or point me to a document that is in the configuration of threading for Cascades and how it decides what constitutes a "user interface thread?

  • During cleaning after reinstall the update Ver 33 and "Could not load XPCOM" when I run the installer for worm 33 he says "your download was interrupted. Now, what

    Running Windows 7. After Firefox updated to the Version 33 Firefox would not start. Received the message "unable to load XPCOM. Follow the instructions in the forum Firefox to do a clean reinstall. File downloaded from Mozilla.org , using Internet Explorer for Firefox does not work. Deleted the old program file. When I try to run the Firefox Setup Stub file 33.0 continues to stop. The message says "your download was interrupted. I tried to run several times all with the same result. I also made sure I deleted previous downloads before trying to re. Anyone know how to fix this? Thanks for your help.

    Do a clean reinstall and delete the program folder before Firefox to (re) install a new copy of the current version of Firefox.

    If possible to uninstall your current version of Firefox to clean the Windows registry and settings in the security software.

    • Do NOT remove the "personal data" when you uninstall your current version of Firefox, because this will remove all profile folders and you lose personal data such as bookmarks and passwords including data profiles created by other versions of Firefox.

    Delete the program folder Firefox before installing newly downloaded copy of the Firefox installer.

    • (32-bit Windows) "C:\Program Files\Mozilla Firefox\"
    • (Windows 64 bit) "C:\Program Files (x 86) \Mozilla.

    Your bookmarks and other personal data are stored in the Firefox profile folder and will not be affected by a uninstall and (re) install, but do NOT delete personal data when you uninstall Firefox which removes all Firefox profile folders and you lose your data.

  • My disabled modules themselves and can not activate them.

    On all of a sudden, all of my modules are disabled Adblock Plus and I can't enable them, and I not nothing changed on my laptop right there. I tried to do the troubleshooting information, restart my laptop, uninstall and install Mozilla twice, by deleting files all on Mozilla, but nothing worked. I even tried to do a system restore, but it worked because it has a problem in a file!
    Useful info: when I reinstall Mozilla and I have reinstall the Add-ons, they are capable and they work very well, but when I close the browser and open it again, the Add-ons are disabled again... And I don't know if this means anything, but I also have the problem to do the Windows updates last week, she can finish.
    I have Windows 7 x 64 and publishing lasted from Mozilla Firefox.
    Any ideas?

    PS English is not my mother tongue, sorry if I made mistakes.

    Make a check of malware with several malware scanning of programs on the Windows computer.

    Please scan with all programs, because each program detects a different malicious program.

    All of these programs have free versions.

    Make sure that you update each program to get the latest version of their databases before scanning.

    Alternatively, you can write a check for an infection rootkit TDSSKiller.

    See also:

  • I did this after intro animation effects and it was made entirely from photoshop files and my comp settings in AE is HDV 1920 x 1080 25, then I was asked to the release of the film in 1920 X 1080 MPEG H.264 NTSC 29.97 progressive, someone has an idea how?

    I did this after intro animation effects and it was made entirely from photoshop files and my comp in AE settings is HDV 1920 x 1080 square pixels 25,.

    Then they asked me out of the movie at 1920 X 1080 MPEG H.264 NTSC 29.97 progressive, someone has an idea how?

    1. to adjust for NTSC composition without affecting the report l / h.

    2 - this film must be rendered in RGB + ALPHA, and yet the mpeg does not support this definition, it seems that the record will be in the video codec animation or other.

    I am bit confused if I need to adjust the model, or leave it and set the video codec only.

    Thank you

    If you have (or get) MPEG Streamclip, which is free, you can open the anamorphic clip and resize it to 1080 true. You will be able to choose H.264 as a codec. It will be if necessary deinterlacing. Suppose that the MPEG card is a MP4 container.

    Good luck.

    Russ

  • all of my photos in icloud were removed from the restoration (and did not find the album recently removed to icloud)



    all of my photos in icloud were removed from the restoration (and did not find the album recently removed to icloud)

    The opposite happened to me - in the opposite direction! I found all my pictures from Nokia mobile in icloud on my iPad a few days ago, had no blue cogwheels devices! The two devices + home phone is all about wireless internet of the contract with ORANGE in Europe! They will not help,

    I think my router - put in place by an expatriate for me - is hacked because of the problem. I didn't ask him to change my contract or warn of my move when I did 2 years ago - but he went ahead and made Orange disclose no information telling me his "confidential".

  • While on mobile sites and can not zoom the text is blurry

    on sites that recognize me as a mobile site, or use mobile sites, when I can't zoom in I have no problem with the beta 1 freeze or force close. But the text is vague and will not erase upward. While using the usual browser can't display anything it will freeze.

    He also made mobile recovery force closed twice today.

    The blurry text could be linked to the freezing problem - looks like text rendering could have locked up before he finished to redraw the text. There are also a few known bugs in Firefox that brings the text to look bad on Android, for example: https://bugzilla.mozilla.org/show_bug.cgi?id=600103

    "How long has Firefox been out in life? I thought I have dl it the first day and you already know these bugs? »

    I am one of the developers of Firefox for Android. We've been working on it for almost a year now, and our first official alpha release was in August. (Thanks for the bug reports and comments!)

  • HP 15-ac025TX (M9V00PA): network controller &amp; USB controller driver not found and wifi not working not

    Hello I bought HP 15-ac025TX (M9V00PA) computer laptop computer laptop.  I installed all the drivers from the HP site, here is the link

    http://support.HP.com/in-en/drivers/selfservice/HP-15-notebook-PC-series/7771404/model/8326084#Z7_30...

    but still driver network controller not found also wifi works do not I installed blutooth drivers too. I use Windows 7 sp1 (32-bit)

    For network controller device ID is PCI\VEN_14E4 & DEV_4365 & SUBSYS_804A103C & REV_01

    Secondly, univeral serial bus controller driver (usb) not found

    I installed all the drivers on link also updated windows, but still no solution

    the usb controller hardware ID is

    PCI\ VEN_8086&DEV_9CB1@SUBSYS_80C2103C&REV_03

    and finally, I am unable to download the graphics driver AMD/Intel switchable high definition (HD). the download link works not

    KINDLY SOLVE THE PROBLEM

    Thank you

    Update:

    While the pilot I know work is not made yet, I did some detective work and explored some other links from HP broadcom WiFi card driver files, and I found one that should work for you.

    He says that it is for HP desktop PC, they put the exact same form factor of the card wireless to a desktop PC in a laptop.

    I see not why this driver would not work, because the configuration file contains the same hardware ID you have posted.  Here's a partial copy and paste of the setup information file driver, and you can see the hardware ID you have posted is supported by this driver.

    x 86-Win7
    ;
    [BROADCOM. NTx86.6.1]
    % BCM430N_DeviceDesc % = BCM43XNG_NT61, PCI\VEN_14E4 & DEV_4365 & SUBSYS_2230103C
    % BCM430N_DeviceDesc % = BCM43XNG_NT61, PCI\VEN_14E4 & DEV_4365 & SUBSYS_22D3103C
    % BCM430N_DeviceDesc_HPY % = BCM43XNG_NT61, PCI\VEN_14E4 & DEV_4365 & SUBSYS_2232103C
    % BCM430N_DeviceDesc_HPY % = BCM43XNG_NT61, PCI\VEN_14E4 & DEV_4365 & SUBSYS_22D4103C
    % BCM430N_DeviceDesc_HPY % = BCM43XNG_NT61, PCI\VEN_14E4 & DEV_4365 & SUBSYS_804A103C

    http://h20566.www2.HP.com/hpsc/SWD/public/detail?swItemId=cp_149257_1

  • Satellite A30 was the subject of a cutting and does not start again

    Hello

    In the past two months my Satellite phone has been 'cut' operating environment. It seemed to me that the cooling fans were constantly running at high speed and the air coming out of the (output) rear was warmer then normal.

    I visually inspected the ports of entry at the bottom of the envelope and they do not appear to be blocked by dust or whatever it is. Yesterday, during 'Disc clean-up', he cuts and just wouldn't start again.

    When I try to start the system, the following events happen: first, the "Toshiba" appears as always and then after a few seconds it replaces the logo 'loads Windows' as usual. Then after a few seconds it makes a funny 'click' sound, a blue screen appears for a split second and the system stops again.

    My initial problem could have a overheating? If something has been permanently damaged now?

    I would appreciate any input!

    Hello

    First of all, please give us more details about your model of laptop. It is always important.

    > After a few seconds, he made a funny sound "click", a blue screen appears for a split second
    Looks like a malfunction of the drive HARD and do not overheating what do you think?

    Have you tried to format the whole HARD drive and reinstall the OS from the restore CD? In my eyes, you should first check this possibility.

    But as you probably know nothing is impossible in the word computer laptop and wide. ;) then maybe it s overheating in such a case, the laptop must be professionally checked by a qualified technician.

Maybe you are looking for