Exposition:
1) My viewport is 800x600
2) I have tex1 = frame buffer object; rendered to a texture, 800x600
3) I have tex2 = frame buffer object; rendered to a texture, 800x600
Now, I want to create the following image on the screen:
tex1 _on top of_ tex2.
Where tex1 is black, display tex2's pixel.
Else, display tex1's pixel.
Is th...
i want use a specific customized algorithm to generate mipmaps for some renderable textures (R16F & RGBA16F).
All needed textures' mipmaps are pre-enabled by using glGenerateMipmapEXT().
The biggest problem so far is to render into 1+ mipmap levels.
More precisely,
this works like a charm:
...
glDrawBuffer(GL_COLOR_ATTACHMENT0_EXT);
g...
i've a header file called base.h which has all initial display and stuff like,
my main aim is to simulate a robot with degree of freedom.
class center_rods
{
public:
center_rods()
{
}
void draw_center_rod()
{
glPushMatrix();
glTranslatef(0,1,0);
...
I'm building a program that uses weather simulation using OpenGL. I want to include Google Earth imagery with zoom and pan. Is this possible? Or can it be done the other way round, including OpenGL graphics inside Google Earth? Thanks!
...
Currently it is floating on top of my rendered window, i dont think thats good for few reasons:
1) i waste rendering time for rendering stuff that isnt visible.
2) it must be rendered every frame again when i wouldnt be updating the whole statusbar every frame anyways.
So how i could create a window where it leaves space for my statusba...
I was wondering about how bits are organized on floats (4 bytes), double (8 bytes) and half floats (2 bytes, used on OpenGL implementation).
Further, how I could convert from one to another?
...
Does anyone know of a good text editor implemented inside of OpenGL?
I'm writing this OpenGL app, and I need some basic text editing apps inside of the app. [Not an external application.]
Thanks!
(PS; if it's a mini-vi clone inside of OpenGL, even better!)
Edit: I'm using C++.
...
When we develop web pages we can broadly work out which browsers to support based on market share.
When we develop in .NET we can broadly work out which .NET version to develop for based on which Windows versions have it installed.
But when developing OpenGL or Direct3D applications, how do we know which video cards people (I mean "peo...
Hi,
I'm using OpenGL to grab the contents of the Mac OSX screen - thsi works very well, except it does not grab the mouse cursor graphic. I need to somewhow get that cursor graphic, either as part of my screen capture routine, or separately.
My question is either:
How can I ensure that the mouse cursor image is included with the Open...
I am using some dell workstations(running WinXP Pro SP 2 & DeepFreeze) for development, but something was recenlty loaded onto these machines that prevents any opengl call(the call locks) from completing(and I know the code works as I have tested it on 'clean' machines, I also tested with simple opengl apps generated by dev-cpp, which wi...
Hey,
I'm using QT with opengl to make a chart in order to use it in different simulated physical experiments, but I'm facing the following problem.
I can't see my chart line unless I minimized my form window and then maximized it, and I should do that all the time as long as my line chart is being drawn in order to get the full result!!
...
Hi,
I'm having a bit of a problem with Apples EAGLView and Texture2D. If I create an instance of EAGLView and draw some textures, it works great. However, whenever I create a second instance of EAGLView, the textures in the new view(s) aren't drawn.
Being new to OpenGL, I've got absolutely now clue as to what is causing this behavior. I...
Whats's the difference between use back face culling and a buffer of depth in OpenGL?
...
Hi, i'm wondering how a array of 32x32 is mapped to a bitmap. The following arrays represents a bitmap. I know that each row of the array represents row of the bitmap. The first row of the array is the last row of the bitmap, and so on, up to the last row of the array that is the first row of the bitmap, but how this works?
GLubyte myIn...
I want to be able to store an atomic model in an OpenGL program I'm writing. Nothing fancy; just constant mesh vertex values stored as GLfloat[3], plus simple textures. I also want the model to be able to move and rotate freely and as a single object. Here's what I have so far:
typedef struct _coordnode {
GLfloat *pts; /* ...
I am able to map a single image as a texture onto the entire surface of a sphere.
But when I try to map the image to a small part of the sphere by using mipmaps the
image quality is very poor. What should I do to improve that?
And also how do I set texture coordinates for the image on the sphere?
Is there an option other than mipmaps?
...
Hello,
I have an old AGL-based OpenGL windowing system that I am updating to use NSOpenGLView. The engine using it needs to run in its own loop in a separate thread and I am having trouble getting that to work. With AGL, I created the context in the loop thread, so there was no issue, but I'm a little bit confused about the way to do th...
Hello there,
Is it possible to draw a scalable openGL generated text in maya viewport
using maya api, I tried to use the function 'drawText' in M3DView class but it
wont draw a scalable text, the result seems to be like a maya annotation texts
also it does not response to other openGL functions except glColor. I want
to scale the g...
I'm trying to figure out the "right" way to do this.. Where by "right" I mean least amount of work at decent frame rate.
Goal:
I have an OpenGL app. It can render text. I want the full power of vim inside of it. I'm running on MacOSX.
Possible solution:
I can capture all keystrokes as GLFW events --> is there a way I can reroute this...
I'd like to use OpenGL to draw directly to a .NET System::Drawing::Bitmap (C++/CLI). It seems like it should work like this:
char buf[48];
ZeroMemory( &buf, sizeof(buf));
System::Drawing::Bitmap bmp(
4,
4,
12,
Imaging::PixelFormat::Format24bppRgb,
(System::IntPtr)buf);
Graphics^ g = Graphics::FromImage(%bmp);
HDC loc...