OpenGL ES and materials

Nice day

I can clarify some polygons coloring with the material instead of colorVertex? I am specifying all parameters ambient/broadcasts on material with glMaterialf/glMaterialfv; there is no nothing. Of course, I have defined some lights as well.

Any help would be appreciated.

Alain Daniel

I found my problem: you need to disable GL_COLOR_MATERIAL for it to work. If you do not have hardware state will be replaced by the last color used.

Here's a code based on the 3D Cube example application. It's that the new render method

Tags: BlackBerry Developers

Similar Questions

  • the difference between the intermediate process and materials first in BCP formulation?

    I do not understand the difference between the intermediate process and materials first in BCP formulation. could you give me an example to show the difference?

    The intermediate process - questions all the specifications that are used in the

    current specification.

    Raw - questioned the level of material first in the hierarchy.

    Hello Terry,

    It is used in the screen output Formulation based PCA. You can configure different PCA rule which is available in formulating exit point BOM, then when you start a screen of PCA in the base of the exit, you will see this rule.

    And the difference between the intermediate process and raw in PCA, let me explain with an example, I have a configuration hierarchy as below:

    OutputA

    A formulation

    Material X

    Output B

    Formula B

    Material M

    Material N

    If I select the output B in formulating A framework, and when I run a screen of PCA in the base of the output, I have three options:

    High level - it allows to extract A output attributes as PCA review the settings;

    Intermediate processes - it to retrieve attributes material X and B output like BCP review the settings;

    Raw - it will extract attributes of material X, output B, M and N of material material as PCA review the settings.

    I hope this helps.

    Thank you

    Jessie

  • Where can I find documentation for OpenGL ES and bbutil.h

    Sorry if he asked and answered, but I can't seem to locate any actual for OpenGL ES documentation such that it is implemented for the Playbook, but also the functions of bbutil.  I got a flavor by working through the examples of programs, I have a lot of questions.

    Any guidance would be appreciated.

    Thank you.

    Thanks Peter,.

    I've been on this site before looking for something, but could not find documentation.  I guess I don't watch enough hard because at your suggestion, I've looked again and found this

    http://www.OpenGL.org/SDK/docs/man4/

    That's more what I wanted.

    Now, things bbutil.  Maybe I'm not looking pretty hard for this too.

    Thanks again.

  • ETA on OpenGL WebCast and samples?

    Any word on when the OpenGL Webcast/samples will be displayed?

    Nevermind, seems they were reported.

    https://developer.BlackBerry.com/Cascades/documentation/videos/index.html

  • RIP extracted for creative assets Cloud Online Service and materials

    Adobe puts an end to access to our Web site service and the extension of the media.

    I love this service. Extract works very well, it is quite useful. Very good tool.

    And they will kill him. Why? Are they crazy?

    See: updated on the extract for Creative online Cloud Service active and media | Creative blog Cloud by Adobe

    Hello world

    good news, I don't know what happened but it seems that the extract is back!

    Look at your assets.adobe.com

  • CPU scheduling... The tools and materials VM version?

    Hello world

    ESX 4.0 brings improved CPU-planning to the table.

    Anyone know if this feature requires these new tools and machine virtual version 7 on the guests?

    - Or is it a pure host function?

    We have several hundreds of guests 'old' on which we don't need the new features of comments such as hot plug, vmxnet3 etc..

    If those former customers don't mind overall effective for the CPU scheduling, we'll probably leave them with the 'old' tools and VM.

    Thanks in advance.

    Best regards

    Martin Holst

    It is a pure host function and doesn't depend on the VMware Tools.

    ---

    VCP MCSA, MCTS Hyper-V, VMware vExpert 2009, 3/4

    http://blog.vadmin.ru

  • Intel HD Graphics Engine OpenGL 4000 and LR

    LR said the acceleration of the graphics processor has been disabled due to errors when I understand the graphics card is supposed to be supported. Why is this?

    I use LR CC on an Apple Mac Mini with a 2.3 GHz Intel i7 processor with 8 gig ram.

    Thank you

    Colin

    To my knowledge, none of the Intel HD graphics systems, integrated into the CPU, are actually incurred. Even if they were, they don't work very well. Not powerful enough horses.

  • 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?

  • No OpenGL in "save for Web and devices '?

    My Mac Pro has a NVIDIA 8800 GT, appearing among the cards tested for CS5.  I have OpenGL acceleration and set to vertical sync, but I have noticed a significant tearing when you drag an image on in the window "save for Web".

    Well, SaveForWeb not use OpenGL, Quartz-based drawing.

  • An idea for Xbox games because I like the Xbox and Microsoft love

    Hello my name is Bernardas Stanevicius I am so proud of her and thus in England.

    But back to the idea. Let me please introduce myself as a gamer before in my life I had plaid uncountable quantity of games of different kind, and yes one of the ideas for it's game with will be more popular in the world, I'm really sorry that today I won't tell you all the staff of it due to all first I have no guarantees that you will not have to take it and just after use, so I don't really want to be rud so he understand me please right. Simply, I can now give him some clues for her and I hope that you read my letter at the end. In fact for me, I can say some as started difficult to write to all kind of letter for a business like yours, because I never ever did nothing else like what I just barely follow me to speak better English.

    Actually my English according to by me, maybe it's 30% of all languages but bad far I take courage to write to me.

    In me sit player that unprotected not shooting anyone or something like that and no player who, like a fool, spend days and nights to play games without content of understanding of it. Player IAM that search or can say maybe check and analyse the game itself that seeks and where will be better if it was the thought of create like this or like 'here absolutely content chaos' and continue, but yes I want to say about it.

    In my idea I have for you holds the content like that - if you complete the game by idea with I then I think that if minimum, you will be attracted by 70% of players in the world than this game.

    Secondly, it will be the best game forever, I want to say I just are State be it but if it's better.

    Really want to ask you. How can I transfer my idea for you that I can be sure with guarantees as do patents for it or something like that.

    As the agreement of it.

    I hope that I get from you the answers for her.

    And please believe me because I just make sure that you can easily produce out... (it will be huge in the world)

    1You or your game will attract almost all

    2 that the game will be like virus for people no matter what age are.

    3 increase the ration all in one 100 times what you now

    4 Finally, it will be like a nuclear bomb

    players

    5... .just make world side down...

    What the he--I think you get new patches for the new era of the game.

    At the end I'm not going to say something that you go to push me... .so Iam talking not the graphic quality is not how many GB you have to play this game I speak not designers or design is not game engine so I would ask you?

    What I mean?)

    Thank you very much that you listen to me.

    I have the pleasure to write this letter for one of the most important companies of the world.

    I look forward to hear from you.

    Thank you very much and sorry that I take your time.

    Nice look

    Bernardas Stanevicius

    Hello

    Microsoft does not accept unsolicited ideas.

    https://www.Microsoft.com/info/en-XA/cpyright.mspx

    IDEA NO UNSOLICITED SUBMISSION POLICY.

    MICROSOFT OR ITS EMPLOYEES DO NOT ACCEPT OR CONSIDER IDEAS, UNSOLICITED, INCLUDING IDEAS FOR NEW ADVERTISING CAMPAIGNS, NEW PROMOTIONS, NEW PRODUCTS OR TECHNOLOGIES, PROCESSES, MATERIALS, PLANS MARKETING OR NEW PRODUCT NAMES. PLEASE DO NOT SEND ANY ŒUVRE ART CREATIVE ORIGINAL, SAMPLES, DEMOS OR OTHER WORKS. THE SOLE PURPOSE OF THIS POLICY IS TO AVOID POTENTIAL MISUNDERSTANDINGS OR DISPUTES WHEN MICROSOFT PRODUCTS OR MARKETING STRATEGIES MIGHT SEEM SIMILAR TO IDEAS SUBMITTED TO MICROSOFT. SO, PLEASE DO NOT SEND YOUR IDEAS UNSOLICITED TO MICROSOFT OR ANYONE AT MICROSOFT. IF, DESPITE OUR REQUEST THAT YOU NOT SEND US YOUR IDEAS AND MATERIALS, STILL SEND YOU THEM, PLEASE UNDERSTAND THAT MICROSOFT MAKES NO ASSURANCES THAT YOUR IDEAS AND DOCUMENTS WILL BE TREATED AS CONFIDENTIAL OR PROPRIETARY.

    See you soon.

  • OpenGl as underlay to the Cascades project

    Hey all,.

    I am trying to use the OpenGl fusion and stunts to create a underlying opengl in a cascades of the user interface. The project compiles, but it throws segfault on the launch, and I'm not quite sure what I did wrong.

    What is the app is essentially creates a foreign window control, and then a button click on starts a new thread to make an openGl application.

    The openGL code is based on the sample standard proveded my blackberry as well as a few other examples that I have seen in these forums and it works well as a stand alone project.

    I created a public github repository for the project. If someone wants to watch or contribute to the example that I would really appreciate it!

    * USE IN RESPONSE TO THE PLACE GIT REPOSITORY. Created a new one.*

    UPDATE: here's the exact error message I receive:

    "

    127029503 (ThreeDViewer) process ended the SIGSEGV = 1 fltno = 11 78ab813a = ip code (/ proc/boot/img_codec_png.so@png_validate+0x13) mapaddr = 0000113a. REF = 00000007

    "

    UPDATE 2: I think I figureed out!

    Many people, seems to have got it working!

    I don't really know what I did... but the original draft that I submitted a lot of errors related to libraries, dependencies, and I was using the pthreads incorrectly.

    I created a new project from scratch, but also a new repository. The former one was... without the possibility of repair. Start a new project and the repository was faster.

    https://github.com/joelghill/3D-view.git

    Hope this helps other people when you try something similar!

  • Having trouble getting an updated driver at the level of OpenGL 3.0

    I have what is called "integrated graphics" IE graphics card Intel (r) HD on a G6950 processor. Level OpenGL display is 2.1 but I want to run some new SW that requires 3.0 (I'm not a 'gamer', it's BASIC SOFTWARE ENGINEERING). If I ask Microsoft to update my driver he says that everything is up-to-date, if I ask Intel driver update, it indicates a higher number release exists, but for reasons that I do not understand that she refuses to install it and when I called them, they said that they didn't think that they had a "duty" to support the higher level! I understand that I COULD buy and install a 'real' graphics card (the two slots are apparently empty right now) but I do not understand, the on-board system is not THAT bad and the graphical utility shows he did 12 cores - how much should I I need a basic system? I mean I don't think that's the problem of Microsoft really everything, but if it should not be possible to help all around it's much better than this? Only 5 years of the system, I've owned previous systems a lot longer! Besides if I have a third graphics card, on what basis should I expect to support their product that is BETTER THAN the Intel? (I guess it would be the problem of Microsoft if the deficit were to the DirectX level?) And where in the docs for a possible card do I know what level THEY are "ready to support"? It's really blow my mind...

    The graphics Intel(r) HD on a G6950 processor card is limited to the Open GL 2.1.

    It is compatible with DX10 but not DX11.

    It is a hardware limitation. There is nothing that can be done to correct this.

    You may well have owned systems that were older than 5 years earlier, but didn't have never been

    facing material limitations like this, but 5 years is, unfortunately, a lot of time in the years of dog/computer. Especially with graphics.

    Apparently your cpu was released in 2010, and I think she's a first version of the most recent

    Graphics card Intel HD, which is integrated into the cpu vs a chip on the motherboard, but is a little too

    early to Open GL 3.0.

    «.. . If I get a third party graphics card, on what basis should I expect to support their product is BETTER THAN the Intel? »

    Intel is not a graphics support period long. It is at least partly due to the fact that drivers is modified according to motherboards, which requires that download you the drivers from the

    card mother mfg if you want a guarantee of stability and the card mother mfg and laptop mfg

    often provide an update of the driver after one or maybe two years.

    -However, Intel updates often drivers for their graphics for a longer period than the card mother mfg, so that you can sometimes download latest drivers for graphics card intel directly from

    Intel or even through updates of Windows (the "optional" section) and have no problem.

    MFG of dedicated graphics cards tend to support their cards with the new drivers for more

    periods ie - Nvidia drivers latest still support graphics cards, released in June 2010.

    They always supported the gpu in their pilots in July 2014 which have been published in ' 05

    Note that while pilots can still support these 'old' cards, there is little or no benefit

    update the drivers for the graphics over three years and "optimizations".

    more addressing the most recent series, in particular cards the last series (in large part because)

    the 'old' series was optimized to the maximum).

    Which brings back us to the motherboard. You may need an update to the BIOS of your motherboard

    to be able to recognize a current or previous series dedicated graphics card (with Nvidia is

    the 700 and 900 series cards).

    This is assuming that your motherboard has a recent enough BIOS update available.

    Then we come to the part concerning power. You should also check the power supply

    Watts/amps to run a card dedicated graphics and loose power supplies

    ability to produce current and complete stability current with age.

    It is less of a problem if you were to add a graphics card down range, as they can often operate

    off the PCIe slot, without electrical connection additional required.

    -Short answer...

    If you need this software for professional (or use the 'new' version at all).

    You can get a more recent machine, if you want to avoid complications.

    And with a new machine, you will not need to use a dedicated graphics card. The new Intel HD graphics

    are much more powerful than what you currently have, especially on the i5 cpu.

    -My 'old' i5 3570 cpu with HD 400 in 2012 can be exhausting to Open GL 4.0.
    In my view, are also capable of up to Open GL 4.0 i3 with HD3000, but have not verified this.

    You should always beware of what new cpu you use as not all of them have an integrated graphics card.

    EDIT: Did a double check and found this on the site of Open GL (this would be for the continued support and would not affect the Intel HD graphics which is able to use OpenGL 4.0) -.

    "Intel does not provide an implementation of OpenGL correct and up to date for their Integrated GPU. There is nothing that can be done about it. ATI and NVIDIA provide good support for their Integrated GPU. »

    .

  • OpenGL signature question about Blackberry Storm

    I have try the simple example of there Example OpenGL, but I have used "Module OpenGLSample attempts to access a secure API" while trying to run on a Blackberry Storm 9500.

    Here is the log:

    S Java Exception - RuntimeException - 5/5 07:35:57

    | Error starting OpenGLSample: Module 'OpenGLSample' trying to access a secure API.

    | net_rim_bb_framework_api-1 (4A9DC37F)

    |  ApplicationEntryPoint

    |  run

    |  0x425A

    | net_rim_bb_ribbon_app-3 (4A9DC8A3)

    |  ApplicationEntry

    |  invoke

    |  0x4D8

    | net_rim_bb_ribbon_app-1 (4A9DC8A3)

    |  RibbonLauncherImpl

    |

    |  0 x 7479

    | net_rim_bb_ribbon_app-1 (4A9DC8A3)

    |  RibbonLauncherImpl

    |  launch

    |  0x565D

    | net_rim_bb_ribbon_app (4A9DC8A3)

    |  ApplicationMenu

    |  trackwheelClick

    |  0x9F8

    | net_rim_bb_ribbon_app (4A9DC8A3)

    |  ApplicationMenu

    |  navigationClick

    |  0xA18

    | net_rim_cldc-12 (4A9DC2EC)

    |  Screen

    |  dispatchTouchEvent

    |  0x1E2B

    | net_rim_cldc-13 (4A9DC2EC)

    |  UiEngineImpl

    |  processMessage

    |  0x7B1F

    | net_rim_cldc-8 (4A9DC2EC)

    |  Application

    |

    |  0 x 2803

    | net_rim_cldc-8 (4A9DC2EC)

    |  Application

    |  processNextMessage

    |  0x19D0

    | net_rim_cldc-8 (4A9DC2EC)

    |  Application

    |  enterEventDispatcher

    |  0x190D

    | net_rim_bb_ribbon_app-1 (4A9DC8A3)

    |  RibbonLauncherApp

    |  main

    |  0x502F

    a system - error starting OpenGLSample: Module 'OpenGLSample' trying to access a secure API. 5/5 07:35:57

    a system - the linker error: "VerifyError" for OpenGLSample - 5/5 07:35:57

    a system - Module 'OpenGLSample' trying to access a secure API. 5/5 07:35:57

    a system - module 1657 cannot reference javax.microedition.khronos.egl.EGL11 - 5/5 07:35:57

    a system - VM:LINK OpenGLSample - 5/5 07:35:57

    a system - MWC: BlackBerryClient (4492) No sig 0 x 414252 - 5/5 07:35:51

    a system - the linker error: "VerifyError" for OpenGLSample - 5/5 07:35:45

    a system - Module 'OpenGLSample' trying to access a secure API. 5/5 07:35:45

    a system - module 1657 cannot reference javax.microedition.khronos.egl.EGL11 - 5/5 07:35:45

    a system - MWC: OpenGLSample (1657) No sig 0 x 33-5/5 07:35:45

    a system - VM:LINK OpenGLSample - 5/5 07:35:45

    I signed the application with the signature keys provided by RIM, and btw it indicates that the signature is optional. So why couldn't start the application? I'm quite lost here.

    Thank you

    OpenGL ES is supported only on the 9520 9550 and 9650 (not yet published). The 9500 does not support OpenGL ES and receive an error if you try to do.

    That's why it says "cannot reference javax.microedition.khronos.egl.EGL11" because it does not exist.

  • I want to hang the Tower up to my big screen and instead of using a keyboard, I bind a tablet that I can use as a keyboard and to manipulate objects on the screen in real time

    I am in the middle of do a remodeling and think about a furture upgrade my PC at home, I want to hang the Tower up to my big screen and instead of using a keyboard, I want to connect a tablet that I can use as a keyboard and to manipulate objects on the screen in real time. Is there a way to do this?

    (1) before the PC upgrade, please read the complete technical documents for all devices

    you want to go to upgrade

    (2) it is the first thing to do to make complete lists of materials you want to change.

    Compare specifications detaily, note important diference between many of the same features

    (3) for more information on some devices and materials, see link below

    http://www.Microsoft.com/en-us/Windows/compatibility/WIN8/CompatCenter/home?language=en-us

  • How can I prevent tapes and make smooth gradient?

    Hello

    I work on a few portraits and need to place them on a new solid color background. I want to smooth slope on the bottom, but they look very "banding." I have read a few forums here and checked the box, "dither" on, noise added, tried 16 bits instead of 8-bit, etc., but they always seem to bands. I use MacBook Pro with Photoshop CC. - does anyone know the solution for this? Thank you!

    As long as you are working in 16 bit depth, all banding beyond normal 0-255 steps of a pipeline video 8-bit is in your display system. Table of the Panel itself, or a calibration in the video card, or more rarely of the profile. Laptop screens are not up to the highest standards in this respect, regardless of the make and model.

    In addition, files ProPhoto RGB displays with shadow of the strips with GPU in 'Normal' or 'Advanced' mode This is probably caused by errors inherent in OpenGL code and willingness to Adobe.

    The only exception to this is the jpeg compression, which often introduces the color banding. This band is real and will appear in the press.

    It could also be that you have display of the strips as indicated above and separate from print due to a defective printing profile strips.

Maybe you are looking for