I wish to smooth a given 3D mesh, which uses the Half-Edge structure to store adjacency information, using a Gaussian function. The following is the algorithm that was proposed:
Smooth the mesh by moving every vertex
to a position determined by a weighted
average of its immediate neighbors
(with weights determined by a Gaussian...
Hi there,
I'm working on an iPhone app that lets the user draw using GL. I used the GLPaint sample code project as a firm foundation, but now I want to add the ability for the user to load one of their previous drawings and continue working on it.
I know how to get the framebuffer contents and save it as a UIImage. Is there a way for m...
I want to use a 3D soccer ball and move it with finger touch on the iPhone screen. Can someone help on this. I have done similar thing with 2d image and don't have much experience of 3D.
I got some example like converting 3D objects into header file and then use with open gl es framework, however not getting the open GL ES part.
Thanks...
I am using wxPython and I want to use an OpenGL based canvas, but I don't want the context to support deprecated functionality. I've navigated through pyopengl and pyglet in Eclipse, but it did not look like they support this. I'm saying this because I could not find WGL functions used in assigning attributes to a context, as in this whi...
The subject says it all: How do I create an iPhone app with an OpenGL view without using a .nib file?
...
I'm learning to program for the iPhone. I'm trying to figure out how to do some really cool custom view animations. What should I learn, Quartz or OpenGL ES?
For whoever says OpenGL ES, could I use it to animate my views or is only Quartz suitable for the task? Thanks.
Also any resources / the book or anything that teaches you this stu...
I have a 3D model, composed of triangles. What I want to do is, given a point near to the model, I would like to color the model (triangles) to another color, say blue.
Right now, I have a bounding sphere about the model, and when the collision occurs, I just want to approximately color the portions of model from where the collision occ...
OpenGL allows you to set a logical bit-wise operation (OR, XOR, etc) to execute when writing a fragment out to the framebuffer.
I'd like to perform fast scene voxelization (as seen in a paper by Elmar Eisemann) where I use a single framebuffer pixel to store 32 slices. Unfortunately I'm working in a DirectX 9 environment. Unless I'm m...
Hopefully this is an easy question. I like things being organised, so I would like to have two pixel shaders; the first doing one thing, and then the next doing something else. Is this possible, or do I have to pack everything into the one shader? Thanks.
...
Hi, programmers!
Now I am porting some OpenGL tutorials from win/glut to cocoa/mac os x. In the windowed mode everything works, but when context switches to fullscreen, screen may be empty (only clear colour)! For example: in the first, second, third times cube is, but in the fourth time cube is not. Even if app launches in fullscreen w...
I'm writing a 2D game using OpenGL. When I want to blit part of a texture as a sprite I use glTexCoord2f(u, v) to specify the UV co-ordinates, with u and v calculated like this:
GLfloat u = (GLfloat)xpos_in_texture/(GLfloat)width_of_texture;
GLfloat v = (GLfloat)ypos_in_texture/(GLfloat)height_of_texture;
This works perfectly most of ...
Is it possible to implement separate shadow passes
in scenes that are heavy on translucent geometry?
I would think not since it is not possible to 'insert'
a shadow between 2 polygons that have already been
alpha-blended. I'd love to be corrected though, since
separate passes allow simpler shader setups.
...
Hi,
I am drawing a rectangular block:
GLfloat cubeVertexV[] = {
// FRONT
-0.5f, -1.0f, 0.5f,
0.5f, -1.0f, 0.5f,
-0.5f, 1.0f, 0.5f,
0.5f, 1.0f, 0.5f,
// BACK
-0.5f, -1.0f, -0.5f,
0.5f, -1.0f, -0.5f,
-0.5f, 1.0f, -0.5f,
0.5f, 1.0f, -0.5f,
// LEFT
-0.5f, -1.0f, 0.5f,
-0....
Hi,
I'm new in OpenGL.
I want to draw somethink using OpenGL in Windows Forms.
If I use Win32 application with WinMain method, application working.
In WinMain method, I fill HWND with CreateWindow() function and ı give WinMain parameters to CreateWindows.
But I want to get Handle from Windows form i cant get this. Everytime
wglCreateC...
What's the quickest, easiest way to draw text in standard OGL ??
...
Hi,
I want to show OpenGL processes in Windows Form PictureBox.
I am using Visual C++.
I'm taking user values on Windows Form Interface and I must draw chart for this values.
Do you know any document or sample?
...
I have a spotlight that I'm attempting to use, however when I move forward and get to a specific spot (before I reach the object) the light gets cut off and disappears. Does anyone know what could be causing this, or direct me to a good tutorial that would show me how to make sure it didn't do this?
I'm attempting to simulate a flashlig...
Hey, i'm having a weird issue with drawing text in openGL loaded with the Freetype 2 library. Here is a screenshot of what I'm seeing.
Here are my code bits for loading and rendering my text.
class Font
{
Font(const String& filename)
{
if (FT_New_Face(Font::ftLibrary, "arial.ttf", 0, &mFace)) {
cout << "UH OH...
I'm trying to batch up a bunch of vertices and texture coords in an interleaved array before sending it to pyOpengl's glInterleavedArrays/glDrawArrays. The only problem is that I'm unable to find a suitably fast enough way to append data into a numpy array.
Is there a better way to do this? I would have thought it would be quicker t...
What's the bare skeleton to get a triangle drawn on an OpenGL window in C on OSX? I've gone through the tutorials at Nehe and tried to get it working, but the CreateGLWindow seems hopelessly tied to win32.
I want to stick to just opengl and glut, etc. I'll be eventually wrapping this in scheme, but I'd like to have a firmer understandin...