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...
Type: Posts; User: shawn619
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...
Works perfect, thanks Mobeen! I understand the error in the dot product, now. http://oi33.tinypic.com/2je1qir.jpg
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
...
Solved :) .
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...
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.
...
O ok, is got white as a color too in RenderMonkey. How can I make lights(ie: light[0]) in RenderMonkey?
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...
Sorry about that. http://my.rapidshare.com/shawn619/12387 Right click the file -> Download
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
Unfortunately, both of those ideas resulted in the same black screen.
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:...
Thank you!
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,...
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...
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?
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...
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...
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....
I,ll do that, thank you!
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...
Solved!
Image files werent in the proper directory
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...
@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...
Does anyone figure how i would solve the missing pixels problem?