Questions related to images, including creation and modification

learn more… | top users | synonyms

0
votes
1answer
37 views

How to load and display an image in OpenGL ES 3.0 using C++

I'm trying to make a simple app on Android Studio using the NDK, JNI to call C++ code that load and display an image. I have managed to create the surface and draw a simple Triangle already. Now, I'm ...
0
votes
0answers
33 views

Change color to an image in SDL (c ++)

I have an object in the game where its color depends on various circumstances (scenario, collisions, etc.) The problem is that for each situation, in the sprite sheet I have to add the object with ...
1
vote
1answer
43 views

Unity Raw Image ui not showing when small

I have some Images online that I download using WWW class and the use as UI elements. So far all of them where working perfectly but now the one I added recently is acting up. First you should know ...
0
votes
0answers
21 views

Why do i have get the undefined reference to 'IMG_Load' for SDL2 using Eclipse?

I'm trying to load a '.png' image within an SDL window using the 'SDL_image library'. I know this problem has been outlined multiple times online but i still have the same problem after checking all ...
0
votes
1answer
41 views

Why doesn't SDL_Surface rendering work in SDL2?

I have done the following using C++: 1) I used SDL_CreateWindow() to create an SDL window m_window = SDL_CreateWindow("My First Side-scroller SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, ...
1
vote
1answer
30 views

Android build has white image over game

In unity when I am playing my game it displays fine, but when I build and run it to my nexus 5 there is this white something I don't even know over my game. Any suggestions for fixes?
0
votes
1answer
49 views

There any way to insert images inside the code (just for comprehesion) in any IDE compatible with Game Engine Unity3D (Monodevelop for example)? [closed]

My code has a lot of geometry codes, thinks that shouldn't be represented just by comments I don't know if it exists, but should be fine to insert images like png in the middle of codes explaning that ...
0
votes
1answer
36 views

Why Won't Image Drawing Work In JavaScript

In my game at the beginning the first thing that you'll see is a campfire with this code: var campfire = new Image(); campfire.onload = function () { ctx.drawImage(campfire, campfireX, ...
1
vote
1answer
74 views

.PNG changes color in Love2D

I have a small .PNG file. I load it with: picSmiley = love.graphics.newImage("salamander.png"); and I draw it with: love.graphics.draw(picSmiley, objects.ball.body:getX(), objects.ball....
1
vote
2answers
81 views

Using sprites in pygame without classes and objects

Relevant information I'm in a grade 11 computer science class that uses Python & Pygame. We're aloud to use sprites and images though we're never taught it, just drawing graphics like squares and ...
0
votes
2answers
47 views

Gamemaker: images appear blurred in application

I'm making a practice game (generic space invaders clone) in Gamemaker Studio. However, there appears to be a problem with the images. While they look acceptable in Gamemaker Studio (not amazing, due ...
-2
votes
1answer
115 views

How to create image slider using unity

I have created one unity app with vuforia plugin. App contains image target to view an object and play video. I need one more feature to create gallery view from image target. I want to create ...
0
votes
2answers
83 views

Technical Design Document and PNG filesizes

I am writing a Technical Design Document and starting to list assets and their file sizes. The formula for calculating the file size of a PNG is easy: width x height x bit depth. I am having a ...
0
votes
1answer
76 views

Can't set Source image for UI image

I am new to Unity. few days back i have started learning to make games using Unity Engine & I started making a very basic car racing game. In order to add an On-screen SpeedOMeter for my car I ...
0
votes
2answers
76 views

How to draw an image on canvas without html

I'm trying to add a sprite to the canvas of my game. However, I don't want to use an image tag. However, I haven't found a way to do this no matter how hard I searched. Something like: var image = '...
0
votes
2answers
66 views

How add a sprite to canvas using JavaScript?

I'm very new to sprites and I'm trying to figure out how to use them. I want to use a simple solution. Something like this: var c = document.getElementById ('canvas) var ctx = c.getContext ('2d'); ...
4
votes
1answer
185 views

How to pass PNG image data directly to SDL?

Well passing just external PNG to SDL is very easy with the SDL_image library. I have a class that does just that. The code looks like the following: SDL_Surface* Texture::LoadImg(const char *...
2
votes
0answers
57 views

Custom Inspector for textures?

I am working with an open source project called Project Porcupine. The project is a game engine for a base building game that allows for one to extend the game. We have a system to read texture files, ...
1
vote
0answers
18 views

Unity DirectoryInfo not working in OSX standalone build

So I'm building an application in unity which I hope to use at a market day coming up soon at my school (it's not a game, it's basically like a checkout app, kind of...) Anyway, I'd like to be able to ...
0
votes
0answers
54 views

Issue with dark .PNG files in Unity

I made sprite assets in Krita and I exported them as .PNG files. When I import the files into Unity assets, however, they become a lot darker than the original colors. So far, I haven't found the ...
0
votes
1answer
66 views

Make UI Button Image Size Independent of Screen size Unity

I have two UI Buttons with image sprites in Panel (inside canvas). I have set their sizes to 40 in the inspector. If I run game in maximize mode, buttons retain constant assigned size of the inspector,...
0
votes
0answers
23 views

Drawing a 2D polygon filled with a rotated texture

As I have seen, System.Drawing.Graphics in C# has proven to be really bad at handling larger images. So, if I want to draw a both tiled and rotated image, I will have to draw each tile directly to the ...
0
votes
1answer
56 views

Unity2D: Scaling and Locking Image to anchor points

I have a script that uses Index to change an objects sprite using OnClick to move through the sprites, like a slideshow. I want the image to scale to the size of my anchor points, because I've notice ...
0
votes
1answer
56 views

Showing background transparent image in android

I have a image with transparent background created from photoshop. I added this to my android game which I am creating using libgdx. But when I add it to that, it is shown with white background like ...
1
vote
1answer
50 views

why are texture atlases called texture atlases and not image atlases

More specifically, is there anything about texture atlases specific to textures? From what I've read of them, they might just as well be called image atlases. Images are not the same as textures, but ...
0
votes
1answer
52 views

Got unexpected results from perlin noise. Wondering what it is doing?

I was just messing around with perlin noise and got this. Wondering if anyone knows what it is or has seen it before. Here is the code(LUA with love2d engine): function love.load() love....
3
votes
1answer
61 views

How to save one color channel, taking only 1 byte per pixel?

How can I save only one color channel, such that it would only take 1 byte per pixel? I only want to save the alpha channel and apply colors later using a custom shader. But all the formats I tried ...
1
vote
1answer
117 views

Programmatically change combination of sprites

I am a total newby to unity and cannot figure out how to achieve the following: I want to show a picture composed of different sprites. E.g., a pen with four binary features: the pencolor (black or ...
1
vote
0answers
58 views

How do I resolve the inability to get an input stream from URL?

I am unsure if anyone has ever had problems with this, but I am having difficulty trying to get the URL to work properly however, this is what the logs says javax.imageio.IIOException: Can't get ...
1
vote
1answer
91 views

Drawing on an image before drawing on screen in XNA using VB.NET

I'm programming a game in XNA, using VB.NET. I want to create an intro to the game that zooms in/out the whole screen and scaling each image to accomplish this is cumbersome at best. I like to be able ...
0
votes
1answer
118 views

Libgdx change the image inside table dynamically

I am trying to draw a HUD that shows the score and time and image like loading but I want to update and change the image when the score get higher but I tried to do that but it is not working. I ...
0
votes
1answer
994 views

How to make texture size correctly in THREE.js?

I'm new to THREE.js and I have a frustrating problem. I can't get my grass texture to size "normally" on the terrain. I get it, the terrain is steep, but that doesn't mean the grass should be ...
1
vote
1answer
55 views

Image Interpolaton for Rotation

I am building a 2D game in Java in which I use trig operations for rotation. I know Java offers an excellent graphics library but I intend to make my own code just for learning purposes. Now the ...
0
votes
1answer
66 views

cocos2d-x Label Load Image like Sticker-Smile..(by html or …)

hi and sorry for my english... i am using cocos2d-x (c++)... can i load sticker (smile) in my Label(a text mixed by image)? i know that we can load bitmap fonts by: Label::createWithBMFont also i ...
-1
votes
0answers
17 views

In Processing, why does this call to image() cause an error?

Here is my code: Hero robinHood; Arrow arrow1; PImage bg; PImage left, right, still; float positionX = 383; float positionY = 455; void setup() { size(800,600); bg = loadImage("background1.png"); ...
3
votes
2answers
63 views

Stop Unity from smoothening out images

In Unity, low-resolution images are "smoothened out". Is there a way to keep them pixelated? For your information, the images that I'll be using are in PNG format.
1
vote
1answer
110 views

Hybrid App - Game Encyclopedia Image Asset

An in-game encyclopedia usually consists of entries and images for things related to the game. For example, pokemon's pokedex. Image of Pokemon, text description and so on. I've happen to encounter a ...
1
vote
0answers
32 views

Getting the polygon footprint from a map

I'm trying to implement the Explicit Corridors method to generate a navmesh for a large city. The algorithm takes a list of convex polygons representing the obstacles as input. The paper only ...
3
votes
0answers
219 views

Change color of bitmap

I am attempting to understand the easeljs ColorFilter and its use with cache. There is quite a bit of information at the easeljs site but it's not clear based upon the examples and documentation. ...
0
votes
1answer
131 views

Will scaling images at runtime impact my game's speed?

I have read the android developer guide to working on different screen sizes. My question is, if I only provide one image in the drawable file, and let android scale it for me, will it impact the ...
1
vote
1answer
57 views

How to add images?

I was adding images after reading in the documentation: This means that if you generate a 200x200 image for xhdpi devices, you should generate the same resource in 150x150 for hdpi, 100x100 for ...
0
votes
1answer
76 views

Image rendering with additional space around it

When I try to display an image that is 400 pixels wide and 800 pixels high, it is not displayed this way. Instead it is diplayed like this: Instead it is displayed like this You can see at the bottom ...
1
vote
0answers
130 views

Image Buttons Have Low Resolution Quality

I'm using Synfig Animator to draw my animations for my android game I'm also using Android Studio to write the code for it, However. On testing, the images that i'm using looks very bad and unfocused ...
1
vote
2answers
2k views

Is async image loading possible?

Can anyone tell me if there is a async version of LoadImage() method? I found about Resources.LoadAsync, however the method doesnt work. Thank you
0
votes
1answer
158 views

Problem with transparent textures in SFML

I have been told that this is kind of a common problem with transparent textures, but didn't get any further information on how to solve it. In my code, I'm trying to render this texture (a square ...
1
vote
1answer
147 views

Why loading ~250mb of compressed texture data spills Out of memory error on Windows

I am making SDL2/OpenGL 2D game for Windows with a lot of pre-rendered sprites. When testing on my laptop I got SDL_Surface creation failed: out of memory error during loading assets. Windows' ...
0
votes
1answer
70 views

SFML dynamically loading images

So I'm screwing around with c++ and SFML, when I thought to myself the following: If the images are compiled into the executable, with enough sprites for the game, memory might become a problem at ...
0
votes
0answers
60 views

Scrolling Background - smoothest way

I am trying to find the best solution for drawing a scrolling background in my app in Java. For now, I have two images and I move them by 1x and put it's thread to sleep for hmm, 5ms. The problem is ...
2
votes
1answer
94 views

Software polygon rasterization with transparency using raw image data

I have an image with shapes in it (squares and triangles with different colors scattered in the image) and I have an algorithm that matches the image and extracts the geometry vertices from image raw ...
1
vote
0answers
34 views

Ericsson compression for normal and bump maps

how does ETC2 fares when compressing normal maps and bump/height maps? Since we are talking about using an algorithm created for visual fidelity, applied to vector and numerical data ⃰ I'm quite sure ...