Basically this is how I do it and it works well.
variables needed:
// Window size (GLdouble)
w = width
h = height
// Texture ID of the texture you want to draw
nTextureID
Type: Posts; User: bsimser
Basically this is how I do it and it works well.
variables needed:
// Window size (GLdouble)
w = width
h = height
// Texture ID of the texture you want to draw
nTextureID
It's probably best to create a class for each splitter window so you don't have to keep track of the different options for each view separately. I'm not sure what you're trying to do, but lets say...
Thanks. I figured it out by searching for another topic on glReadPixels and trying it out. Turns out that when I would use a standard size (hard coded) like 640x480 or even 1280x1024 it would work....
I'm not sure why this is happening, but if I try to do a glReadPixels with a large screen, my program dies horribly inside OpenGL (Win32). If I cut back the size to something smaller it works fine...
Okay, I guess I should have asked this up front. Where can I find some information/code on building a scanline renderer? TIA
liB
I want to build a renderer (or perhaps make use of a free one) in my application. I read that MAX uses a scanline renderer and I know that raytracing takes forever. I'm not looking to build something...
Other than the fact that I'm building one myself (http://www.simfreaks.com/blueprint) I think one of the best ones is Anim8or (http://www.anim8or.com). Steven works at nVidia and really knows his...
Hi Tom,
Yes, slicing the image in 2D is simple but what I'm trying to achieve is a slice in 3D, sort of like doing those exploded views you see of engines where there's a cutaway of the model and...
This might seem like an odd question and I have a few theories on how to do it, but not sure what's best.
If I take an OpenGL scene and plop a sphere with a diametre of 4.0 into it I want to...
If you use the gluQuadricxxx commands, you can create a sphere, auto-generate the texcoords and normals and flip between solid and wireframe mode quite easily with a call to glPolygonMode.
...
Yes, it's not really the most efficient cone. Triangle strips or fans would work much better but the original poster wanted a fast way to draw it. The performance isn't that bad unless you have...
It depends on how you want to draw the cube. If you're using glut, then glutWireCube or glutSolidCube will work. Otherwise you'll have to create 6 faces yourself. Take a look at the cube.c that came...