Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30

Thread: No idea how to start

  1. #21
    Junior Member Newbie
    Join Date
    Jul 2012
    Posts
    19
    Quote Originally Posted by thokra View Post
    I don't know about the others, but to me it seemed to be. You need to plan ahead. Most interesting programs aren't easily developed without proper knowledge of the programming language and libraries involved. Otherwise you're going to trip and fall many many times. Personally fully I support Alfonse's suggestion.
    Planning ahead, you mean like writing psuedo code?

  2. #22
    Advanced Member Frequent Contributor
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    904
    No, I mean assuming you're gonna face problems you can't solve and can't work around with your current level of knowledge. Every developer faces such problems every once in a while but with a good foundation you're gonna get around them much more easily. Others may suggest a different approach, but working through one comprehensive tutorial (no matter if online or with a textbook, as long as its good) for C++ and OpenGL doesn't hurt. I will take you some time in the beginning but will save you a lot as you go on.

  3. #23
    Junior Member Newbie
    Join Date
    Jul 2012
    Posts
    19
    Quote Originally Posted by thokra View Post
    No, I mean assuming you're gonna face problems you can't solve and can't work around with your current level of knowledge. Every developer faces such problems every once in a while but with a good foundation you're gonna get around them much more easily. Others may suggest a different approach, but working through one comprehensive tutorial (no matter if online or with a textbook, as long as its good) for C++ and OpenGL doesn't hurt. I will take you some time in the beginning but will save you a lot as you go on.
    Oh. Well I finished the book "Beginning C++ Game Programming by Michael Dawson" which is mostly console stuff, but it covers a lot of the groundwork stuff, and I have it for reference should I need it. I've also done a heap of other tutorials, but they were all pretty inferior to this book I have found. I am currently working through this tutorial for OpenGL: http://www.swiftless.com/opengltuts.html

    I find that I can really understand all the code, and I am writing my own code to go with the exercises. I am expecting to hit problems I can't solve eventually, in which case I would invest more time in learning whatever it is I'm having trouble with.

  4. #24
    Junior Member Newbie
    Join Date
    Jul 2012
    Posts
    19
    HEY guys. I once again need some help. I'm trying to use the glut "glutEnterGameMode();"
    method. (glutGameModeString("1024×768:32@60")

    I get an error in my command prompt window:

    freeglut (C:\.exe directory of project) unable to parse game mode string: '1024||768:32@60'
    freeglut (C:\.exe directory of project) The graphics mode is not supported. Problem with requested mode: '1024||1050:32@59'
    freeglut (C:\.exe directory of project) failed to change screen settings.

    Any help is greatly appreciated.

    PS: the program just runs in its standard 300x300 window (or whatever size i give it)

  5. #25
    Junior Member Newbie
    Join Date
    Jul 2012
    Posts
    19
    ...Anyone? this problem isn't yet solved. how Do i make this work???

  6. #26
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,732
    1024×768
    You used a Unicode character, not the lowercase character "x". These are two different characters, and FreeGLUT has no idea what you're trying to give it. Indeed, depending on your compiler mode, it may have no idea what you meant.

    Also, did you really need to bump this thread after four hours? People aren't being paid to answer you; let it happen in its own time.

  7. #27
    Junior Member Newbie
    Join Date
    Jul 2012
    Posts
    19
    Quote Originally Posted by Alfonse Reinheart View Post
    You used a Unicode character, not the lowercase character "x". These are two different characters, and FreeGLUT has no idea what you're trying to give it. Indeed, depending on your compiler mode, it may have no idea what you meant.

    Also, did you really need to bump this thread after four hours? People aren't being paid to answer you; let it happen in its own time.
    Even using lowercase 'x' it gives the same errors and doesnt work

  8. #28
    Junior Member Newbie
    Join Date
    Jul 2012
    Posts
    19
    Click image for larger version. 

Name:	textureproblem.jpg 
Views:	23 
Size:	21.7 KB 
ID:	800
    I need your help yet again, friends!

    For some reason It kinda inverts the red/blue of "picture.bmp" when I add it as a texture to my square. Why is it doing this, and how can I fix it?

    thanks.


    Fixed. I'm such a genius.
    Last edited by Jossos; 07-05-2012 at 05:42 AM.

  9. #29
    Junior Member Newbie
    Join Date
    Jul 2012
    Posts
    19
    Hey guys, I need some help. For some reason the following code isn't working as I'd like it to.

    this is the display function in my: glutDisplayFunc(display); and glutIdleFunc(display);


    void display()
    {
    glColor3f(1.0f, 0.0f, 0.0f); // Sets Color to red <--- Only works for the first frame and then the cube turns white for rest of program
    glutSolidCube(2); // our character to follow

    ... some other code

    glColor3f(1.0f, 1.0f, 1.0f);
    cubeFunc(); // creates a bunch of cubes

    glutSwapBuffers();
    }

    For some reason The program makes the cube that's meant to be red, white like the other cubes created by cubeFunc(). It's truly bizzare and I can't figure out why it's doing this.

    Help is greatly appreciated

  10. #30
    Junior Member Newbie
    Join Date
    Jul 2012
    Posts
    19
    HELP!

    1>InitialFunctions.obj : error LNK2019: unresolved external symbol "unsigned int __cdecl loadtextures(char const *,float,float)" (?loadtextures@@YAIPBDMM@Z) referenced in function "void __cdecl loaderUp(void)" (?loaderUp@@YAXXZ)
    1>C:\Users\Jossos\Documents\lrn2prgrm\OGLPrax7\Deb ug\OGLPrax7.exe : fatal error LNK1120: 1 unresolved externals


    I have no idea what this means. My loadtextures function works fine in other programs. Why am I getting this error???

    Also in properties -> linker -> additional dependencies I have:
    opengl32.lib
    glu32.lib
    glut32.lib
    glew32.lib

    Still doesn't work?!?!?

Posting Permissions

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