Shader or Texture implementation in Mac vs Windows

Discussion in 'Mac Programming' started by kacharo, Feb 19, 2010.

  1. kacharo macrumors newbie

    Joined:
    Dec 1, 2009
    #1
    So, my application is to volume render a gray-scale 3D image.
    It does this by 3D texturing and uses GLSL to display the values in the texture after clamping the values in data to [0,1]. The problem is, that during rendering, when I try to rotate the volume, there are a bunch of values that are wrongly clamped to either 0 or 1, that is, some data from the image is wrongly displayed.

    The same code runs perfectly well on a Windows machine. Is there some difference in the way textures are accessed or clamps are implemented in opengl for windows and mac? Why is there this difference? I have opengl 2.1 on my Mac, and 2.2 on the windows machine if that is of any help.

    Thanks
     
  2. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    There is no OpenGL 2.2. Are you sure you don't mean OpenGL 3.2? If so there are some compatibility issues between the two. OpenGL 3+ is a bit of a change for the API.
     
  3. kacharo thread starter macrumors newbie

    Joined:
    Dec 1, 2009
    #3
    Well... actually the Opengl version on my windows machine is 2.1.2 precisely and on Mac it is 2.1 Nvidia 16.6. Is there API change in those too??
     
  4. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #4
    No they are the same version.

    Hard to answer the question really without more information.
     

Share This Page