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

learn more… | top users | synonyms (1)

1
vote
1answer
255 views

How to fix texture edge artefacts?

This issue has been annoying me for a long time now and even after reading a lot of articles about it, I am still unable to fix the issue. First, to my setup. I'm using LWJGL for a 2D project, ...
2
votes
0answers
212 views

OpenGL textures make very low fps

I loaded some textures just one time before I go to my mainloop(glutMainLoop). I am using SDL for the texture loading. However, when I compile, my game is running at 6-10 fps. When I don't load the ...
1
vote
2answers
199 views

OpenGL SDL Texture doing really weird things

I am trying to render a .png image to the screen using C++, SDL and glut. This the texture I made using paint This is what I get on the screen: Does anyone have an idea what could cause this? ...
2
votes
1answer
111 views

Texture Not Rendering in C++ SDL OpenGL(glut)

I don't understand why my texture("texture.bmp"), is not showing on the screen. Please help me. The whole drawing function: ///HERE EVERYTHING IS BEING RENDERED void Main::display(){ int ...
1
vote
1answer
270 views

Android OpenGL and non premultiplied textures

As I understand it; by default all bitmaps will will get the alpha channel premultiplied in Android if loaded using BitmapFactory. My setup: I have a 32bit bitmap(.bmp) where the alpha channel has a ...
1
vote
1answer
39 views

GL_INVALID_OPERATION in glGenerateMipmap(incomplete cube map)

