Questions tagged [textures]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
294 views

Diamond square texture: too-diamond-ish?

I wrote a small JavaScript implementation of the Diamond-Square height map/texture algorithm and the result is much more industrial-looking than I expected. I can trace a diamond pattern throughout (...
3
votes
0answers
242 views

How to render texture into box2d objects from Tile Map? Libgdx

I have a problem, when i try to render textures. I read positions of gameObjects, for example coin and create box2d objects circle shape. I have wrote game logic and began make a graphic. But for some ...
0
votes
2answers
39 views

LWJGL/OpenGL - Textured squares not displayed behind other transparent textured squares

I've a MapView class that contains many tiles (MapTile class, a tile can be in the background), vertex array object and vertex buffer object for rendering of the map. I also have a function that ...
27
votes
4answers
8k views

What is the difference between a Sprite and a Texture?

I have an assignment due for University, and my task is to discuss textures used within video games, and how they have evolved. My main question is, what is the fundamental difference between using ...
1
vote
1answer
115 views

Weird streching of a texture in OpenGL

Here is the problem: I'm rendering a red triangle in an offscreen Frame Buffer Object. I have a texture of that Buffer, and i'm applying this texture to a Simple rectangle(at runtime). I get This ...
0
votes
1answer
371 views

Changing the color data of an instance of a shared texture? MonoGame

I want to load multiple instances of a texture on the screen and be able to change the color of each one individually by clicking on it. I've tried many different ways and currently I'm creating two ...
0
votes
1answer
101 views

Textures problem in LWJGL VBO`s

I`m working at VBO terrain renderer. Now i have two troubles: While try to render 100x100 terrain I have a 50x200 terrain Textures is not rendering. I spent really much time about it, and I have ...
2
votes
1answer
572 views

Unity: Texture huge areas with decals

I'm using 1024 textures for smaller buildings and 2048 for larger one's. Basic workflow: 1) Unwrap in Blender 2) Smack a concrete texture on it 3) paint some dirt here and there. Result: This ...
3
votes
3answers
208 views

How to render a very large amount of objects in a single call to drawelementarrays() in OpenGL?

The gist of the situation is as follows. I have hundreds of cubes that need to be rendered. The cubes share the exact same mesh, but they will be rendered at different positions. The position of the ...
0
votes
1answer
117 views

How to texture a floor so that edges have slightly different texture than the rest of the floor

When trying to create somewhat realistic environments, I often find that the edges where floor/wall/ceiling meet will have slightly different texture compared to the rest of the floor/wall/ceiling. ...
0
votes
1answer
2k views

Unity Performance: How many Materials per Object?

I have learned that a Mesh with 4 Materials each 1024x1024 in Size is somewhat slower than a Mesh with 1 Material 2048x2048 in Size? In my usual workflow I tend to seperate different Materials into ...
1
vote
0answers
320 views

LibGdx: Texturing cube results in jagged transparent edges

currently I'm in the works of programming a game - surprise xD I'm using LibGdx for this manner but I've encountered a very unknown bug I guess. I wasn't able to get any further by searching the ...
0
votes
1answer
354 views

C++ SDL Bullet shooting problems

I'm coding a C++ SDL game and now I got a problem with my bullets. If I shoot, bullets should fly away in a straight line according to the player's angle. That's ok but how can I copy multiple bullets ...
0
votes
0answers
176 views

Alternatives to bloom for glow?

I am making an android game. Mobile phones are usually very limited in graphics capability and so I do not want to use standard post-process bloom due to performance drawbacks. However I do want to ...
0
votes
0answers
374 views

How to use a decal / logo / tatoo texture on a object or character?

It appears I've misunderstood the purpose of Standard Shader's "Secondary Texture" options. If I wish to map temporary details to an object, what is the Unity-appropriate way to do this? I am ...
0
votes
1answer
458 views

Ogre3d 2.1 - How to apply texture on mesh?

