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

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. OK I think I'm narrowing this down now but I...

    OK I think I'm narrowing this down now but I still need a bit of help with this.

    I'm pretty sure the problem lies in the creation of the depth map. i.e it's not getting created properly.

    I have...
  2. OK I think it is close to being finished. I have...

    OK I think it is close to being finished. I have modified my transformation code on my cube object like this:


    First the main rendering code


    void RenderScene()
    {...
  3. Quick Update: First the good news. I have...

    Quick Update:

    First the good news. I have managed to fix all OpenGL errors! So that is quite good news.

    More good news. I have a shadow on the screen!

    I managed to get it to this state by...
  4. I keep getting errors about missing .pdb files if...

    I keep getting errors about missing .pdb files if I try to step out of the callback function so I assume it must be something to do with that.

    EDIT:

    So anyway I've given up with the callstack...
  5. Thanks for that clear explanation. Seems simple...

    Thanks for that clear explanation. Seems simple enough.

    Unfortunately I don't get any ShaderProject.exe stack frames. All I can see is a list of 12 DLL frames.

    I've just tried it from a couple...
  6. I have never used the call stack before so I'm a...

    I have never used the call stack before so I'm a bit of a beginner in that respect.

    It doesn't appear to be telling me much. Once inside the debug callback function all I see in the callstack is...
  7. Hi Dark Photon. Thanks for the response. I am...

    Hi Dark Photon. Thanks for the response. I am using NVidia Geforce GTX980 so you are correct. Plus I am also using a debug callback function which creates a log file. How do you detect the function...
  8. Yes it looks like you're right. I changed them...

    Yes it looks like you're right. I changed them all (count values) to 2 and I am getting this error message in my debug log file:

    API:OpenGL Error [MAJOR PROBLEM] (1282) : GL_INVALID_OPERATION...
  9. You're right I forgot to enable error checking. I...

    You're right I forgot to enable error checking. I have it turned off by default. I get this error:

    API:Undefined Behavior [Medium Warning] (131222) : Program undefined behavior warning: Sampler...
  10. OK, I've managed to record a short clip using...

    OK, I've managed to record a short clip using nVidia GeForce Experience recording facility. It seemed to work OK so I'm now uploading to YouTube.

    Here is the direct link:
    ...
  11. Problem getting shadow mapping to work correctly

    So I have spent the last few days trying and failing to get this shadow mapping working. Basically all I am getting is a rendering of a mostly white scene albeit shaded via lighting so you can see...
  12. Replies
    3
    Views
    943

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

    What platform are you developing for? Mobile? Seems an unusual error in this day and age.
  13. 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...
  14. Replies
    8
    Views
    1,023

    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/
  15. Replies
    1
    Views
    411

    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...
  16. Replies
    3
    Views
    638

    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...
  17. Replies
    5
    Views
    728

    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...
  18. Replies
    5
    Views
    728

    With a rotation matrix. Simple.

    With a rotation matrix. Simple.
  19. Replies
    3
    Views
    638

    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);...
  20. Hve you tried: glRotatef(-angle, 0.5f, 1.0f,...

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

    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:...
  22. 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...
  23. 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...
  24. 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 =...
  25. 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...
Results 1 to 25 of 35
Page 1 of 2 1 2