Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: reaktor24

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    590

    What platform are you developing for? Mobile?...

    What platform are you developing for? Mobile? Seems an unusual error in this day and age.
  2. This might be similar to a problem I came across...

    This might be similar to a problem I came across - apologies if not. I found that I had to reverse all my data when converting a 3D object to Android format. I realised the Android CPU uses...
  3. Replies
    8
    Views
    653

    You could always try Blender which is a free 3D...

    You could always try Blender which is a free 3D modelling package: https://www.blender.org/
  4. Replies
    1
    Views
    248

    Try the NeHe tutorials as they're where I started...

    Try the NeHe tutorials as they're where I started my OpenGL journey many moons ago. They are a little out of date now with the advent of shaders but I think they're still useful for beginners. Here...
  5. Replies
    3
    Views
    382

    It's quite simple. You are loading the texture...

    It's quite simple. You are loading the texture image 60 times a second - overwriting the texture1 object with same thing over and over and over and over and over and over etc. It is not how textures...
  6. Replies
    5
    Views
    473

    Do you want it to move in 90 degree chunks but...

    Do you want it to move in 90 degree chunks but slowly? Is that correct? If it is then just have a rotation variable which holds the current angle and when a key is pressed simply keep increasing the...
  7. Replies
    5
    Views
    473

    With a rotation matrix. Simple.

    With a rotation matrix. Simple.
  8. Replies
    3
    Views
    382

    void drawCuboid() { GLuint texture1 =...

    void drawCuboid()
    {
    GLuint texture1 = LoadTextureRAW("aa.bmp", 0);

    glBindTexture(GL_TEXTURE_2D, texture1);
    glColor3d(1, 1, 0);
    glBegin(GL_QUADS);
    glTexCoord2f(1.0, 1.0);...
  9. Hve you tried: glRotatef(-angle, 0.5f, 1.0f,...

    Hve you tried: glRotatef(-angle, 0.5f, 1.0f, 0.5f);
  10. Replies
    3
    Views
    462

    You need to research texture wrapping using...

    You need to research texture wrapping using GL_TEXTURE_WRAP_S and GL_TEXTURE_WRAP_T.

    Here is a link with some info:...
  11. Really it is better to create the...

    Really it is better to create the modelview-projection matrix once per frame - not once per vertex.

    Try something like this in your main program. I use my own matrix class for transformations but...
  12. Ok I figured out what was wrong. My object was...

    Ok I figured out what was wrong. My object was tiny and in the corner. I had changed the projection but was still drawing as though it was a 3D projection with a zoomed view. I forgot objects need to...
  13. You need to make sure your aspect ratio is 1:1...

    You need to make sure your aspect ratio is 1:1 like this: When you setup your rendering context setup the aspect ratio last:



    // Grab hold of this windows Device Context
    if ((hDC =...
  14. Unable to get a working orthographic projection

    I am unable to get my orthographic projection matrix to display a simple spinning triangle. It works correctly with a perspective matrix but not an orthographic one. Do the objects have to be...
  15. Replies
    4
    Views
    965

    Awesome, it works perfectly now! Thank you very...

    Awesome, it works perfectly now! Thank you very much for the help. :)
  16. Replies
    4
    Views
    965

    Hi. Thanks for the reply. I don't actually use...

    Hi. Thanks for the reply. I don't actually use any rotation despite the M_Rotation matrix. That is just really an identity matrix with no transformations. I tried out what you suggested and the light...
  17. Replies
    4
    Views
    965

    Transforming the lights position

    Not sure whether to put this in the beginners section or advanced but anyway. The problem is that I am having issues with my lighting position. First in my program loop I create a standard viewing...
  18. Thread: beginning

    by reaktor24
    Replies
    4
    Views
    1,403

    If you are new to shaders and OpenGL then I would...

    If you are new to shaders and OpenGL then I would buy the OpenGL ES Programming Guide. Despite being ES it is still relevant for desktop GL as well and is one of the latest books on the subject of...
  19. Hi menzel. Thanks for the reply. Yes it seems to...

    Hi menzel. Thanks for the reply. Yes it seems to work even though it seems like a bit of a hack job. :p
  20. How to draw polygons with textures and others without

    Hi

    Is it possible to have an object with texturing and plain vertex colours with no texturing added? I have a race car object and I am texturing a number to the side but want the rest of the...
  21. Replies
    1
    Views
    15,303

    Inverse Matrix

    Hi

    Simple question. How do you calculate the inverse of a matrix using C/C++ code? I have read lots of articles explaing in excruciating detail about the inverse matrix and how to work it out on...
  22. Replies
    8
    Views
    11,289

    Hi. Not getting much luck here am I. Maybe I...

    Hi. Not getting much luck here am I. Maybe I should have started a new thread. Could a mod move the above post to a new thread please. I read the rules about not posting in old threads. Sorry about...
  23. Replies
    8
    Views
    11,289

    I am having a similar problem but my code is very...

    I am having a similar problem but my code is very different to the one in this thread. Basically I am using shaders to do my rendering and I have a couple of objects positioned in the scene and they...
Results 1 to 23 of 24