A bitmap (raster image) used in a texture mapping process.

learn more… | top users | synonyms (1)

2
votes
2answers
307 views

Displaying 2 textures on the same surface?

I'm messing around with XNA in a very simple Minecraft-esque world I'm making and I'm wondering how I can do the "breaking the block" visuals in XNA. If you're unfamiliar with the game, you begin ...
2
votes
2answers
2k views

What's efficient way to draw a lot of textured cubes in XNA4?

Title says it all. What's efficient way to draw a lot of textured cubes in XNA4?
1
vote
1answer
907 views

Multiple Render Targets not saving data

I originally posted this question on stack overflow, but realised it might be better here. The original question can be found here I'm using SlimDX, targeting DirectX 11 with shader model 4. I have a ...
-2
votes
1answer
287 views

Problem while loading an image for a texture

I have built a slideshow in slimDX and is scrolling a text at the bottom of the images. But I am running through a problem that when my new image is loaded in by the help of Texture.FromFile() ...
5
votes
1answer
2k views

Render to Texture2DArray slices in DirectX11?

I would like to set a slice of a Texture2DArray as a render target in D3D/DirectX11. It's not clear how to do this. What I'm looking for is the DirectX equivalent of glFramebufferTextureLayer(), ...
1
vote
3answers
2k views

Is it possible to batch draw sprites that use different textures without using an atlas?

I've implemented a sprite batch class that uses a sampler array so that I can select a texture to use based on the gl_PrimitiveID. The idea was to be able to draw sprites that use different textures ...
5
votes
1answer
448 views

Line at edge of transparent texture on XNA mesh

I have a mesh that is computer generated with a texture on top of it with transparancy on one side. The SamplerState is set to LinearWrap because I would like the texture to wrap. The problem I have ...
0
votes
1answer
1k 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 ...
4
votes
0answers
167 views

Texture resources [duplicate]

Possible Duplicate: Where can I find free sprites and images? Can anyone recommend any resources for free images that can be used as textures - sky boxes/spheres, dirt, gravel, bark, etc? As ...
1
vote
2answers
3k views

the difference between diffuse texture and ambient occlusion texture

is there any difference between diffuse texture which used in diffuse lighting and ambient occlusion map, or this is the same texture just different naming, because i see it mostly it looked the same?
8
votes
3answers
892 views

What is a good method for coloring textures based on a palette in XNA?

I've been trying to work on a game with the look of an 8-bit game using XNA, specifically using the NES as a guide. The NES has a very specific palette and each sprite can use up to 4 colors from ...
4
votes
1answer
450 views

Suggestions for implementing a dynamic 2D level

I am working on a game that needs a level that is completely generated. Currently my approach is to draw textures for the levels pixel by pixel during the game (in XNA with SpriteBatch). This is too ...
1
vote
1answer
1k views

How do I accomplish fading texture trails in UDK?