I have searched forums and tried to read the Ogre 2.1 samples, but I still have no clue how to apply texture on mesh :( Here what I've done so far. I use Easy Ogre Exporter to export the scene (...
4
votes
1answer
212 views

What is the difference between these options when saving an image as a PNG in Photoshop for my game?

I'm creating sprites and tilemaps for 2D games. I might just use Unity. What is the impact of choosing different options when saving as a .png?
0
votes
1answer
426 views

Implementing pixel-perfect collision - Libgdx

I just started learning game programming through the libgdx framework and I am at the collision detection stage of development. I made a pretty simple game that has some basic bounding-box collision ...
0
votes
1answer
235 views

I have a Unity addon that generates noise via a shader. How can I use it besides just dragging it onto a mesh?

I'm probably asking this question wrong. I'm using Turbulence Library to generate noise as shaders. What I want to do is take the noise generated by these shaders and apply them to Texture2Ds that I'm ...
0
votes
1answer
580 views

How to deal with texture coordinates without range?

I have a set of given texture coordinates(u,v coordinates), but they are ranging from (-inf, inf), contradicting the [0,1] convention. I tried to do a rescaling by ...
6
votes
2answers
4k views

Combinations for tiling two textures together

Hi I need to create seamless ground with grass and dirt. I can make two textures connect seamlessly one to another. My question is how to figure out all the combinations, like (left, top, bottom, left-...
1
vote
1answer
192 views

Viewport for pixelart (WebGL)

I'm trying to display 16x16 pixel art textures (all textures have 16x16), but they are not displayed how I expected (they are ...
1
vote
0answers
731 views

Directx11 create Texture2D using subresourceData

I'm trying to create immutable texture in d3d11 so I want to use subresourceData, every tutorial on textures creates them with 2nd argument being null and after that updates subresource but I want to ...
3
votes
0answers
270 views

Should I use ASTC

So I read about ASTC and that it should be preferred over S3TC. Where I'm concerned is the current status of hardware support. According to Wikipedia every major GPU manufacturer supports ASTC but ...
0
votes
1answer
407 views

DirectX11 bind all textures at once?

If my game will use say 100mb of raw memory for textures, would it be a good idea to put all of them in srv array, bind once and leave it for the rest of the program so that I won't have to bind them ...
0
votes
1answer
37 views

problem in texturing

the first picture is the texture I'm using. and the second is result. problem! the model file it self is no problem. I think the mode is problem. I saw uv coordinates is more than 1. what kind of ...
0
votes
1answer
753 views

Cannot use sprite sheet to add texture to RawImage?

I am basically trying to recreate this sample image from this sprite sheet (Source) I split the sprite sheet in the sprite editor of unity, now I want to use the top left texture for ground. But ...
1
vote
2answers
323 views

What would be theoretical the perfect texture size?

I am more a newbie considering game development but I am dealing very often with optimization of games for work and because I am interested in it. So as far as I know higher texture size need less ...
1
vote
2answers
506 views

Proper way to update pixel array data

For a game that updates a board every frame I am calculating the next arrangement of board, updating pixel array data and render board as 2D texture to quad the size of the screen using OpenGL. I use:...
2
votes
2answers
117 views

Can I force a manually created texture to not be divided with low quality?

I have a texture that I have created that looks something like this: . This is a very low texture map, but it helps me in a shader that I'm making that distinguishes between land and ocean, the ...
1
vote
1answer
52 views

Ground texture comes up blurry using the UV Rect Tool

Im trying to recreate the ground as this sample sprite sheet: https://opengameart.org/content/post-apocalyptic-expansion I downloaded the sprite sheet and extracted the top left block and saved it ...
1
vote
0answers
43 views

Textures blink where there would be black

I am texturing my level, but every single texture "blinks" where there would be black, (as seen in photo) I dont know how to fix this, they worked fine earlier.
1
vote
1answer
928 views

How do I fix my material texture rendering issue in Unity?

I am very new to Unity and was just testing out a few things to make my first ever game. I tried to make a material for my obstacle and I noticed that there is some texture issue. It shows pink lines ...
0
votes
1answer
628 views

OpenGL glTexImage3D not working?

I'm trying to use arrax textures with opengl 3.3 since this the target version for my application. So I have to use the glTexImage3D() method instead of ...
6
votes
2answers
959 views

Imitate a textured sphere in 2D

I'm writing planet generator, using pico8. I got surface generation done: And the last thing to do is to map the texture onto a sphere. Pico8 has no triangle function. So my question is, how do I ...
0
votes
1answer
613 views

LibGDX - Draw multiple textures with different positions with one shader?

currently I'm optimizing my render calls by drawing multiple textures with one shader. The background textures who all share the same position are no problem. But now I want to draw some Textures with ...
1
vote
0answers
93 views

Why is the texture all wrong on my model?

Why is this happening? If possible I'd like to know what this particular problem is called. The model is a simple cube made in blender and exported with normals and MTL. Texture is the cube unwrapped ...
3
votes
1answer
1k views

Unity- how to render-to-texture with VR distortion

I've also asked the question here http://answers.unity3d.com/questions/1392099/how-to-set-a-render-to-texture-camera-to-be-a-vr-c.html (but it's currently "under moderation") So, I want to do some ...
2
votes
2answers
240 views

How do I work out what resolution my backgrounds should be?

I'm working on a game that's 1200 x 800. The pixels per meter ratio is 1:20. When I add my background texture that is 400 x 225. It fits well in the zone however the lines on the image are pixelated. ...
0
votes
1answer
5k views

Compressed vs Uncompressed Textures differences?

What is the difference? As far as i know, compressed textures would speed things up, because the PCIe bus has to transfer less amount of data, and the interconnect is the main latency issue with GPU'...
0
votes
0answers
435 views

What is causing my skybox texturing issue?

I am using the NVIDIA cubemap tool to generate my .dds file in Photoshop but I am unexpected results when the texture is loaded into my application. I'm unsure as to whether this is caused by my code,...
1
vote
1answer
357 views

Apply a grain effect to all the elements of a level

I'm currently experimenting a little bit on level design. Let's say that I've a room composed of walls and a floor tiles. I'd like to apply to all these elements a sort of "grain" effect, similar to ...
0
votes
0answers
29 views

Positional noise changes in Unity Editor vs compiled

I have a surface shader that adds a bit of positional noise, using the following code: ...
1
vote
1answer
151 views

LibGDX: TextureRegion renders correctly, but .getTexture() doesn't

I have a TextureRegion that I get from an atlas map (which in turn I get from the Asset Manager), eg ...
1
vote
0answers
125 views

Problems exporting meshes to Unity 5

After creating a tree (Scots Pine) in SpeedTree Cinema v7.1.1 I exported it as a .FBX ascii file to Unity 5 and I encountered a problem; the leaf material, while viewing it in Unity 5, can only be ...
1
vote
1answer
712 views

Why is my texture not applied correctly in OpenGL 2.0 with GLSL?

First off, this is a Uni assignment, but the lecturer is stumped too. With the shader active, I get nothing, just black. With the shader disabled (fixed function pipeline) I get a rainbow pattern ...
4
votes
2answers
2k views

How to make a palette swap shader that works withn non-pixel art sprites?

I´m trying to build a tool inside Unity that allows our artists to create different color palettes for our characters. The big problem is that since every single sprite is hand-drawn and hand-...
0
votes
1answer
2k views

Can I create realtime textures with text?

I have a large number of items in my game, that will eventually have a texture associated with them. The problem is, for right now, I have nothing. I would really like to do something with, say, the ...
0
votes
0answers
60 views

LibGDX: why using image buttons?

Well, I'm a beginner in libGDX and till now I used image-buttons to draw something which can be clicked for example. However image-buttons are really hard to draw, in fact you have to use it with a ...
2
votes
1answer
665 views

Applying a face image to a mesh head

I'm playing around with 3D graphics programming and it's only a few weeks I'm into OpenGL and able to render meshes with textures with few basic transformations. I've a hobby project where I want to ...

1 3 4 5 6 7 27