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

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    140

    Got it working: float3...

    Got it working:



    float3 pos=gin[0].Position.xyz;
    float3 right=float3(InverseView[0][0],InverseView[1][0],InverseView[2][0]);
    float3...
  2. Replies
    2
    Views
    140

    I was wrong, they should be facing towards the...

    I was wrong, they should be facing towards the camera and should not disappear.
    In above code, I am multiplying position by world matrix, and passing this position into GS, which is wrong. Now...
  3. Replies
    2
    Views
    140

    camera movement in particle system

    I am rendering particles with billboard technique. The problem is that when I move the camera to extreme right side, still they get displayed. But when I move the camera to left side they turn and...
  4. Replies
    4
    Views
    456

    Can you please specify the equations? I am...

    Can you please specify the equations?
    I am using billboard technique to render particles. Here is my part of the geometry shader:



    vec3 pos=gl_in[0].gl_Position.xyz;
    vec3...
  5. Replies
    4
    Views
    456

    bounce.!!!

    bounce.!!!
  6. Replies
    4
    Views
    456

    particle system

    I am implementing particle system in which I want particles to rotate around each other i.e. its own axis along with translational motion outwards from the emitter.
    I have outward motion of...
  7. Replies
    9
    Views
    977

    check your glActiveTexture() and glUniform()...

    check your glActiveTexture() and glUniform() calls for samplers when you attach it to both the textures.
  8. this might not be related to original post but...

    this might not be related to original post but just curious to know, how would rasterizer works in case of 2 triangles who share the edge?
  9. Replies
    9
    Views
    977

    you need to bind same FBO for every side of the...

    you need to bind same FBO for every side of the cube. it would be somewhat like:


    glBindFramebuffer(GL_FRAMEBUFFER,FboObject);
    for (face = 1; face < 6; face++) {
    Draw();
    ...
  10. 1,2. if it works for default, that means it is...

    1,2. if it works for default, that means it is enabled.
    3. you should create a depth attachment (renderbuffer).
  11. checklist: 1. You have cleared depth buffer and...

    checklist:
    1. You have cleared depth buffer and have set the function.
    2. While creating context, you have enabled depth buffer bit.
    3. your depth attachment.
  12. Replies
    6
    Views
    772

    I am still confused with how it works. Initially...

    I am still confused with how it works. Initially we are taking normalized coordinates and multiplying it with inverse projection matrix to get coordinates into view space, but in the reverse step (...
  13. Replies
    6
    Views
    772

    Thanks a lot. I forgot to apply camera...

    Thanks a lot. I forgot to apply camera transformation. :)
    It works now :)
    One doubt, after applying projection matrix, vertices will be in clip coordinate space and not in NDC right? but we are...
  14. Replies
    6
    Views
    772

    I want light frustrum. here is my code of...

    I want light frustrum. here is my code of geometry shader:



    vec4 vertices[]={

    {-1, -1, -1, 1}, { 1, -1, -1, 1}, { 1, 1, -1, 1}, {-1, 1, -1, 1},

    {-1, -1, 1, 1}, { 1, -1, 1, 1}, { 1, ...
  15. Replies
    6
    Views
    772

    How to draw frustrum in opengl

    I want to draw frustrum outlines. What will be my coordinates for these frustrum vertices ?
  16. Replies
    1
    Views
    452

    can you post your code? you need to bind the...

    can you post your code?

    you need to bind the texture when you are drawing to that texture.
  17. one doubt on above question, according to me we...

    one doubt on above question,
    according to me we use render buffer attachment only when we don't have to read data or we use it only when we blit data in framebuffer. so for performing we should use...
  18. Replies
    2
    Views
    565

    Could you please post your code.. However, if...

    Could you please post your code..
    However, if you are trying to avoid the seams, you can use seamless cubemap filtering.
  19. Replies
    2
    Views
    351

    Thanks a lot.!!

    Thanks a lot.!!
  20. Replies
    2
    Views
    351

    GL_CLAMP_TO_EDGE vs GL_SEAMLESS_CUBEMAP

    Can we say that output of GL_CLAMP_TO_EDGE and GL_SEAMLESS_CUBEMAP will be the same?
    What is difference between two in cubemap textures?
  21. Replies
    5
    Views
    793

    Thanks for your reply. And how does...

    Thanks for your reply.

    And how does multisampled textures work?
  22. Replies
    5
    Views
    793

    Thanks for your reply..!! I am still...

    Thanks for your reply..!!



    I am still confused with depth and stencil values, you said fragment shader is executed per sample so depth and stencil values will be calculated per sample of a...
  23. Replies
    5
    Views
    793

    Multisampling in pipeline

    In multisampling, during rasterization there are more than one sample points in each pixel and sample points are decided which constitutes the primitive.

    which attributes are same for each sample...
  24. Thread: Depth Test

    by debonair
    Replies
    4
    Views
    774

    I almost forgot that one. Thanks for your inputs.

    I almost forgot that one. Thanks for your inputs.
  25. Thread: Depth Test

    by debonair
    Replies
    4
    Views
    774

    I am trying to figure out the difference in the...

    I am trying to figure out the difference in the performance of painter's algorithm and z-buffer algorithm. In the first one, pipeline is execute till the end for each fragment while for the second...
Results 1 to 25 of 209
Page 1 of 9 1 2 3 4