3
голосов
4ответов
3776 просмотров

Sharing a texture between direct3d and opengl?

I know mixing OpenGL and DirectX is not recommended but I'm trying to build a bridge between two different applications that use separate graphics API:s and I'm hoping there is a technique for sharing data, specifically textures. I have a texture that is created in Direct3D like this: d3_device...

1
голосов
2ответов
778 просмотров

OpenGL linestrip boundaries

I have a network of polylines, and I'd like to display all parts of the lines that are inside a certain X-Y box. I'm currently rendering the lines in OpenGL using a GL_LINE_STRIP and it works well. However, if the boundary of the X-Y box crosses through one of the lines (between vertices), is the...

1
голосов
2ответов
1108 просмотров

Can Flex wrap Java applets?

I'm just learning about Flex and I'm loving it. Unfortunatly I still have to make the decision on which RIA technology to use and its dependent on, among other things, from the following case: How can we wrap a java applet around a Flex application? More specifically, I would like to wrap/integr...

1
голосов
2ответов
350 просмотров

Big loading times in iphone app

I'm making an openGL game for iPod/iPhone. At start I load at once all the textures I need. At first loading times where small, but as I kept developing and adding new textures the loading times have been increasing, to the point of taking many seconds before the game start. Recently a new prob...

12
голосов
3ответов
4527 просмотров

Automated testing for OpenGL application

I have a Java Application that uses JOGL to provide a large part of the GUI. Is there any tool which you know of, or have used which can automate the testing of OpenGL applications (or more specificly those using JOGL) Just to update: The tool can run on either linux or windows.

1
голосов
3ответов
7463 просмотров

moving objects around a circle in Opengl

I am trying to translate an OpenGl object around in a helical pattern. I cannot figure this out. Problem is I know I need to increment the angle for the x, y, and z coordinates, but the translate function that I use only moves the object by a translate amount which is specific to the object. The ...

5
голосов
1ответов
1807 просмотров

WGL: No double buffering + multi sampling = FAIL?

I usually create a pixel format using wglChoosePixelFormatARB() with these arguments (among others): WGL_DOUBLE_BUFFER_ARB = GL_TRUE WGL_SAMPLE_BUFFERS_ARB = GL_TRUE WGL_SAMPLES_ARB = 4 i.e. double buffering on and x4 multisampling. This works just fine. But when I try to turn of the double bu...

1
голосов
1ответов
1122 просмотров

OpenGL with FBO RTT, blending when it shouldn't

This should be really simple, but it's consumed multi-hours of my time, and I have no clue what's going on. I'm rendering a flat-colored full-screen quad to a texture, then reading back the result with glGetTexImage. It's GPGPU related, so I want the alpha value to behave as if it's any of the o...

5
голосов
2ответов
6445 просмотров

How to get camera up vector from roll, pitch, and yaw?

I need to get an up vector for a camera (to get the right look) from a roll, pitch, and yaw angles (in degrees). I've been trying different things for a couple hours and have had no luck :(. Any help here would be appreciated!

2
голосов
1ответов
1902 просмотров

stereo in Qt using Open GL

I am trying to make a stereo window in Qt. I seem to be lost in the interaction of Qt and OpenGL. I have set the stereo context in my GL initialization code QGLFormat fmt fmt.setStereo(true) and when I check the value, it comes back true. I then draw into the GL_BACK_LEFT and GL_BACK_RIGHT b...

6
голосов
2ответов
7274 просмотров

How to programmatically alpha fade a textured object in OpenGL ES 1.1 (iPhone)

I've been using OpenGL ES 1.1 on the iPhone for 10 months, and in that time there is one seemingly simple task I have been unable to do: programmatically fade a textured object. To keep it simple: how can I alpha fade, under code control, a simple 2D triangle that has a texture (with alpha) appli...

0
голосов
2ответов
192 просмотров

Vertices selection and state of model after rotation

I'm currently writing an application that actually acts as a "cut" tool for 3D meshes. Well, I had some problems with it now which I am clueless on how to solve, since it is my first application. I have loaded a model from an object file onto the canvas, then on the same canvas, I use the mouse...

10
голосов
5ответов
13113 просмотров

Capture Qt widget as an image file

I'm working with QGLWidget (Qt widget for OpenGL) and want to be able to capture the screen displayed by the widget as JPEG files. How can I achieve this? Is there a function that return what is currently displayed on the widget as an image?

0
голосов
1ответов
2034 просмотров

Rendering different triangle types and triangle fans using vertex buffer objects? (OpenGL)

About half of my meshes are using triangles, another half using triangle fans. I'd like to offload these into a vertex buffer object but I'm not quite sure how to do this. The triangle fans all have a different number of vertices... for example, one might have 5 and another 7. VBO's are fairl...

6
голосов
6ответов
4371 просмотров

Open Source C++ game engine math libraries?

I'm looking for a free to use game engine math library. Specifically I'd like a good matrix and vector implementation. And everything needed to move objects in 3D space. Does anyone know any good ones? I'm targeting OpenGL. I'd like to write them myself but don't have the time.

