Tagged Questions
0
votes
1answer
90 views
How to seamlessly texture a cube in OpenGL
I have been following this site as an intro to OpenGL.
After going through the model obj loading tutorial, I wanted to create my own .obj (a cube) as well as my own texture. Following this blender ...
0
votes
0answers
21 views
Size of an image imported with FreeImage
I'm having abit of a brainfart and I can't quite grasp what I'm doing wrong.
It's quite simple, I am importing an image with FreeImage (http://freeimage.sourceforge.net/) which has a method ...
0
votes
0answers
51 views
textures and bouncing balls inside a cube [closed]
i have a cube with texture but when i add 3 balls so that they bounce on the walls of the cubes everything seemed to be wrong,the balls are not bouncing in the right directions, i want them to bounce ...
3
votes
1answer
97 views
Scaling and rotating texture onto another texture by raw buffer data
I've been messing with C++ AMP and OGRE in attempt to make writing to/altering textures to my liking easier on my behalf. In this I've been trying to draw a texture onto my "dynamic" texture with ...
5
votes
1answer
282 views
Is a 10 meg 2048x2048 bitmap too big a size texture to use in an OpenGL game?
This is a speed question, I have a texture, which is 2048 per 2048, the texture is designed to run in big resolutions (1920x1080 for example).
The problem is, that the texture have a size of 10MB in ...
1
vote
2answers
254 views
VBO with texture index buffer different than vertex index buffer
I am trying to write my own OBJ importer and renderer in OpenGL (yes, I know, reinventing the wheel) and I found a problem that I don't knwo how to handle.
In an OBJ file faces are defined by a list ...
1
vote
1answer
175 views
Problem when texturing triangles using glVertexPointer()
I'm having a problem for displaying a single quad, here is how i do :
//note: this code is only for 2 triangles, while on picture there is 4 triangles
float tex_coord[] =
{
0.0, 0.0, //3
0.0, ...
1
vote
3answers
168 views
SDL_image & OpenGL Problem
i've been following tutorials online to load textures using SDL and display them on a opengl quad. but ive been getting weird results that no one else on the internet seems to be getting...
so when i ...
2
votes
1answer
146 views
Fourth texture = segmentation fault
I keep on getting segmentation fault each time I load fourth texture - what type of texture, I mean filename, does not matter. I checked value of GL_TEXTURES_STACK_SIZE which turned out to be 10 so ...
2
votes
2answers
210 views
there is a BLOB standard to store images in memory?
I would like to abstract all the images in memory, to do so i would like to have just 1 format of reference without talking about the usual file formats for the filesystem like JPG, TGA, and so on.
I ...
3
votes
1answer
1k views
Loading textures with sfml for Open GL
I'm looking at nehe's texturemapping tutorial and it looks a bit overly complicated for just loading a texture. Is there a way to load a texture in SFML and then use it in Open GL? I use SFML for my ...
0
votes
1answer
399 views
Generate texture for a heightmap
I've recently been trying to blend multiple textures based on the height at different points in a heightmap. However i've been getting poor results. I decided to backtrack and just attempt to recreate ...
0
votes
1answer
386 views
Top-Down Racing Game C++
I'm creating a Top-Down Racing Game in C++ using GLUT/OPENGL and SOIL first of all I just wanted some opinions on how the track should be done. I was thinking about using a tile-map and so far I've ...
0
votes
1answer
1k views
How do you do very simple texturing in OpenGL 3+?
I managed to create a sphere (calculating all the vertices etc etc). Now I want to apply a texture on it. I have no idea how. I googled some "OpenGL 3 texture tutorials" but I can't seem to find ...
5
votes
1answer
514 views
On Creating a D3DX10 texture atlas
I have a DirectX10 texture (ID3D10Texture2D) that I load from disk with the following code:
CComPtr<ID3D10Device> spD3D; // Initialized correctly elsewhere
hr = D3DX10CreateTextureFromFile(
...
0
votes
1answer
677 views
How do I manage textures in memory in OpenGL?
I'm writing a game engine which is going very fine. However, I'm now posed with handling textures.
My Engine is in 2D, for simplicity reasons mostly to get a good idea of how to work with OpenGL. I ...
3
votes
4answers
1k views
C/C++ code to generate texture coordinates for a curved surface
I have a triangular mesh of a surface curved in two directions, e.g. a sphere. It is therefore not possible to roll this surface flat (essentially specifying a mapping to U,V texture coordinates) ...
1
vote
1answer
130 views
When rendering on two different computers, the texture is glitchy
I am using Ogre3D, and have been using it for a while. Also lately, I have been using the Opengl Rendering system that is included in Ogre, only because Directx will not compile correctly(Will post ...
6
votes
7answers
2k views
Best (Most Popular?) Image Format For Texturing
Okay, so I am using C++ with OpenGL, and I am going to create a loader to load in textures for my 3D game. (But the textures are 2D). I want the option of transparency, even if I decide not to use it. ...
0
votes
1answer
516 views
How to render images/textures in shape/polygon form?
I'm working with SFML right now, and upon finishing the tutorials I still do not know how to give a shape a texture or image -- not just a solid color/outline.
The only thing I know can take an ...
0
votes
1answer
353 views
Is it a good idea to render many textures into one texture?
I'm making a 2D game with OpenGL. In order to avoid changing the state machine and binding at runtime, I want to make consolidate my textures into bigger textures,
for example, taking 4 128x128 ...
6
votes
2answers
477 views
Textures for an underwater environment?
I'm trying to build an underwater scene. I'm including my scene in a large cube, which I'm going to texture with images that resemble an underwater environment. Where can I get textures for something ...
1
vote
1answer
355 views
GL_INVALID_OPERATION in glEnd
I'm having problems drawing a simple sprite. When I draw:
void CSprite2D::render()
{
CHECKGL(glLoadIdentity());
CHECKGL(glEnable(GL_TEXTURE_2D));
...
