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

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    628

    Here goes the snippet that initializes the buffer...

    Here goes the snippet that initializes the buffer and assign the data:



    void TriangleScene::initialise()
    {
    //return if already initialized
    if(mInitialized)
    return;
  2. Replies
    8
    Views
    628

    glVertexAttribPointer

    Hello forum,

    I am confused about the specification of one of the parameter in the above mentioned function - stride. According to the documentation it says that -

    "Specifies the byte offset...
  3. Replies
    2
    Views
    390

    lighting calculation in eye coordinates

    Hello forum,

    I came to know that we calculate the lighting in eye coordinates. In that case we have to transform the light position to the eye coordinates using the model-view matrix...
  4. highest tessellation level - inner and outer

    Hello ,

    Is there any command to determine the highest tessellation level for the current opengl driver (OpenGL 4.x) installed in the system ?

    Thanks
  5. Replies
    1
    Views
    276

    make a transiton to the modern opengl

    Hello forum,

    I have some GLSL shader code from OpenGL 2. I need some hint to make the transition to the modern opengl GLSL code. Could anyone point me to any references/material that will help me...
  6. Replies
    4
    Views
    410

    Sorry Folks , To get you into this. It was...

    Sorry Folks ,

    To get you into this.

    It was a tiny mistake. It was before :



    glUniform1f((*shader)("BrickTex"),0);
    glUniform1f((*shader)("MossTex"),1);
  7. Replies
    4
    Views
    410

    Hi again, Since i did not get any response...

    Hi again,

    Since i did not get any response from the forum for a while, i thought of posting the whole source for your review:



    #include "defines.h"
    #include "GLSLShader.h"
    #include...
  8. Replies
    4
    Views
    410

    Actually i am , sorry that i did not upload them...

    Actually i am , sorry that i did not upload them in my last post. Here it goes:



    void loadShaders()
    {
    shader = new GLSLShader();

    ...
  9. Replies
    4
    Views
    410

    multitexturing

    Hello forum,

    i am trying to implement a simple multi-texturing sample as follows, but i just see output of one texture:



    void startup()
    {
    loadShaders();
  10. Replies
    6
    Views
    601

    Hi , Check the following function : ...

    Hi ,

    Check the following function :



    void glTexStorage2D( GLenum target,
    GLsizei levels,
    GLenum internalformat,
    GLsizei width,
  11. Replies
    6
    Views
    601

    Hi In the debugger i got the following value...

    Hi

    In the debugger i got the following value for channels , image width and image height. I am using .tga image format as you can see from the snippet:

    channel - 3
    width = 1024
    height = 1024
  12. Replies
    6
    Views
    601

    basic texture mapping

    Hello folks,

    Any there any problem with the following code:




    void loadTextures()
    {
  13. application crashes with the window resize event

    Hello forum;

    I have the following inside the window resize callback :




    void framebuffer_size_callback(GLFWwindow *window,int width,int height)
    {
  14. Fur rendering with the geometry shading technique

    Hi forum,

    I am trying out the basic shell fur rendering from the opengl redbook programming guide and i am having the following fragment link error :



    Compile log: 0(18) : error C7576:...
  15. Replies
    3
    Views
    387

    Thanks for the hint. I made the necessary...

    Thanks for the hint.

    I made the necessary changes within the application and the shader as follows:



    glEnable(GL_CULL_FACE);


    inside the tessellation evaluation shader:
  16. Replies
    3
    Views
    387

    patch rendering and backface culling

    Hi forum,

    i am rendering path primitive with the following command:



    glPatchParameteri(GL_PATCH_VERTICES,16);
    glBindVertexArray(mTeapotVAOID);
    glDrawArrays(GL_PATCHES,0,512);
  17. Thread: vertex data

    by sajis997
    Replies
    1
    Views
    242

    vertex data

    Hello forum ,

    Is it mandatory to have the vertex data of a mesh within [0,1] to render it. I have pulled out vertex data that has the following format:



    float TeapotPositions[289][3] = {
    {...
  18. Uniform Buffer Object and some issues with it

    Hello forum,

    I have implemented a uniform buffer object with simpler settings and now i am confused once i started to try with something complex. And i need some hint to get around this issue....
  19. get the mipmap level from the texture image

    Hello folks,

    It may be is a bit off-topic here. I want to access the information about the mipmap level count from the image header. There are many OpenGL image loading libraries for texturing,...
  20. Thread: blank screen

    by sajis997
    Replies
    1
    Views
    249

    blank screen

    Hello folks!

    First of all , please do not get mad with the fact i am asking quite a primitive issue here that you all have encountered and mastered.

    How to debug a blank screen when you are...
  21. Thanks mhagain, The hint helped. It worked...

    Thanks mhagain,

    The hint helped. It worked fine after the inclusion of



    glPixelStorei(GL_UNPACK_ALIGNMENT,1);


    I went through the documentation, and it is confusing. Some explanation...
  22. Thanks for the hint! I stepped through each...

    Thanks for the hint!

    I stepped through each line and i found the i am having the crash with following call for the second time:



    //specify some data for the texture
    ...
  23. Hi forum, I found at which point the...

    Hi forum,

    I found at which point the application crashes, but did not find the reason behind it. Here i need your help ,folks. I am loading two texture image one after another as follows:


    ...
  24. Hi I could not track down the problem. Here...

    Hi

    I could not track down the problem. Here goes the code snippet . Probably someone within the forum will be able to track what is wrong with the code:



    int main( void )
    {
    //...
  25. the application crashes but runs fine with GDB

    Hi forum,

    I am having a segmentation fault with the tiny application i developed. To track down the problem i ran the app with the gdb and then it runs fine with gdb.

    Where should i look into...
Results 1 to 25 of 47
Page 1 of 2 1 2