Each object in my world has a local axis coordinate system, defined by three vectors. As the objects move, I rotate them around either a local axis or around a world axis. The end result are 3...
Dear All,
I've been reading an article that has a solution which will hopefully elimentate some of the problems I've been having with a navigation control I've been writing. The article is he...
Hi everyone,
I have a cube defined in GL_QUADS that I want to rotate at a distance of nRadius from the origin (0, 0, 0) about the y-axis.
I don't want it to rotate around it's local y-axis...
I'm searching for an algorithm to create a 3d voronoi diagram from a set of points.
The algortihm should be accurate and does not need to run realtime.
Hope you have any suggestions,
Icehawk
Hello!
I have a spheric panorama rendered by Java applet which is placed onto HTML page. You can see an instance of this applet here: http://www.immervision.com/en/multimedia/index.php?cat=...
I presume that everybody is quite familiar with picking rays, generated from a x,y point from a mouse coordinate. Take a look at the DX9SDK, and check out the Pick sample. For an even better e...
I want to draw a cylinder which starts at x1, y1, z1 and finishes at x2, y2, z2 for a set of coordinate pairs. The cylinder should be made using the D3DXCreateCylinder command. How can I do ...
Ok, if I had a box with all six sides, and I wanted to have 1 side have an image on it, what would be the math involved in properly making the image appear as though the cube is spinning for t...
hey guys, im working with a quaternion-class to store and to handle my rotations, in that class
i have a conversion method to make a quaternion from eulers:
where eulers are given:
pitch ...
Hi,
I'm having a problem with OpenGL double buffering. I'm using JOGL so I'm not sure if this is a general OpenGL question or a JOGL one!
I'm noticing that when I move objects around I c...
Have a little experience working with C# Managed DirectX, I would like some general info I am not finding in the book.
I've setup some basic scenes with success, but I want to know about wh...
I am looking for a visual basic algorithm that will take a set of vertices and allow me to rotate them around the three axis that are inherited from a parent object. ie. The pelvis is set at r...
I have a problem. I'm actually writing some code that will do 3D sound using the FMOD library and OpenGL, but that's not important. What I need is some help with a math concept:
I have two ...
Hi!
I like to know how i can play MP3 sound with directX and/or openGL.
A solution without using OpenGL and DirectX would be also useful.
PS: I can decode MPEG2 videos but then there is...
Hi,
I need to find the angle between two vectors (related to my lighting question). This is what I came up with, does everything look alright?:
public class vector
{
double m_m[] ...
Basically I have written a class to draw a cube centered on a point (XYZ). I perform various tranlations on my scene using glTranslate/glRotate. Now I want to calculate the new position of the...
I need either source-code, or very detailed description on how I can use 3D textures for my volume rendering app. Either with OpenGL, or with DirectX 8.1. The problem can be stated like this:
...
I have multiple threads (MFU ui threads) each with its own window and opengl RC. Does opengl keep a different state setup for each thread? If i start sending geometry (glBegin) in one thread d...
The Problem is: I can't fully understand this function wich calculates the screen coordinates of an given object in world coordinates:
inline void Calculate_Screen_Coordinates(float* pScree...
I've been trying to figure out procedural texturing for a sphere in my OpenGL program.
I get that idea that you want to just take the x,y,z coordinates of project them onto a two 2d (s,t),
...
Lets say you have 2 vectors which are normals, A and B.
how would you go about findind the rotations, so that you can rotate Vector A to equal Vector B.
thx in advanced
Okay, let me explain the situation first. You see I am trying to create A 3D rendered, animated GUI using DirectX in windows, it would display over the desktop with irregularly shaped windows....
Hello. I am in desperate need to get MD2 models into openGL. I have tried most methods and nothing seems to work.
The last time i tried all i got was the model and a blank background. what i ...
This is my code fragment below:
GLdouble modelMatrix[16];
GLdouble projMatrix[16];
GLint viewport[4];
glGetDoublev(GL_MATRIX_MODE, modelMatrix);
glGetDoublev(GL_PROJECTION_MATRIX, pro...
I have the points on the outside of an object. This object is a distorted cylinder in shape, and there are 40 points in it. I want to make a nurbs surface from theses points, but cannot figur...