5
голосов
4ответов
11904 просмотров

Rendering sprites from spritesheet with OpenGL?

Imagine the following scenario: you have a set of RPG character spritesheets in PNG format and you want to use them in an OpenGL application. The separate characters are (usually) 16 by 24 pixels in size (that is, 24 pixels tall) and may be at any width and height without leaving padding. Kinda ...

0
голосов
5ответов
2515 просмотров

Recommended OpenGL / GLUT Reference

What OpenGL / GLUT reference is good for day to day programming as you learn? Ideally I'm looking for something with lots of C++ sample code to help me learn as I develop OpenGL applications as well as details about the APIs similar to what MSDN provides for .net programming. If there isn't a o...

-1
голосов
3ответов
217 просмотров

C++ and OpenGL Help

I am wanting to code something with OpenGL, but I don't want to have to go through Windows API, is this Possible? If so then some links to tutorials on how to do this would be nice.

1
голосов
2ответов
917 просмотров

Is it possible to translate twice in one OpenGL Matrix?

This is a homework question I am sorry but I am lost. What happens is the following I am asked to do a tiling of hexagons. Like the grid map in many Risk games and Wild Arms XF. I understand the current transformation is the matrix that translates the points I give to OpenGL to screen coordinates...

3
голосов
5ответов
6931 просмотров

Using OpenGL to accelerate 2D graphics

Me and my friend are trying to accelerate a 2D game with OpenGL. The video chipset is Radeon X1250 which seems to be underpowered and can display up to some 80 1366x768 full frames/s. Given that we are drawing many sprites on top of each other the performace drops dramatically under the 60 FPS we...

17
голосов
4ответов
38954 просмотров

Convert Quaternion rotation to rotation matrix?

Basically, given a quaterion (qx, qy, qz, qw)... How can i convert that to an OpenGL rotation matrix? I'm also interested in which matrix row is "Up", "Right", "Forward" etc... I have a camera rotation in quaternion that I need in vectors...

12
голосов
4ответов
5577 просмотров

Launch OpenGL app straight from a windowless Linux Terminal

How exactly would one go about getting an OpenGL app to run fullscreen straight from the terminal (Ubuntu Server 9.04)? I've developed an application for visual diagnostics on my server, but, I'm not totally sure the best way to get it to run in a windowless environment. Ideally, I would run m...

2
голосов
2ответов
1045 просмотров

Stuck building a game engine

I'm trying to build a (simple) game engine using c++, SDL and OpenGL but I can't seem to figure out the next step. This is what I have so far... An engine object which controls the main game loop A scene renderer which will render the scene A stack of game states that can be pushed and popped ...

1
голосов
4ответов
2763 просмотров

Examples of OpenGL programs with networking code?

I'm wondering if anyone has/knows of any examples of networking code integrated with OpenGL. Basically, I need to send position coordinates of something over a network to my OpenGL display... which would then draw the object at the correct position. The problem I'm having is integrating my UDP...

2
голосов
5ответов
4427 просмотров

simple c++, opengl game engine for linux?

I was wondering if anyone knew of a simple opengl game engine for linux where the source is available to read. I basically want to read the source to get a better idea of how things are put together without worrying about the code being cross platform or having fancy particle effects or anything.

2
голосов
2ответов
859 просмотров

OpenGL glGetTexImage2d type parameter?

reading the docs i see that the glGetTexImage2d() function has a 'type' parameter. The docs say that the type parameter "specifies the data type of the pixel data" and gives some examples of types such as GL_INT, GL_BYTE, etc. but what does it mean precisely when the image format is GL_RGBA and ...

0
голосов
2ответов
645 просмотров

C2664 error in an attempt to do some OpenGl in c++

Here is an abstract of my code. I'm trying to use glutSpecialFunc to tell glut to use my KeyPress function class Car : public WorldObject { public: void KeyPress(int key, int x, int y) { } Car() { glutSpecialFunc(&Car::KeyPress); // C2664 error } } The error message I get is: Er...

0
голосов
2ответов
277 просмотров

How to invert the co-ordinate system in NSOpenGLView

I have create my own NSOpenGLView class, right now the data that i want to displayed with an inverted co-ordinate system. The origin starts at the bottom-left corner. I would like to change it so that the co-ordinate starts at the top-left corner. How should I inverted the view/setup a new co-o...

0
голосов
1ответов
72 просмотров

Getting Object properties for an object loaded in a canvas

I have loaded an object from an object file into the scene. I perform some transformation, manipulation on it. How can I retrieve the new information of the object? E.g.:all vertices new location after a rotation operation.

1
голосов
2ответов
3760 просмотров

c++ opengl converting model coordinates to world coordinates for collision detection

(This is all in ortho mode, origin is in the top left corner, x is positive to the right, y is positive down the y axis) I have a rectangle in world space, which can have a rotation m_rotation (in degrees). I can work with the rectangle fine, it rotates, scales, everything you could want it to ...