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: jra101

Page 1 of 20 1 2 3 4

Search: Search took 0.37 seconds.

  1. Replies
    5
    Views
    7,591

    Re: iPhone Simulator

    Most likely the iPhone GLES simulator is just the native OpenGL renderer with additional error checking and some functions removed (immediate mode, etc).

    So your code will be running full speed on...
  2. Re: Are "state.matrix.*" uniforms really global?

    They are just uniforms, the driver updates them for you.
  3. Re: GL_EXT_framebuffer_object missing on GeForce 7050?

    It's possible that the user has their display set to 16 bit color which would cause ChoosePixelFormat to return a Microsoft software accelerated rendering context.
  4. Replies
    2
    Views
    725

    Re: Cubemap texcoords for skybox?

    The equivalent vertex shader code for that glTexGen setup is:

    gl_TexCoord[0].s = dot(gl_Vertex, gl_ObjectPlaneS[0]);
    gl_TexCoord[0].t = dot(gl_Vertex, gl_ObjectPlaneT[0]);
    gl_TexCoord[0].p =...
  5. Replies
    2
    Views
    302

    Re: glGet call for the Active Texture Unit?

    GLint value;
    glGetIntegerv(GL_ACTIVE_TEXTURE_ARB, &value)
  6. Replies
    6
    Views
    343

    Re: simulating a cubemap

    One possible implementation would be to use a 1x1 RGBA cubemap like this:


    GLfloat faceData[] = { 1.0, 0.0, 0.0, 1.0,
    1.0, 0.0, 0.0, 0.0,
    ...
  7. Replies
    7
    Views
    538

    Re: More than 8 TMU's on NVIDIA GL on XP

    From the OpenGL spec:
    MAX_TEXTURE_COORDS is 8 for the GeForce 8800 so you will see an OpenGL error if you specify a value greater than GL_TEXTURE7.

    The glClientActiveTexture function only needs...
  8. Replies
    2
    Views
    156

    Re: Cg newbie questions

    1) The TEXUNITn semantic when specified after a sampler definition specifies which texture unit you are sampling from. You don't need to use cgGlSetTextureParameter, it is a convenience function.
    ...
  9. Replies
    6
    Views
    2,864

    Re: gl_TextureMatrix

    Yep, it's just a regular matrix, you can put whatever data you want in it.
  10. Replies
    4
    Views
    276

    Re: GLSL vs. Cg (with GLSL profile)

    FX Composer 2.0 will let you write GLSL shaders, yes.

    Yes, the Cg 1.5 compiler can do this.
  11. Replies
    1
    Views
    192

    Re: Problem w/ convolution and filter size

    Most likely the for loops end up executing more than GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV instructions and at that point, the GPU sets the finally color to whatever is in the R0 register (likely the...
  12. Replies
    4
    Views
    598

    Re: Geometry shader with VBO

    Do you mean using the vertex buffer object functions added to OpenGL 1.5 (glBufferData, glGenBuffers, etc...) vs using the ARB_vertex_buffer_object functions (glBufferDataARB, glGenBuffersARB,...
  13. Replies
    4
    Views
    598

    Re: Geometry shader with VBO

    You shouldn't have any problem using geometry shaders with VBOs, what is the exact error your seeing? Are you getting a GL_INVALID_OPERATION when you call glDrawArrays?
  14. Replies
    27
    Views
    1,440

    Re: manual ARB_texture_compression comp/decomp

    DDS is just a file format, it can store uncompressed textures, DXTC/S3TC (same format) textures, cubemaps, 3D textures, textures with mipmaps, etc...

    The S3TC/DXTC texture compression algorithm...
  15. Replies
    11
    Views
    543

    Re: 8800 series texture formats?

    You can get this information by using glGetTexLevelParameter.

    Create the texture as normal, upload the image data via glTexImage*, then do something like this:
    For GL_ALPHA_FLOAT16_ATI you...
  16. Replies
    1
    Views
    231

    Re: Shader compile problem on nVidia

    Internal assembly error is generally a compiler bug. Have you tried the latest NVIDIA drivers? It's possible this has already been fixed.
  17. Re: UV problems moving from fixed func to shaders

    1) You do not have to call glEnable(texture target) when using shaders, only when using the fixed function pipeline.

    2) Your vertex shader would need to compute your texture coordinate like so:
    ...
  18. Replies
    1
    Views
    693

    Re: multi texture - trilinear lerp

    With the fp20 profile the texture coordinates and texture image units are bound together (i.e. you must use TEXCOORD0 to sample from TEXUNIT0, TEXCOORD1 to sample from TEXUNIT1, etc).

    To make your...
  19. Replies
    4
    Views
    438

    Re: binding semantics for uniforms in CG?

    You can set the uniform using the profile specific uniform function:

    arbvp1/vp40: glProgramLocalParameter4fARB(GL_VERTEX_PROGRAM_ARB, 0, ...);
    vp20/vp30:...
  20. Thread: cg experiences

    by jra101
    Replies
    7
    Views
    341

    Re: cg experiences

    Cg compiles to assembly text for various OpenGL extensions and I believe if the extension supports it, you'll be able to use global uniforms.

    Half data types just work for profiles that support...
  21. Replies
    16
    Views
    2,726

    Re: setup for fbo with depth/stencil renderbuffer

    You should be seeing a GL_INVALID_ENUM error from this call:
    When the format parameter is set to GL_DEPTH_STENCIL_EXT or GL_DEPTH24_STENCIL8_EXT the type must be GL_UNSIGNED_INT_24_8_EXT.
  22. Re: Shadow map problem - works fine without shader

    To recompute eye linear texture coordinates the same was as the fixed function you need to do this:
    which can be simplified to:
    given the values you set for your eye plane.
  23. Replies
    2
    Views
    252

    Re: Floating point FBO with VTF

    You are not required to use power of 2 textures for vertex texturing, the GL_ARB_texture_non_power_of_two extension allows you to load NPOT textures for all texture targets (1D, 2D, 3D, etc).

    Of...
  24. Replies
    5
    Views
    330

    Re: static branching with cG ?

    You can assing a uniform to a specific constant register using the Cn semantic.

    For example:

    uniform bool bAddAmbient : C21;
  25. Re: Indecent request: help converting cg to glsl

    1.5 allows you to take a Cg file and compile it into GLSL vertex and fragment shaders.

    For example:

    cgc -profile glslf -entry waterfrag water_frag.cg -o water_frag.glsl
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4