I would like to know how to leave a fading texture/material trail in udk. For example (I'm not sure if there is a special name for this effect): A character may leave footprints that fade after x ...
8
votes
1answer
1k views

Procedurally generated terrain map. Blend Transitions between terrain types

The question isn't the greatest wording ever sorry. I have been learning about and prototyping some texture and terrain generation stuff and have run into something perhaps you can help me with. How ...
1
vote
1answer
406 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 ...
3
votes
1answer
2k views

Reusing a render target to create multiple Texture2D's (XNA)

i want to be able to loop through a hole bunch of textures, and render them on an object. I then want the rendered image to be placed onto a texture2D. The point? well hopefully i will end up with an ...
2
votes
1answer
2k views

OpenGLES 2.0: Rendering Multiple Sprites - Texel Corruption

I'm having a tremendous time getting the second (or additional) sprites in my game engine to render properly. The first one always works great: it is positioned and sized properly in screen coords, ...
6
votes
2answers
3k views

Rendering multiple textures on a terrain in XNA / C#

I am working on a terrain in XNA/C#. My intention is to be able to render multiple textures on the ground across the terrain. However, all tutorials like this are only capable of doing it with about 3-...
4
votes
2answers
1k views

How do I draw a portion of a texture onscreen in OpenGL?

I have a sprite sheet loaded as an OpenGL texture, and I'd like to draw a portion of that texture sequentially for animation. Is there an actual OpenGL command to draw part of a texture? I can get it ...
4
votes
3answers
2k views

Skybox textures for our solar system

For a solar system simulation project I'm looking for a good (semi-accurate) set of textures to texture the skybox. I've already found these http://paulbourke.net/miscellaneous/starfield/ and we ...
1
vote
1answer
1k views

Stretching textures for CCSprites in Cocos2D

I'm making a game for iPhone and iPad w/ Cocos2D and Box2D. I scale the size of square objects ("blocks") using a pixel-to-meters ratio depending on the particular device. Can I stretch or shrink ...
10
votes
5answers
5k views

Skybox texture artifact on edge

I have strange problem with drawing skybox texture on Mac. On iPhone everything is going fine. I have tried to change near and far planes value with no success. It is a skybox of six textures, and ...
3
votes
1answer
3k views

How to create mipmap for Unity3d textures loaded with www?

When I load a texture using the code below: WWW www = new WWW(textureName); yield return www; renderer.material = new Material(Shader.Find("Diffuse")); Texture tex = www.texture; tex....
11
votes
3answers
928 views

How on earth do you get decent color out of 2BPP?

I've been looking into PowerVR textures, and have run into several textures that are apparently 2 bits per-pixel. This, frankly, boggles my mind. How does one get even half way decent color ...
2
votes
1answer
789 views

What are the texture coordinates for a tetrahedron

EDIT This is the WebGL code for initializing the tetrahedron points. You may want to skip to the second code block, because you may be able to answer without this. //Making a tetrahedron with ...
6
votes
3answers
328 views

How to make a hand-drawn squared texture periodic with as little modification as possible?

The obvious part is drawing as periodic as possible, but hand-drawing is impossibly so perfect, so what kind of modifications are possible that do not make the textures loose their hand-drawn ...
2
votes
2answers
8k views

Xna: Splitting one large texture into an array of smaller textures

I would like to split a large texture into a one dimensional array of smaller textures. How should I do this?
10
votes
4answers
978 views

Megatexturing : Evolution from Quake Wars to Rage

I remember John Carmack talking about how they initially used Megatexturing for Quake Wars: Enemy Territory. The technology has since evolved quite a bit in Rage. I was wondering if somebody here ...
3
votes
1answer
3k views

Loading textures in OpenGL makes everything look darker

I don't know what I'm doing wrong but I'm having a big a problem with GL_TEXTURE_MIN_FILTER when loading textures for my scene. I'm doing a skybox, but that's irrelevant because the problem exists ...
3
votes
2answers
827 views

texture distortion at a distance

I produce a strip of quads with texture coordinates to represent a path. My texture is tiled along these quads. When the quad is drawn very small (on my integrated Intel chip) it draws distorted. ...
3
votes
2answers
254 views

Is it ok to use NPOT textures with OpenGL in this situation?

I drew some icons to use on orthographic projection and instead of loading each icon file individually as a texture I thought of putting them all together in one single file. Now I have a file 72x36 ...
2
votes
1answer
4k views

How to properly repeat a texture on a quad in OpenGL?

I'm drawing a quad and binding a texture to this quad like this: #define TERRAIN_WIDTH 2000 #define TERRAIN_LENGTH 2000 #define TERRAIN_WIDTH_2 (TERRAIN_WIDTH / 2) #define ...
11
votes
1answer
523 views

XNA Adding Craters (via GPU) with a “Burn” Effect

I am currently working on a 2D "Worms" clone in XNA, and one of the features is "deformable" terrain (e.g. when a rocket hits the terrain, there is an explosion and a chunk of the terrain disappears). ...
0
votes
1answer
1k views

OpenGL - resize texture when using cubemap

I want to resize my texture. I am using cubemap to compute reflection. I want to use this cubemap to draw skybox. Skybox is drawn but I want to resize texture down, because it is dilated. As I wrote ...
3
votes
2answers
2k views

blending alpha textures in gluOrtho2D

i'm doing a simple game/application with some minimal 2d graphics: png textures and ploygons with standard glVertex calls my setting: glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0, w, ...
6
votes
3answers
2k views

Common light map practices

My scene consists of individual meshes. At the moment each mesh has its associated light map texture, I was able to implement the light mapping using these many small textures. 1) Of course, I want ...
3
votes
3answers
156 views

