A bitmap (raster image) used in a texture mapping process.
1
vote
0answers
33 views
Different ways to pass Textures into HLSL shaders
The GraphicsDevice class of xna 4 has the properties Textures and VertexTextures.
What is the exact difference? I don't really understand what MSDN tells me about this.
I usually use Effect ...
2
votes
1answer
69 views
Resource management
I've come across a strange thing in DirectX 11:
I'm trying to implement large scale volume visualization engine.
My approach is like this:
if the volume is HUGE (could not fit to GPU memory ...
2
votes
1answer
69 views
OpenGL texture on sphere
I want to create a rolling, textured ball in OpenGL ES 1.0 for Android. With this function I can create a sphere:
public Ball(GL10 gl, float radius)
{
ByteBuffer bb = ...
1
vote
2answers
46 views
Error while reading TGA file and doing Texture Cube map
In my program, i read a TGA file with a function like this:
char* LoadTGA(char* filename, int* width, int* height, int* bpp);
As you can see, this function: return a char array of image data ...
3
votes
2answers
89 views
LibGDX stretching 2d graphics
I have a problem with stretching sprites in LibGDX.
I have one png file for the sky in the game (1 x 1000px) and I want to render it 1000 x 1000px
sprite.setSize(pixelWidth,pixelHeight);
I want to ...
0
votes
1answer
49 views
Loading textured objects to jMonkey
I am working on a project in jMonkey, and I managed to create boxes, spheres and such objects, and load textures form image files, but when I converted a blender file to j3o and imported it in my ...
0
votes
1answer
79 views
LWJGL texture bleeding fix won't work
I tried a lot of things to fix texture bleeding, but nothing works. I don't want to add a transparent border around my textures, because I already got too many and it would take too much time and I ...
2
votes
0answers
62 views
Rasterization Rules and States
This thread directly concerns lightmap generation; however, indirectly, the rasterization of polygons by the GPU.
I am currently generating lightmaps using a pixel shader. To the shader I send 3 ...
1
vote
1answer
107 views
generating complex maps in xna
I just wonder how does these maps like in this video are made. http://www.youtube.com/watch?v=TM6kcOau5oQ I was looking for some tutorials on the web but no success. All I found was some 2D Vectors ...
2
votes
0answers
36 views
1:1 mapping of texels to pixels with DX11 and multisampling and linear interpolation
Is it possible to get a 1:1 mapping of texels to pixels on a multisampled target in DX 11 with interpolation? It seems to me that the texture coordinate used in the shader is always one of the ...
-1
votes
1answer
101 views
Texture doesn't draw correct
I'm writing a game using SFLM and Opengl but when I create a terrain i got some OpenGl problems. I use heightmaps to generate a terrain but when I load the texture on it the texture is not correct ...
2
votes
1answer
64 views
What does changing GL_TEXTURE_WRAP)_(S/T) do?
I am working through some beginner OpenGL tutorials, and the current one teaches how to apply a texture to a simple rectangle. The tutorial states tells me to set the texture parameters ...
0
votes
1answer
137 views
SDL2 render to texture support
I'd like to use the function
int SDL_SetRenderTarget(SDL_Renderer *renderer, SDL_Texture *texture)
in my 2D game. At this point I am using only the SDL 2.0 API, and using openGL seems overkill to ...
1
vote
0answers
97 views
What's the proper way to set up texture atlas in Unity 3D?
I am using Unity3d (free) to make a game with user-defined content (i.e., load in a map, it'll build the level for you).
Everything is working as expected, except for the rendering.
Note the ...
-3
votes
1answer
123 views
How can I import a Google Sketchup model with textures?
I'm using Unity 4 and trying to import a SketchUp Model into Unity and other Engines - but I can't get it to import correctly. Can anyone help me out?