Questions tagged [image]
Questions related to images, including creation and modification
266 questions
0
votes
1
answer
74
views
Can PNG format be used for alpha channel-packing for URP shader in Unity engine?
Note: I intend to use only the Inspector window to use all textures, not Shader Graph or Nodes or any custom scripts. Also I might use some technical terms incorrectly by mistake, as I'm not much ...
1
vote
1
answer
72
views
Change sprites for multiple image in one function
I am trying to make a digital clock (24:00 type), where each number is an individual image, that should change. So, I want to change sprites for multiple images in one piece of code.
But when I ...
0
votes
0
answers
66
views
Bicubic filtering of texture with arbitrary data
I want to add bicubic filtering to my software raytracer. I have a texture that can contain arbitrary data. I want to sample that texture by bicubic interpolation (bilinear isn't smooth enough). Here ...
0
votes
2
answers
138
views
How to highlight only specific part of the UI image in Unity?
How can I highlight only specific parts of an image in Unity?
My image would be something like the example below: a grid with text and fields. Text can be separated, but I would prefer it be part of ...
0
votes
0
answers
62
views
Use alpha map instead of PNG
When I browsed the files in Insaniquarium, I found these images:
The first image "smallswim.gif" is sprite animation
The second image "smallswim_.gif" is (I think) alpha map
So ...
0
votes
1
answer
126
views
How do I get a 3D collision with a Heightmap in Raylib?
I'm presently trying to do a sorta Starfox clone with Raylib, using the heightmap example here: https://www.raylib.com/examples/models/loader.html?name=models_heightmap
In order to handle collision in ...
0
votes
1
answer
278
views
How to control the scaling/cropping of a background image
I created a new scene in Unity, dragged an image file, and scaled it to fit the screen size. Here is how it looks like in the Scene panel:
When I change the screen size, e.g. by switching to ...
0
votes
2
answers
264
views
How to set ordering between Sprites and Images?
Assume that you have an Empty Object, which holds a Canvas. This canvas has 2 Image component, Background and ScoreUI. Background is just an image for background, a nice picture. ScoreUI is aimed to ...
1
vote
1
answer
707
views
Godot 4.2.1: Calling get_data() on Image from NoiseTexture2D Returns Null
I am trying to retrieve image data from a NoiseTexture2D. I seem to be able to get an image resource, but as soon as I try to get the associated data via ...
2
votes
3
answers
326
views
Performance issues with high-resolution maps in 2D strategy games
I'm currently developing a 2D strategy game, and I've encountered some issues with the game map.
My idea is to use a single 2D image as the strategic map for the game. similar to this (Supremacy 1914) ...
1
vote
0
answers
49
views
Texture wrapping mode for KHA
I'm working on a game engine which is written in Haxe with the Kha API.
I need to set a texture to wrap mode but I can't find any function or variable to use/set.
The image is created with these ...
0
votes
0
answers
37
views
How to set up Unreal camera dimensions to export a book cover?
In the following image, you can see the camera settings of Unreal Engine.
Suppose you have a scene. How can I setup the camera dimensions to match perfectly, and ready to export, an Amazon ebook ...
1
vote
1
answer
214
views
How to fix Unity UI Panel Image being replaced with an "X"?
In my Unity Game, the Image on my UI Panel got replaced with an "X" instead of the Image it is supposed to be, I tried adding a different image to the panel and making a new panel, but it ...
0
votes
1
answer
71
views
Can I insert sound in the tooltip?
Before this, I try to insert an image in a tooltip and it was already done. But right now, I want to try to insert a sound in the tooltip. What I want to do is when I point my cursor to the object it ...
0
votes
2
answers
128
views
Display image by using tooltip
I want to display the image using a tooltip. So when I point to the 3dobject, it will display the image that I already created. Right now I already set the sprite in the tooltip but I have an error in ...
0
votes
1
answer
134
views
Show an image as Tooltip in a Unity 3D
I got the following question:
How to show an image as Tooltip in a Unity3D?
The image should only be visible if the user hovers over the 3d object.
Thanks in advance,
hidayah
0
votes
1
answer
90
views
Rendering 3D Scene Without PBR heedlessly
I am a beginner in computer graphics so I might have some terminological errors in my question. For an art project, I have a scene of modified planes with textures on them. The textures are taken from ...
1
vote
2
answers
125
views
Faster approach to iterative pixel mapping in Unity
I need to take an initial Texture2D and, depending on four sliders, remap the RGBA channels. What I currently have works, but is not very performant, especially with larger images.
...
-2
votes
1
answer
314
views
Where can I find free images for game development? [closed]
I am developing a game. Writing a program is not too difficult for me. But I have a problem with drawing images. So my question is: where can I find free images for game development? Like characters ...
1
vote
1
answer
245
views
How do I make square tiles with numbers on them?
I would like to make a game called 15 puzzle. But I'm not a designer. I'm interested more in programming side of the process. So for this project I need some really simple squares with numbers. I've ...
0
votes
1
answer
620
views
How do you determine which 4 pixels to interpolate, using bilinear interpolation?
I read about bilinear interpolation on Wikipedia and many sources, but I still don't understand how do you determine which four pixels to interpolate.
For example, if I have 5 pixels(y=0), do I ...
0
votes
1
answer
740
views
1920x1080 Image don't fit to 1920x1080 screen
I'm making a game with pygame and I wanted to add a background for my game. I'm trying to add a 1920x1080 background to a 1920x1080 screen, but part of the background is not visible.
My code:
...
0
votes
1
answer
109
views
Size of an object based on a variable
The code shown below is meant to change the size of a bullet based on a changing variable. But when I put this code in the create tab, the size of the bullet stays the same, regardless of the variable'...
3
votes
0
answers
350
views
How can I generate random splatter shapes like these?
I am trying to make a tileset. I made some tiles by hand in GIMP using one of the included pencil shapes. I would like to automate the process. They need to fit in the square and have the features you ...
1
vote
0
answers
1k
views
Rendering 3D items in a GUI in Unreal Engine
I have various buildable 3D items in my game like so:
These are just a few, but there will eventually be hundreds of them. The models of each of these items are displayed to the user as part of a ...
0
votes
2
answers
211
views
Make materials higher quality as the user gets closer
Scenario
I have a sphere with an low-quality earth texture on it. I also have a much higher quality earth texture (Gigabytes in size) that I can use but it's too performance intensive to use on most ...
2
votes
2
answers
259
views
What do you call an image of images? (And how does it get utilized?)
I wondered if anyone knows the terminology in which a Video Game uses an image with sets of ideas such as icons, graphical texts, and/or background images. Essentially, an 'All-In-One' image.
Likewise,...
3
votes
1
answer
2k
views
How to access a ViewportTexture's depth data as an image?
I make use of ViewportTextures, kind of like rendering security cameras on screens. Now, I'd need to access the depth textures to do some comparison of images / pixels. How do I access the depth data ...
-3
votes
2
answers
523
views
Better use background chromas or transparency?
For png 2D sprites, its better use chromas or alpha channel?
What is more performant during run-time processing?
What uses less storage?
Any difference between ...
0
votes
1
answer
54
views
Icons and imagery rights
Can someone tell me if the icons and images of TravianZ in this GitHub project are public domain?
I need to create a similar game and need only the town / buildings images. Seems the project was ...
1
vote
0
answers
226
views
Is there a way where we can verify if certain image is 3D or not [closed]
I wanted to understand - Is there a way where we can verify if certain image is 3D or not
So basically I want to automate the process where we can detect if certain given image is of 3D or not
Problem:...
0
votes
0
answers
182
views
Dynamic UI Canvas on Mesh
I have dynamically generated images in WorldSpace Canvas and I need to put them somehow on shield that crashes. Is it possible tu put that canvas on mesh shader texture or render it on texture?
How ...
1
vote
1
answer
147
views
The gameloop is stucking the window
I tried to display a player image in a 800x600 window using PyGame but when I try it, the window just gets stuck (immovable with mouse drag, minimize,maximize and close button is stuck and not ...
1
vote
1
answer
177
views
How can I let the user choose his own background image?
Dear Stackoferflow Fourm I would like to have a function in my Android Game Programming that allows the user to choose his own background image (I would like to let the user change the plane image) ...
0
votes
1
answer
7k
views
Texture with Transparent background has black background in Unity
please see the below image. I made a model in Blender that has eye meshes with UV mapped Pupils. But trying to import all this into Unity is causing tons of weird visual errors...
The pupil png has a ...
0
votes
0
answers
191
views
Display/hide image with zoom in/out
After spending a while looking through the forums, I haven't been able to find a thread that deals with transforms on an image.
Essentially, what I'm trying to do is display and hide an image at the ...
0
votes
0
answers
629
views
Jumping a image in javascript
Which is the most efficient way to animate an HTML <img> element in vanilla javascript so that it jumps and falls back with acceleration.
Edit:
Im adding ...
0
votes
1
answer
673
views
Unity UI Objects edges are not smooth
I have this Unity UI Image placeholder and here is the snapshot
As you can see its edges are not smooth. First I thought this is editor problem but after making the build it remains the same. What i ...
0
votes
1
answer
3k
views
Different resolution for UI?
I'm developing my first game for mobile devices in Unity3D. My game uses a 720p-resolution. Currently the UI uses the same one. So far so good.
I heard that professional game-developers create their ...
2
votes
1
answer
769
views
Huge procedurally generated subway transit map
How could I generate a single transit map image
, which is not based on any real map, on a massive scale? Are there algorithms or tools which could do something like this already?
Unlike ...
0
votes
1
answer
1k
views
Health bar without image collapsing to the centre in Unity 2D
I am trying to create a health bar that collapse symmetrically to the centre. The color palette of my game is minimal and the health bar is only one color that does not change with size. I am new to ...
-1
votes
1
answer
542
views
Loading the map from an image file in C++
For my platformer tile-based game I want to be able to load the game map from an image file.
Consider the following 25x15 px .png (enlarged) representing some level:
Assume that each specified color ...
0
votes
1
answer
289
views
Actual Sizes of An Image loaded with a Path
I have a method which selects an Image from device. I need to show this image to users.
The codes below works fine, does what I need.
...
0
votes
0
answers
4k
views
Is there a way to assign a texture to a button and resize it in the Unreal Engine?
I'm attempting to create a main menu for my game and have followed an easy tutorial to do so. The tutorial doesn't cover assigning textures or images to buttons, so I set out to do this myself.
...
0
votes
1
answer
311
views
How do I permanently set the interpolation for every image, sprite, and texture in pyglet to GL_NEAREST in pyglet?
There are plenty of examples of posts that describe how to set the default interpolation of specific images to GL_NEAREST, for example here, but they all have to be run after the image texture is ...
1
vote
1
answer
462
views
How to add lighting to a 2D Tile-based game in JavaFX?
I'm making a 2D roguelike tile-based game with Java and JavaFX. I'm currently working on adding lighting and darkness to the dungeon, but whenever I try running it, it takes a very long time to load, ...
0
votes
1
answer
3k
views
How to make a world map from image like in paradox games? (Java, LibGDX)
I'm working on a grand strategy game similar to those made by Paradox Game Studios with their Clausewitz engine. I'm trying to create the world map from an image. On that you can see the areas, and ...
0
votes
1
answer
77
views
How do I make an image appear based on the current state I'm in?
I am following a tutorial called Complete C# Unity Developer 2D: Learn to Code Making Games. In one section we create a text-based game, where we display a canvas with some UI elements to the user. ...
0
votes
1
answer
618
views
Color of Image changes to white between 2 positions using Color.Lerp - Unity
Hi I have an empty object barHolder that I move between 10 and 98 on x-axis. It has 2 child ...
0
votes
0
answers
38
views
How can I generate high feature point images for recognition within an Augmented Reality app?
I need to automatically generate 300-400 images (for a print medium) which will be used by an AR app (using ARCore).
The printed physical image ideally would be 5" x 8" but can be 5" x 5" as well.
...