Getting started using c++ and Opengl

Hi all,
I hope this is the right section to post this question. I am trying to getting started in developing little games in C++ usign Opengl. I have tryed to look for some documentation and understand how to set up my dev environment. I am a little bit confused on wich version of OpenGl to install and whether or not I need to support it installing particular drivers.
This are the information on my VGA controller obtained typing "lspci -v"
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
        Subsystem: Dell Device 0571
        Flags: bus master, fast devsel, latency 0, IRQ 35
        Memory at f2400000 (64-bit, non-prefetchable) [size=4M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 5000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: <access denied>
        Kernel driver in use: i915
        Kernel modules: i915
01:00.0 VGA compatible controller: NVIDIA Corporation GF116M [GeForce GT 555M/635M] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: Dell GeForce GT 555M
        Flags: bus master, fast devsel, latency 0, IRQ 39
        Memory at f0000000 (32-bit, non-prefetchable) [size=32M]
        Memory at c0000000 (64-bit, prefetchable) [size=256M]
        Memory at d0000000 (64-bit, prefetchable) [size=64M]
        I/O ports at 4000 [size=128]
        Expansion ROM at f2000000 [disabled] [size=512K]
        Capabilities: <access denied>
        Kernel driver in use: nouveau
        Kernel modules: nouveau
Any help is much appreciated!

Not sure I understand what you're trying to do/install and why based on your post. But since it sounds like you're trying to jump right into the middle of it and I "got started using c++ and opengl" without having any clue of anything a week or so ago, here's some random stuff that would have saved me a lot of time:
- I don't think nouveau is so great for opengl - you're probably better of using the proprietary nvidia driver (which isn't great for development, but still, better / necessary). You seem to be on a laptop? Then you might need one of those bumblebee / optimus things which makes the situation a lot worse. I never had to use those things, but based on various random posts I came across while I was breaking & fixing my own opengl stuff, everything seems to be even more confusing & glitchy/breaky for the people who have to use it on TOP of the whole rest. You might waste a lot of time looking for errors in your code when there are none and it's really just that optimus/bumblebee thing messing stuff up. Which is TERRIBLE if you're just getting started, so you probably should think about using a different machine with a "real / normal" graphics card for this until you have seen "how opengl is supposed to behave" without this additional source of messy breakage.
- New to c++ and confused with including / linking etc? If so: Try cmake (google "findpackage.cmake" for whatever you need, look at some cmakelist.txt's for programs similar to what you want to write) - that might get you started a lot faster while you're still not sure what you need/want and enables you to learn the boring stuff piece by piece when you really need it (as opposed to all in one giant boring heap before you can even try anything fun).
- Kdevelop (or any IDE that has some support for cmake + GOOD syntax completion) also helps a LOT in the beginning.
- For a start, you just need a modern opengl context. The rest  (glew, glut, opengl, etc) will probably somehow fall into place once you made your choice there and just start with that. SFML is probably the most comfortable to offer an opengl context for a beginner (SDL can be a bit stubborn if you're as clueless as I was. I also tried several others and they all seemed rather "brittle", leading to confusing results if you try to use them while not having much of a clue yet).
- If you already know some C++/opengl, "those pesky :: 's" don't confuse you as much as they did me when I took a first look, and you don't necessarily want to try doing everything very lowlvl (write your own shader class etc) at first until you understand stuff, you can also try to use qt5's opengl context from the start (I'm switching to it now that I need a GUI in addition to raw opengl).
- After you manage to draw some obsolete opengl stuff (glbegin() tutorials are everywhere) to confirm that you managed to create your gl context, it probably makes sense to forget about "glbegin" again right away and focus on ShaderProgram/VAO/VBO. It might make sense to to create + render a VAO manually first to get a better understanding of what they are/do... but on the other hand, you can also safe a lot of time if you use premade ShaderProgram/VAO/VBO classes (I think qt5 has all of those) instead right away.
- At the point you manage to get a VAO rendered in your context, you probably won't rely on finding information specific to your framework (p.E.: linux/qt/nvidia stuff/sfml) so heavily any more and can look for general opengl / VAO / VBO / Open Shader Language stuff - which is all over the place and easy to find.
- Limiting your googling to THE LAST YEAR when you look for opengl/c++ stuff might get you a lot less confusing / obsolete results.
Good luck!
Last edited by whoops (2015-02-17 09:07:16)

Similar Messages

  • I bought a $15 app GTA Vice City a while ago and I just started using it and it doesn't work. I checked all the requirements and my laptop meets all of them. I also have contacted Rockstar Games and they didn't help. Can I get my money back? Its annoying.

    I bought a $15 app GTA Vice City a while ago and I just started using it and it doesn't work. I checked all the requirements and my laptop meets all of them. I also have contacted Rockstar Games and they didn't help. Can I get my money back? Its frustruating.

    Hi...
    Apple's policy states that, "all sales are final" >  iTUNES STORE - MAC APP STORE - TERMS AND CONDITIONS
    But since you are not getting any help from the developer, you can use the email form to contact Apple and ask for a refund >  Apple - Support - Mac App Store - Contact Support.
    No guarantees.

  • I recently started using mail and I am always getting "can't find the server or server is busy.  I have AOL what should I do.

    I recently started using mail and I am always getting "can't find the server or server is busy.  I have AOL what should I do?

    Movies are not stored in your iCloud account unless you add them in the theater feature of iMovie version 10.

  • How do I use Qt and OpenGL with Visual Studio

    Hi! I mainly want to program in C++ and I want to use Qt and OpenGL with Visual Studio.
    I am currently revising C++ and later on i am going to start reading Qt and OpenGL. I have a background of
    Embedded firmware design(C and Assembly).
    The Visual Studio Version I have is 2013 ultimate. How do I use Qt and OpenGL with Visual Studio?
    Thanks
    Alexandros

    Hi ClassicalGuitar,
    The forum supports VS setup and installation. And your issue is not about the forum. I will move the thread to off-topic forum. Thanks for your understanding.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • I don't know much about computers, so please be patient. I started using Airport and I recently noticed a "network" option right below "Macintosh HD". When I click on "network" it shows "b67446000000" with a computer monitor icon and "connection fail

    I don't know much about computers, so please be patient. I started using Airport and I recently noticed a "network" option right below "Macintosh HD". When I click on "network" it shows "b67446000000" with a computer monitor icon and "connection failed". When I right click on this and select "Get more info" it displays nothing, just the spinning wheel. When I select "Connect As" it asked for my password to connect to "Server b67446000000". This may have been on my computer since I got it, I never paid much attention. Is this part of the operating system or has someone hijacked my computer? Why would I need a server...it's just me and my one computer? Maybe someone has hacked in through Airport? Any help will be greatly appreciated. Thanks!

    Is your airport a Time Capsule.. if so it is able to serve files on the network.
    The number is the MAC address of the network in the router.
    Please reset the apple router whatever is and redo the setup.. this time give it a simple name.. eg TCgenX where X is the actual gen of the unit and give it a simple wireless name.. TCwifi and a simple password with 8-20 characters mix of upper and lower case and numbers.
    Perhaps even better give me a screenshot from the computer of the airport utility showing me the Airport with its MAC address.

  • I forget my apple id for icloud thin... icant get starting use the ipad

    i formated my ipad then i get a proplem i forget my apple id for icloud then i cant get starting use ipad

    You should be able to skip the iCloud setup process on first startup. Look around for a skip button.
    If you would like the setup iCloud though, follow the following steps:
    If you know the answers to your security questions
    Go to My Apple ID (appleid.apple.com).
    Select “Reset your password.”
    Enter your Apple ID, then select Next.
    Select “Answer security questions” as your authentication method. Select Next.
    Select the birth date associated with your Apple ID, then select Next to begin answering your security questions.
    After answering your security questions, you'll be asked to enter and confirm your new password. Select Reset Password when done.
    If these steps didn't help you to reset your password, contact Apple Support.
    If you have access to the email addresses associated with your Apple ID
    Go to My Apple ID (appleid.apple.com).
    Select “Reset your password.”
    Enter your Apple ID, then select Next.
    Select “Email authentication” as your authentication method. Select Next.
    Apple will send a password-reset email to the primary address or verified rescue address associated with your Apple ID. Didn't receive the email?
    Open the message and select the link to reset your password.
    When the My Apple ID page opens, enter and confirm your new password, then select Reset Password.
    Please rate this post if it helped

  • I just got an Iphone 4. How do I get started using it?

    I just got an Iphone 4. How do I get started using it?

    Start here:
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • New To Iplanet app server.Can some one help me getting started by delpoying and calling one of each of these:JSP,Servlet,EJB.Tried with iplanet docs..didnt quite get it. thanx

     

    Hi,
    What is that you are trying to accomplish ? Is it deployment or
    trying to develop applications ? Are you getting any errors ? If so,
    please post them to help you. I think the documentation is the best place
    for you to begin with.
    Regards & Happy New Year
    Raj
    Arif Khan wrote:
    New To Iplanet app server.Can some one help me getting started by
    delpoying and calling one of each of these:JSP,Servlet,EJB.Tried with
    iplanet docs..didnt quite get it. thanx
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Get started with file and font sync

    Get started with file and font sync how do you access the 700 free fonts?

    Have you requested and received an email that you're eligible for File and Font Sync early access?
    If you have, go to creative.adobe.com and download the latest version Creative Cloud desktop after you log in with your Adobe ID.
    Then when installed, you should be able to click on Fonts to browse on the Typekit website.

  • I just started using iCal and I cannot double-click to add an event. Did I accidentally change something?

    I just started using iCal and I cannot double-click to add an event. I could when I started a couple of hours ago. Did I change something? Can I change it back?

    Kristacattack,
    The tracing results in separate paths. The straight lines show where the open filled paths start and end.
    In the first sample, you may drag with the Direct Selection Tool over the top where the straight lines meet and Ctrl/Cmd+J to join the the paths; you may do the same elsewhere to create continuous/closed paths (hopefully, you will only drag over the two endpoints, otherwise you will have to find and delete superfluous Anchor Points).
    This may be better than just cheating with the Live Paint Tool because the artwork becomes more coherent.
    Edit: Hi Monika.

  • Where do I get started with OAS and JSP ?

    Where do I get started with OAS and JSP ?
    Resources?
    Please point me in the right direction!
    Post and/or email me at [email protected]

    The simplest way is to read OAS4082 Documentation:
    Developer's Guide: JServlet and JSP Applications.

  • We started using Match and now playlists are gone.   Can we get them back?

    My wife has spent a ton of time creating playlists but our music was all over - new computers and updated iPads and phones - we started using match.   Now the playlists are gone.   How can I get them back before I am gone.

    We have 3 ipads and 2 iphones.  She had the playlists on her ipad and iphone.  Since we started using match - they are gone now.  All the music is there.  Thank you for all of your help!

  • Getting started with air and android

    Hi,
    I made a game using flash as3 technolgy some time ago, that is deployed in a website. I've been studying the possibility of porting the game to mobile devices (android). Is that possible? Wich level of effort am I going to need? Wich tools from adobe am I going to need?
    I think that's all for now... thanks!

    That's great! I also bought a book in amazon to help me to get started
    Thanks!!
    Sent from my iPhone
    El 09/04/2011, a les 23:20, Saumitra Bhave <[email protected]> va escriure:
    The development process remains almost same. In flash development you create swf and put it in HTML using object or embed tag. In Adobe AIR you create SWF and package it using the ADT tool which comes with AIR SDK.(But, With adobe AIR you get some more APIs which you don’t have in Flash)
    While packaging you can tell the adt to package for Android, iOS or any desktop. And provide the required parameters along with the SWF and application xml.
    Once you create the apk. You can install it on actual device or android simulator.
    For testing purposes you can generate a self signed certificate using java -keytool command.
    You can google any of the following things to get started.
    1. Android SDK, adb tool, creating Android emulator
    2. AIR adt - package command for android
    3. java -keytool help
    >

  • Getting Started with Flex and Java RPC for Free?

    Good Morning,
    Please forgive me if this is the wrong place to post- I'm
    just having trouble wrapping my head around what is and what isn't
    available for free in the Adobe Flex world.
    I've been working on an application for the last few months
    using Open Laszlo (
    http://www.openlaszlo.org/),
    but I've been running into frustrations with their lack of
    up-to-date documentation, and I've found it difficult to bring new
    people into the project, since the set of users who know it is so
    small.
    While I do like that I can compile to DHTML, that's not
    enough to hold me there.
    I've been looking into Adobe Flex, and it seems like a good
    alternative- I'm comfortable paying $500 for the IDE-
    I use Eclipse currently, so having a plugin for it sounds
    ideal. That said, when I look into ways to talk to a Java backend,
    everything points to Flex Data services, which is now part of some
    larger package costing tens of thousands of dollars.
    I don't need advanced messages, or data synchronization, as
    nice as it would be.. All I really need is the ability to call a
    Java method, and get an object back, which I can then work with in
    Flex.
    I see the forum message that asks
    "How
    do I 'do' Flash for free?, but this only talks about RPC very
    broadly. Given that the message is from over a year ago, I thought
    it would be better form to start a new topic, than replying to it.
    Can someone explain to me what components I'd need, both on
    the client side and the server side?
    Is there a set of manuals that explain how to do Flex RPC
    from Java?
    Can Flex compile to any versions of flash earlier than 9?
    (Flash 6/7 is still in wide deployment)
    Do I want to start using Flex 2, or Flex 3? Are the
    components compatible? Will the F3 docs be ready?
    Finally, where can I purchase the Charting components? The
    ability to create charts such as
    this
    overcome a decent price barrier.
    Thank you for any insight you can offer, and direction you
    can provide.

    quote:
    Originally posted by:
    cunparis2day
    On our project they made a proxy in java where they passed in
    the name of the method as a string, and an array of objects for the
    parameters. The proxy then sent the request via RMI and returned
    the result. Kind of a hack but they say it worked (I wasn't here
    when they did it).
    What did the RMI talk to? Are there docs on this?
    quote:
    Another approach, generate the proxy from the java
    interfaces. Or better yet, generate it dynamically with CGLIB.
    quote:
    Finally, I'm investigating using Mule for the integration.
    Let me know what you think about those suggestions.
    We have our own messages, but how would MULE translate them
    to Flex?
    You know quite a bit more about this, can you take a step
    back, and explain?

  • How I get started using voice input with mac mail?

    Just got a new Imac.  have had Apple computers for a long time.  Want to start using voice input with mail.  How do I get started?

    Apple's voice input options are the following:
    Dictation
    This allows you to speak a phrase and have the system enter it as text in any text field, be it a name and address form or a text editor like Pages or Word. The settings for this service are in the Dictation system preferences, and by default you activate it by pressing the Fn key twice in a row and then speak the desired phrase after you hear the bing sounds.
    Speakable Items
    This option allows you to somewhat control the Mac's interface elements by speaking key phrases to the system. This option is enabled in the Accessibility system preferences, and is at the bottom of the listed services. In here you can turn on the service and calibrate it to properly hear your voice, set a "listening key" (similar to the Fn key for Dictation), and then enable various command libraries.

Maybe you are looking for