What kind of skills are required to work in a content pipeline department in a high level role

I'm looking more for high level role such as producer/manager of the group making the tools for a content pipeline. This would be for a large AAA studio. Also what kinds of tools are they creating?
4
votes
1answer
2k views

How do I render only part of a texture to a point sprite in OpenGL ES for Android?

Using the libgdx framework, I've figured out how to render a texture to a point sprite. The problem is, it renders the entire texture to the point sprite, where I only want a small part of it (since ...
0
votes
2answers
4k views

How do I draw a point sprite using OpenGL ES on Android?

Edit: I'm using the GL enum, which is incorrect since it's not part of OpenGL ES (see my answer). I should have used GL10, GL11 or GL20 instead. Here's a few snippets of what I have so far... void ...
5
votes
3answers
4k views

When should a bullet texture be loaded in XNA?

I'm making a SpaceWar!-esque game using XNA. I want to limit my ships to 5 active bullets at any time. I have a Bullet DrawableGameComponent and a Ship DrawableGameComponent. My Ship has an array of 5 ...
2
votes
2answers
6k views

OpenGL-ES: clearing the alpha of the FrameBufferObject

This question is a follow-up to Texture artifacts on iPad How does one "clear the alpha of the render texture frameBufferObject"? I've searched around here, StackOverflow and various search engines ...
3
votes
1answer
422 views

Hashing 3D position into 2D position

I am doing volumetric raycasting and curently working on depth jitter. I have 3D position on ray and want to sample 2D noise texture to jitter the depth. Function for converting (or hashing) 3D ...
4
votes
2answers
4k views

[Unity] Render an animated texture to a screen

I'm looking for a way to write a typed text on a texture, and then render it on a screen: in the game it's just the screen of a computer where a scientist is typing text on. The texture will be ...
2
votes
1answer
616 views

Doubt about texture waves in CG Ocean Shader

I'm new on graphical programming, and I'm having some trouble understanding the Ocean Shader described on "Effective Water Simulation from Physical Models" from GPU Gems. The source code associated to ...
1
vote
1answer
534 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)); CHECKGL(glEnable(GL_BLEND)...
3
votes
1answer
2k views

Why does OpenGL seem to ignore my glBindTexture call?

I'm having problems making a simple sprite rendering. I load 2 different textures. Then, I bind these textures and draw 2 squares, one with each texture. But only the texture of the first rendered ...
2
votes
2answers
3k views

Texture2D.GetData fails to return pixel colour data

Because I'm using sprite sheets instead of an individual texture per sprite, I need to pass in a Rectangle when calling Texture2D.GetData() in my collision detection for per-pixel tests. Unfortunately,...
9
votes
3answers
2k views

Very slow direct3D texture sampling

So I'm writing a small game using Direct3D 9 and I'm using multitexturing for the terrain. All I'm doing is sampling 3 textures and a blend map and getting the overall color from the three textures ...
2
votes
2answers
5k views

how disable texture after drawing an object?

i try to make a textured object then draw other without (only colored). i had tried to play with glEnable/Disable(GL10.GL_TEXTURE_2D) , gl.glEnable/DisableClientState(GL10.GL_COLOR_ARRAY/GL10....
3
votes
1answer
2k views

Is it possible to import UV-maps in Unity3D without manually importing the associated texture?

When i import an object from Maya with a defined UV-map i have to manually import the texture (image) and assign it to the material. Is there a way to keep the materials texture reference from Maya ...