I'm trying to learn OpenGL and i'm using SOIL to load images. I have the following piece of code: GLuint texID = 0; bool loadCubeMap(const char * baseFileName) { glActiveTexture(GL_TEXTURE0); ...
1
vote
0answers
175 views

Cube map or 2D texture map

I'm trying to map quadsphere with COBE spherical cube (CSC) projection in OpenGL (wanna map planets). I managed to create a 2D texture and it works well except seams at edges. Then I learned that ...
2
votes
0answers
85 views

SDL2 SDL_CreateTexture returns pointer to existing texture

I have an initialized renderer in SDL2 that works fine. I create some textures from images using SDL_CreateTextureFromSurface and store them in a vector. Afterwards, I create an empty texture so as ...
1
vote
0answers
39 views

Best way to load multiple TextureRegion from multiple bitmaps in AndEngine

I've seen a lot of examples of AndEngine usage where some bitmaps are mapped into some TextureRegions and loaded into an Atlas. But what if I have a lot of bitmaps, where each bitmap is a sprite sheet,...
1
vote
0answers
57 views

Textured trapezoid in Monogame DirectX

I'm working on a 2D game, so most of the graphics are sprites. However, some elements are drawn using trianglestrips in Orthographic projection. The thing is that I can't do a 3D projection because ...
1
vote
0answers
29 views

How i can have Pressed texture on object in zbrush

i tried to have texture on object in zbrush that i succeeded but is not Pressed example a basic mesh that have simple texture is 4Mb it is not good for me. my problem is when i want apply texture on ...
1
vote
1answer
69 views

Texture not working on object

I have a project that I'm having a bit of trouble with. Let me try and explain. In short, I'm trying to apply a texture to an object, but instead it is a solid color. I built a building in "Autodesk ...
1
vote
0answers
296 views

combining multiple materials into one material (Unity)

I am confused with how should I texture my character. I am using blender for modelling. And while my model is too complex I dont want to use uv map techniuqe. I can get what I need with using ...
7
votes
1answer
466 views

What is the optimal texture size?

I recently added a texture packager to my project that will pack a certain amount of textures into a single one, like this: So for example this one is 582x1023 pixels in size. The goal of adding ...
2
votes
1answer
55 views

Texturing curves in blender

Im making a tree in blender with the sappling add-on, i've already textured the leaves, i want to know how to texture the trunk with a bark texture. Im using cycles render. Thanks in advance. :)
1
vote
1answer
36 views

Texturing in blender

I am texturing a tree in bender using the sappling add-on, when i put the tree bark texture (which is saved as .jpg) the texture looks stretched and wierd, ive used "Use UV for mapping" on the curve ...
3
votes
2answers
1k views

Need to produce an animated texture of Water where each image tiles in all directions

I need to produce a 2D 'animated' texture of "water" for a game in which each image tiles in 'all' directions, much like those produced by the Caustics Generator, but with the power and flexibility of ...
2
votes
1answer
67 views

Check if .dds texture is gamma-corrected

How can I check if .dds texture is gamma-corrected? It seems to be gamma-corrected since after manual gamma correction in fragment shader image is too bright. But I wanted to be sure.
1
vote
2answers
70 views

SDL_LoadBMP into glTexImage2D results in scewed colors

I read up on this but i can not find the error. Some suggest switching the format from RBA to RGBA but the surface data says it is 3 byte data. Here are snippets and results of my source. Loading ...
1
vote
1answer
185 views

Libgdx are textures off screen rendered?

Let's say that my code looks like this: OrtographicCamera camera=new OrthographicCamera(); camera.setToOrtho(true, 100, 150); SpriteBatch spriteBatch=new SpriteBatch(); spriteBatch....
0
votes
0answers
42 views

How to disable LockTexture for new level in unity?

i am building a game consist of 8 level. I use the following script to switch next level. But when i unlock a level the Lock Texture still remain in the window. I want to remove the lock texture when ...
4
votes
1answer
243 views

Mapping a 3D texture to a standard hollow-hull 3D model

I have 3D models which are typical hollow hulls. If such a model also had a 3D volumetric/voxel texture map then given a point P inside such a model, I'd like to be able to find its uvw coordinates ...
-1
votes
1answer
52 views

Is is better to have multiple smaller or one big polygon

My game has some kind of minecraft (voxel) graphic and I have the opportunity to decide whether I want to render multiple smaller polygons or one big polygon. Which is better for performance?
0
votes
1answer
19 views

LightMap not working properly

I've made a chips bag model for my game: http://imgur.com/JcumRF4 And I textured it like this: http://imgur.com/wpyeACZ and I googled on how to make lightmaps all of them say "Smart UV project" ...
0
votes
1answer
67 views

Issue creating a dynamic seemless cube map

I have a function for building a cube map, given a location in space. I also have a system for displaying cubemaps (either loaded from images or given as a texture handle), and they work fine and are ...
1
vote
1answer
90 views

How do I store an FBO'S as a cube map?

As of late I've been trying to implement Cubemaps in my engine, and have managed to get the rendering side of them working. Currently, I'm trying to implement a function for creating them, but I ...
1
vote
2answers
57 views

How to preserve generated textures in XNA?

My game generates small "minimaps" for each room you go to, which are rendered onto render targets then stored in textures and displayed on the world map. When the game is saved, each new minimap is ...
3
votes
1answer
75 views

How can I create random noise that is seamless across modular game assets?

Does anyone know how I can create a texture for a modular tile, such that when the tiles are arranged, random weathering effects such as scratches will be continuous across seams? An example photo ...
0
votes
0answers
38 views

Texture not getting loaded in FBX , exported using FBX SDK

I'm working on an OpenGLES2 project (iOS) in which I have to export a scene/model in to FBX format, so that it can be opened using FBX review app. I have made up to the point where the model getting ...
3
votes
2answers
1k views

What's the proper way to set up a 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 ...
1
vote
2answers
242 views

Easy method of obtaining texture coordinates for sprite sheet

In my (OpenGL ES 2.0 Android) game, I use 2 types of Sprite Sheets. In one type all sprites/frames are of equal size and in the other they are all different shapes and sizes. It is the latter one to ...
1
vote
0answers
254 views

Unity UpdateExternalTexture from MovieTexture windows crash

I'm trying to play a MovieTexture object with a SpriteRenderer object. My code is working fine on OSX. It crashes my windows 7 exported game, and play mode in Unity editor in windows 7. I am sure ...
8
votes
2answers
5k views

Unity: how to apply programmatical changes to the Terrain SplatPrototype?

I have a script to which I add a Terrain object (I drag and drop the terrain in the public Terrain field). The Terrain is already setup in Unity to have 2 PaintTextures: 1 is a Square (set up with a ...
-1
votes
1answer
41 views

What is the recommended way to store compressed textures in files?

Uncompressed textures can be stored in lossy formats such as jpeg and it saves a lot of hard drive space. However for obvious reasons you cannot do the same on compressed textures. So what is the ...
1
vote
1answer
436 views

Sphere Texture Mapping shows visible seams

As you can see from the above picture there is a visible seam in the texture mapping. The underlying mesh is a geosphere based on octahedron subdivisions. On that particular latitude, vertices have ...
10
votes
3answers
4k views

Premultiplied alpha, yea or nay?

Should I be using premultiplied alpha? Reading Tom Forsyth's article it seems a nobrainer. Premultiplied alpha (AKA additive blending) is superior in every sense. However, premultiplied alpha seems ...
5
votes
2answers
846 views

Is there a tool to automatically pack individual textures into one big png?

I'm currently working on a texture pack for minecraft (but this question is not restricted to that). All terrain textures are squared and stored in one big terrain.png. (FYI that's from Glimmar's ...
0
votes
1answer
1k views

Computing uv coordinates on a sphere approximated from an octahedron

Right now I'm texturing the octahedron with the formular from wikipedia(Finding UV on a sphere): UV Coordinates Wikipedia That unfortunately leads to heavy distortion right at the beginning, which of ...
1
vote
1answer
433 views

XNA - Drawing zoomed 2D sprites

I have a tile based game. Each tile texture is loaded and then I draw each one next to the other, forming a continuous background. I actually followed this tutorial for the xml files. http://www....
4
votes
5answers
1k views

XNA 2D Spritesheet drawing rendering problem

I'm making a tile-based game, using one spritesheet containing all tile graphics. Each tile has a size of 32x32 pixels. The main problem is: when I draw the tile to the screen, if the tile position ...
0
votes
0answers
99 views

Unity and ASTC support

I have configured in unity all compressed diffuse map textures as 6x6 ASTC blocks and normals and other maps as 4x4 blocks. However when I profile my game using Mali Graphics Debugger it tells me ...
1
vote
1answer
700 views

Update DirectX 11 Texture Created in Unity Asynchronously in the Native (c++) Plugin

Sorry for the long question :D tl;dr version :) Is it possible to update DirectX 11 textures created in Unity asynchronously in a native plugin (C++)? I've written a plugin that retrieves data from ...
1
vote
0answers
125 views

Should I bake all textures to a texture atlas in a game level?

I'm writing my own game engine using Java/OpenGL. I'm creating levels in Blender 3D and exporting them in a custom file format. I'm not going to be auto-generating any terrain - everything is going ...
1
vote
0answers
28 views

Create texture atlas from loaded textures - OpenGL LWJGL Java [duplicate]

In my program I have objects with different textures, that are in the same vbo. I cant have an array of samplers in my shaderprogram, so i have to use a texture atlas. I have seen some ways to make a ...
1
vote
2answers
106 views

How do 3d engines add textures to objects?

I was wondering how 3d engines like Unity or OpenGL added textures to objects. Example: How would Unity add this texture to the side the arrow is pointing to?
2
votes
1answer
478 views

Generating mipmaps for volume texture

Does texconv from DirectxTex support generating mipmaps for volume textures? If not what are the other alternatives? I am asking because I have tried to create the mipmaps by using textconv.exe -m 3 ...
0
votes
1answer
217 views

Problem with ID3D11DeviceContext::CopyResource method - How to properly read a texture CPU-side?

I am trying to make a full copy from a render target texture to a staging one but it seems my data length ends up being only 4 in length instead of 921600 (1280 * 720). Here is my textures ...
4
votes
1answer
232 views

Creating rectangles from the inner part of a texture2D

This may be hard to understand, but I'll do my best. You will see that the first image is a normal Mario, and the other is the result I am looking for. I'm trying to find a way to extract ...
0
votes
1answer
101 views

Is there anyway I can make a plane visible from both sides?

In Unity i have a model of a tree with leaves made of a plane and a texture, when I upload it to unity the texture is only visible on one side so how can I change it to be visible from both sides ...
6
votes
4answers
5k views

Can't understand these UV texture coordinates (range is NOT 0.0 to 1.0)

I am trying to draw a simple 3D object generated by Google SketchUp 8 Pro onto my WebGL app, the model is a simple cylinder. I opened the exported file and copied the vertices positions, indices, ...