Questions tagged [texture-atlas]

In realtime computer graphics, a texture atlas is a large image containing a collection of sub-images, or "atlas" which contains many smaller sub-images.

127 questions
3
votes
1 answer

iOS7 what is the correct way to create and use SKTextureAtlas?

I'm not sure of the underlying implementation of the texture atlases, so my question is - what is the correct way to deal with pulling textures out of them? I need to loop through various atlases and pull out 64 random textures. Create a static…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
3
votes
1 answer

HLSL color bleeding when using a texture atlas

I'm making a game in C# / XNA. I'm currently working on the shader I'll be using for the terrain. I'm using a texture atlas for speed and efficiency but I'm experiencing texture/color bleeding between tiles: https://i.stack.imgur.com/249Ha.png I get…
user2002287
  • 51
  • 1
  • 6
2
votes
0 answers

SpriteKit draw calls not batched when using a texture atlas from data stored in the app bundle

It seems that SpriteKit doesn't batch the draw calls for textures in the same texture atlas. There are two different behaviors, based on how the SKTextureAtlas gets initialized: The draw calls are not batched when the texture atlas is initialized…
Calin
  • 2,110
  • 1
  • 21
  • 36
2
votes
1 answer

How I can create a texture atlas in OpenGL with other existing textures?

I will like to generate a texture atlas from some textures that are already loaded in memory. The textures I will like to include in the atlas are generated procedurally on runtime so I can't just create a png tilemap that already contains them. Is…
ellipticaldoor
  • 1,122
  • 11
  • 24
2
votes
1 answer

Xcode Simulator Showing Textures Correctly But Not Device

I just switched the textures in my SpriteKit game to using a Sprite Atlas. It is all working fine when I test on the Simulator, but on my connected actual iPhone, it does not. All textures in the atlas display in a sort grid pattern, shrunken and…
Muindor
  • 177
  • 1
  • 9
2
votes
0 answers

Loading texture atlas from base64 URI Phaser 3

I'm building a game with Phaser 3 that will be deployed and run inside a basic Chromium shell. I don't have the ability to add a server behind the scenes to handle image delivery (and prevent CORS issues), so I'm loading my assets into my game using…
brae
  • 1,052
  • 8
  • 18
2
votes
1 answer

Android Studio App stops working before it even opens using Libgdx

I have built a simple app on Android Studio using Libgdx to display an animation composed of 6 .png images which I made a TextureAtlas of. The project builds fine with out any errors but when I try running the app in the emulator, it crashes upon…
2
votes
1 answer

SpriteKit texture atlas folder structure

I read that when I add images into the xcassets file, if they are grouped SpriteKit will combine them into atlas structures. Currently I'm creating atlas folders with internal folders on my Mac, then I drag and drop this folder into my project's…
Discoveringmypath
  • 1,049
  • 9
  • 23
2
votes
1 answer

Randomize different enemy in spritekit to move towards player

I was wondering if anyone could answer my question. I have created 3 different enemy animations with texture atlas in Sprite-kit and I was wondering if there is a way that an enemy is randomly picked to move towards the player as soon as the game…
sicvayne
  • 620
  • 1
  • 4
  • 15
2
votes
3 answers

XCode8 TextureAtlas compiler did not produce

I was adding new particle.sks file into my Swift 3.0 project in XCode8. I created the partile-file with the XCode editor. I have many particles already (done in XCode7). All of sudden my app won't compile because of: TextureAtlas compiler did not…
user594883
  • 1,329
  • 2
  • 17
  • 36
2
votes
1 answer

Draw Texture2D atlas inside Texture Array

How to draw via GLSL Sampler only part of Texture2D Atlas stored inside Texture Array? For example i have Texture atlas, and i will put them together (with other atlases of same size) inside Texture2D Array. (glTexSubImage3D) Well, how my sampler…
Happy Day
  • 297
  • 1
  • 5
  • 14
2
votes
0 answers

How to implement a texture atlas shader?

I would like to know how to use shaders with texture atlases. Does anyone know how I can get only one part of the image to be drawn? Current View : Desired View : Shader Source code : Shader "Test/WeaponMaker" { …
2
votes
2 answers

Vertex Color to UV Map -> Remesh -> Texture mapping

I have a polygon mesh of a room in high resolution, and I want to extract vertices color information and map them as a UV map, so I can generate a texture atlas of the room. After that, I want to remesh the model in order to reduce the number of…
Finfa811
  • 618
  • 1
  • 8
  • 28
2
votes
2 answers

Can a texture atlas consist of PDF images?

I'm trying to make a texture atlas for a sprite kit animation, and all my frames are in pdf format. This (or something) doesn't seem to work: SKTextureAtlas(named: "my-atlas-name") contains no textures. I should probably try the same setup with…
Phlippie Bosman
  • 5,378
  • 3
  • 26
  • 29
2
votes
1 answer

SpriteKit Load Texture First Time Lag Even With Preloading

Here is my problem: Despite doing these: 1) Preloading all of my texture atlases 2) Having my atlases stored in Singletons so they are not disposed of by ARC 3) Having all my animation arrays stored in Singleton SpriteKit STILL has a short "lag…
datWooWoo
  • 843
  • 1
  • 12
  • 42
1
2
3
8 9