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
0
votes
1 answer

How to use TextureAtlas for animation instead of TextureRegion? - libgdx

I've been trying to figure out the best way to replace this code with something that uses TextureAtlas instead of splitting the texture into different areas. Would using that be easier? private void loadAllAnimations(){ // Walking animation …
0
votes
1 answer

WebGL tiling from texture atlas

I have map tiles (256px x 256px) stored in a texture atlas and want to select a tile and draw it with the adjacent 8 tiles around it. My texture atlas is something like this (named the tiles 1-9 for simplicity): I already have a setup to make the…
Herjar
  • 59
  • 6
0
votes
0 answers

Signed distance field font atlas - size reduction of the texture

I have an SDF atlas (8bit grayscale) with all the Arial glyphs, which is about 16k^2 pixels. Rendering text works more or less fine, but such texture eats about 256MB of GPU memory. Graphics system is OpenGL. Q: Are there any solutions as to not…
0
votes
0 answers

is possible merge material?

I am a newbie. I'm using three to create a Rubik's Cube game, and the problem is that there are too many drawcalls. A 5x5 Rubik's Cube game needs at least 275 drawcalls. which is particularly obvious on phones with poor performance. Is there any way…
0
votes
1 answer

Why a texture cannot find its position in a texture atlas after the atlas has been resized?

I've got texture atlas from: https://straypixels.net/texture-packing-for-fonts/ struct TextureNode { TextureNode(const Vector2& origin, const Vector2& size) : origin(origin), size(size) { } Vector2
BrodaJarek3
  • 311
  • 1
  • 9
0
votes
1 answer

Error loading files from Multiatlas in Phaser3

Trying to use the multiatlas feature in Phaser and TexturePacker. Getting this error: VM32201:1 GET http://localhost:8080/bg-sd.json 404 (Not Found) Texture.js:250 Texture.frame missing: 1/1.png The JSON file actually resides at…
Andrew Grothe
  • 2,562
  • 1
  • 32
  • 48
0
votes
1 answer

FreeType - Texture Atlas - Why is my text rendering as quad?

I'm currently trying to improve my text rendering. The basic way where you render every character separate works, but now I want to do everything in one draw call by rendering a texture atlas. The texture atlas is almost done. It does render the…
Sander
  • 73
  • 6
0
votes
1 answer

How to *optimally* draw multiple images in WebGL (i.e. texture atlas)

Here lists how to draw multiple images in WebGL but it draws them one at a time which I've learned is suboptimal. What was recommended is using texture atlassing or perhaps something else. Somehow reducing the draw calls. Can you demonstrate…
user10869858
  • 481
  • 1
  • 3
  • 16
0
votes
2 answers

Error while loading texture atlas in my kivy application

I am unable to open up a individual sprite within my atlas that I have compiled using kivy pillow. I keep getting 'Error loading texture' within the python interpreter. I am new to kivy so my biggest inclination to what is wrong is my file structure…
Joshua
  • 43
  • 6
0
votes
1 answer

three.js - repeating a SECTION of a texture atlas

So in three.js it seems we need to use the texture.offset and texture.repeat properies to extract sections of a texture(atlas) for applying to different meshes. This works fine, but as far as I can tell it is impossible to then choose to repeat that…
korrbit
  • 37
  • 1
  • 5
0
votes
0 answers

How do I create SKTextureAtlas at run time from plist in SpriteKit?

I load textures from net. Textures are created with TexturePacker for SpriteKit. I can create Atlas only from textures that I have at compilation moment.
0
votes
1 answer

Resizing an OpenGL texture without changing UV coordinates

I have a texture atlas that gets generated during gameplay. Textures are loaded and unloaded depending on which textures are visible when the player moves around. The problem is when there are too many textures to fit in the atlas and I need to…
user1779715
0
votes
0 answers

Calling sprites from texture atlas without using starling in action script 3

Is there anyway to use a texture atlas without using starling framework in flash? Everywhere i looked for related tutorials it's all about starling framework. I suppose there must be a way to embed the texture atlas without using starling. The…
Sahran
  • 1
0
votes
0 answers

How to create this animation in spritekit without texture atlas

I am trying to create an vine animation in spritekit that looks like this I'm trying to recreate an effect similar to this game called prune. this gif shows what the game looks like I havent been able to find a library that does might help me…
0
votes
1 answer

When to pad or extrude textures in texture atlas?

In what situations is it necessary to extrude the pixels around a texture within a texture atlas, and in what situations will a padding of transparent pixels suffice when trying to prevent edge artifacts around your images?
BladePoint
  • 632
  • 5
  • 16
1 2 3
8 9