10 Topics

Member Avatar for
Member Avatar for game4tress

I'm creating a morphing module for a certain software and I'm trying to do something that I'm wrestling for quite long. I've created a mesh divided in 9 parts. So I have a rectangle divided in 9 "sub-rectangles" and I've set a texture for the global rectangle. My idea, doable, …

0
239
Member Avatar for BlinkOnly

I wrote a program to simulate a simple page flip animation in opengl and now i'm trying to replicate it with two images using texture mapping so that the second image appears on the "back" of the first image during the drag of the lower left corner of the page. …

0
153
Member Avatar for vedel.bajic

Hey Guys! I wonder how to put a texture on a specific position in DirectX. for example: I want a function that allows to set a Texture on an 2D Position and set the width and height like this pseudo funktion: x y w h DrawTexture(pDevice, 25, 25, 200, 100); …

Member Avatar for BigInNYC
0
420
Member Avatar for The_Purple_Mask

After the program passes the following code lines GL.Begin(BeginMode.Quads); { // passing arguments separately, for performance GL.TexCoord2(0, 0); GL.Vertex2(left, top); GL.TexCoord2(0, maxV); GL.Vertex2(left, bottom); GL.TexCoord2(maxU, maxV); GL.Vertex2(right, bottom); GL.TexCoord2(maxU, 0); GL.Vertex2(right, top); } GL.End(); the alpha values of all the verteces in the program become less than 1(everything becomes transperant). …

0
71
Member Avatar for Labdabeta

I have an array of data of the form: union colour { unsigned int argb; struct{ unsigned char a; unsigned char r; unsigned char g; unsigned char b; }bigendian; struct{ unsigned char b; unsigned char g; unsigned char r; unsigned char a; }littleendian; }; struct sprite { int w,h;//stores the …

Member Avatar for Labdabeta
0
672
Member Avatar for ccoder83

Hi, I have a grid, which contains cells that have several different properties. [CODE]struct fluidProperties1 { float foo; float bar; };[/CODE] and I create the grid as follows using a template [CODE]Grid2D<fluidProperties1> grid1;[/CODE] Now, I want to pass the array formed only by the values of foo, and not by …

Member Avatar for ccoder83
0
813
Member Avatar for diamondfist

I managed to load the bmp file into my project, but it was giving dull and hazy kind of texture for some images .. any idea as to why this is happening ??

Member Avatar for diamondfist
0
94
Member Avatar for Jungletoe

Ok, I found this code after searching for days, and to my delight it actually worked. It loads a TGA file into the memory... but I have no idea about how to load it into an OpenGL texture that I can use to texture a cube. I have literally spent …

Member Avatar for myk45
0
1K
Member Avatar for vextorspace

I have an JOGL based opengl program that uses textures on flat surfaces. After a texture is put on a surface, it will eventually crash. If the textures are small, it takes a while. I managed to reproduce it with a simple program: [CODE] package org.yourorghere; import com.sun.opengl.util.Animator; import com.sun.opengl.util.texture.Texture; …

Member Avatar for vextorspace
0
196
Member Avatar for Labdabeta

I am having some major issues with OpenGL textures. I have the following code to load a glTexture (typedef ed as a GLuint): [CODE]glTexture LoadBMP(const char *fname) { HBITMAP hBMP; BITMAP BMP; glTexture texid; glGenTextures(1, &texid); hBMP=(HBITMAP)LoadImage(GetModuleHandle(NULL), fname, IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION | LR_LOADFROMFILE ); if (!hBMP) return NULL; GetObject(hBMP, …

Member Avatar for mike_2000_17
0
220

The End.