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

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    389

    Lock window sizes

    A couple questions about window sizes in OpenGL and GLUT:

    (1) How can i lock a window at 720x480 OR fullscreen(windowed)? (ie: take over manual resize and only have maximize/minimize)

    (2) How...
  2. Replies
    2
    Views
    583

    Works perfect, thanks Mobeen! I understand the...

    Works perfect, thanks Mobeen! I understand the error in the dot product, now. http://oi33.tinypic.com/2je1qir.jpg
  3. Replies
    2
    Views
    583

    GLSL shader problem

    My shader program is clearly not computing vectors correctly, because I get these results:

    NO Shader(fixed-function):
    http://oi34.tinypic.com/2d27zfn.jpg
    Shader
    ...
  4. Replies
    1
    Views
    577

    Solved :) .

    Solved :) .
  5. Replies
    1
    Views
    577

    OpenGL Questions

    I have couple questions that would GREATLY assist me in understanding opengl. Some questions pertain to basic glsl functions, but i think the majority are opengl related, so i posted this in opengl...
  6. Replies
    0
    Views
    626

    Specular shines through object

    My method of calculating the specular of an object has failed. I think the title is self-explanatory enough, but i put together a short, 15-second YouTube video to show you just in case.
    ...
  7. Replies
    11
    Views
    1,772

    O ok, is got white as a color too in...

    O ok, is got white as a color too in RenderMonkey. How can I make lights(ie: light[0]) in RenderMonkey?
  8. Replies
    11
    Views
    1,772

    O ok. Since you said it appears to work in...

    O ok. Since you said it appears to work in RenderMonkey, may I ask what color is sent through gl_Color as default to the shader? And how do you change the value of gl_Color passed to the shader in...
  9. Replies
    11
    Views
    1,772

    Sorry about that....

    Sorry about that. http://my.rapidshare.com/shawn619/12387 Right click the file -> Download
  10. Replies
    11
    Views
    1,772

    Yeah, using a constant color works fine, but I...

    Yeah, using a constant color works fine, but I would still like to know how to change gl_Color's default value of black that is sent to the shader. http://rapidshare.com/files/280276482/practice.rar
  11. Replies
    11
    Views
    1,772

    Unfortunately, both of those ideas resulted in...

    Unfortunately, both of those ideas resulted in the same black screen.
  12. Replies
    11
    Views
    1,772

    Model turns all black in shader

    In both Rendermonkey and Shaderdesigner programs used for testing glsl shading, I get a complete black model while I'm trying to learn and test different shaders. Image:...
  13. Thread: GLSL Setup

    by shawn619
    Replies
    4
    Views
    2,150

    Thank you!

    Thank you!
  14. Thread: GLSL Setup

    by shawn619
    Replies
    4
    Views
    2,150

    I was told to add the shader.cpp & shader.h to my...

    I was told to add the shader.cpp & shader.h to my project instead of just having it in the folder, and now i get these new errors:



    1>------ Build started: Project: TheLightingExperiment2,...
  15. Thread: GLSL Setup

    by shawn619
    Replies
    4
    Views
    2,150

    GLSL Setup

    I get these errors when i try to put together a GLSL example program from a website, just so i can get a feel for shaders. I also get these exact same errors when i try to implement this shader in my...
  16. Replies
    2
    Views
    1,820

    But bare with me here, Given an up-vector of...

    But bare with me here,

    Given an up-vector of always (0,1,0) and a nonzero direction vector (x,y,z), how do i get the rotation angles for the camera to point in the direction of the given vector?
  17. Replies
    2
    Views
    1,820

    Camera rotation from vector

    To start off, i am NOT talking about gluLookAt() to specify the camera rotation,
    so dont suggest i use it. I'm using glRotatef to alter
    camera rotation.

    So far i'v been using angle...
  18. Replies
    5
    Views
    2,129

    I'v been using glColor always and instead of...

    I'v been using glColor always and instead of glMaterial, i dont know if thats a bad thing, but i haven't had any problems.
    Normally i dont set any texture environment. Is MODULATE the same having...
  19. Replies
    5
    Views
    2,129

    Modulate produced the same results as REPLACE. ...

    Modulate produced the same results as REPLACE.

    Setting glColor to white actually solves the problem :)

    However, i'd like to know what the pipeline is the final color of each fragment in OpenGL....
  20. Replies
    3
    Views
    1,393

    I,ll do that, thank you!

    I,ll do that, thank you!
  21. Replies
    5
    Views
    2,129

    Color mixed with texture

    My previous colors are mysteriously being mixed together with my texture. I first use glColor4f to produce a green and red (alpha) colors for some quads. Then i make a quad that holds just my...
  22. Replies
    3
    Views
    1,393

    Solved! Image files werent in the proper...

    Solved!

    Image files werent in the proper directory
  23. Replies
    3
    Views
    1,393

    Texture not showing

    I'm using the SOIL library to load images.

    I don't get any compiling errors, and i have texture mapped images fine in the past with this process.

    Problem: Texture not showing up in quad...
  24. Replies
    6
    Views
    1,913

    Re: OpenGL shader - Missing pixels

    @IIian Dinev

    Changing the code you suggested leaves this result:
    https://www.youtube.com/watch?v=Fp5HUeGaa-8
    and


    // maybe = vVertex.xyz - gl_ModelViewMatrix[3].xyz;

    leaves the same...
  25. Replies
    6
    Views
    1,913

    Re: OpenGL shader - Missing pixels

    Does anyone figure how i would solve the missing pixels problem?
Results 1 to 25 of 49
Page 1 of 2 1 2