Skip to main content

Questions tagged [image-processing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
42 views

Height gradient generation from height map,using compute shader has weird artifacts

I am trying to generate the height gradient (the slope) for a heightmap of mine using a compute shader in Unity, and the result has weird ringing artifacts and I completely lost what could be wrong. I ...
Keksoskajoska's user avatar
0 votes
2 answers
359 views

How do you determine if a texture is primarily dark or light?

Particularly, how do you implement Color.GetBrightness (?) ...
ina's user avatar
  • 294
0 votes
1 answer
2k views

How to apply brightness/contrast adjustment to a texture's pixels?

I'm trying to use a non-shader method to convert a (single-frame) Texture2D to one with different brightness/contrast. Attempt so far uses: https://stackoverflow.com/posts/15408608/revisions I'm not ...
ina's user avatar
  • 294
2 votes
1 answer
260 views

How to generate a correct RGB + Luminance histogram?

I am trying to create a debug tool that would help me visualize an image RGB and luminance histogram. I have created a compute shader where I gather the histogram data ...
GameDevNerd's user avatar
0 votes
1 answer
250 views

Rendering tiles at a larger size for a detailed look

I'm trying to make my 32-bit tiled map become more "zoomed" in. However, I experience an error that I can't resolve. Firstly, I followed this post on how to render the tiles larger. This is ...
hanmic-6's user avatar
1 vote
1 answer
163 views

Bind render result to texture id

I want to save the result screen of the rendering and then apply another shader on that result, the typical way is to read the screen using glReadPixels and then buffer that image to gpu and then ...
Bahi Ali's user avatar
0 votes
0 answers
2k views

How to load a PNG in pure C

PNG loading: I've been creating a game engine for almost a year, and since the start of the development, I have been using stb_image for loading images. It ...
Álvaro Rodrigo's user avatar
1 vote
1 answer
1k views

How to distort an image using perlin noise?

I'm trying to generate a 2D map and currently I'm doing so by the use of voronoi diagram. The problem I found is that all biomes have really hard edges and I would like to smooth them out a bit. ...
UnknownUser's user avatar
1 vote
1 answer
101 views

Function to draw an image inside a rectangle

How can I draw an image inside a rectangle? I am introducing myself in the manipulation of images for games, I have a window and inside there is a rectangle that deforms. I would like to fill the ...
molo32's user avatar
  • 111
0 votes
0 answers
59 views

Text based cards tracker

I wish to build a card tracker that reads in game text and keeps track on the cards that are out. Like an Overwolf app, but for a card game. I mailed Overwolf and asked what are my options, they ...
Cohensius's user avatar
  • 124
0 votes
1 answer
1k views

Unity: White outline around seams in my character, make it stop!

so once upon a time I made a really cool character for my game project and he looked great. Then at some unspecific point in time, my character's UV seams got these awful white outlines around them: ...
hatinacat2000's user avatar
1 vote
1 answer
280 views

Downscaling texture via mipmap [closed]

Copied from Computer Graphics SE. I am implementing a post-processing effect in my DirectX 11 pet renderer. The post-processing pass is implemented by rendering a full-screen quad covered with ...
ivokabel's user avatar
  • 113
0 votes
1 answer
60 views

How to create a 32 bit red texture byte buffer

I want to make a red texture image buffer. Would anyone help me to make it in right way. I have tried following: ...
Tajuddin Khandaker's user avatar
0 votes
2 answers
362 views

Find appropriate camera-projector coordinates to project contours of real objects

I am developping a game (unity3d + opencv for image processing) where i detect real-life objects from the webcam on every frame, find their edges and then draw them on the real objects. I need to find ...
Safa's user avatar
  • 102
0 votes
2 answers
234 views

Alpha Blending older Images

I am working on re-writing an old game, and have faced some issues with the older images that were used, the first thing we done was convert all the old images and set the alpha channel on black ...
kyndigs's user avatar
  • 101
2 votes
1 answer
1k views

How do I detect a given sprite's bounds automatically using Java?

Background I have the following png file that contains the player sprite. As with any png file, the non-colored pixels are ...
Nicholas Adamou's user avatar
1 vote
0 answers
1k views

Passing an UAV to a Pixel Shader in DirectX11

I have a compute shader which task is to take an input image and then blur it using a Gaussian filter approach. The input and output for the compute shader looks like this: ...
Riggs's user avatar
  • 69
2 votes
1 answer
1k 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 ...
anurag-jain's user avatar
1 vote
1 answer
45 views

Any resources for how to read image files [closed]

I'm learning opengl and I'm the kinda guy who likes to write things from scratch and I was searching for how I can read image files data to create my own image importing library to use for textures ...
Tomahawk's user avatar
2 votes
1 answer
3k views

SharpDX Texture to Image in C#

I currently have an image processing application that outputs processed images post pixel shaders have been applied. However, using the examples I've found on the internet, the colors are flip to BGRA ...
Reaper's user avatar
  • 153
0 votes
2 answers
2k 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 ...
The Master Priest's user avatar
-7 votes
1 answer
178 views

can you explain the following java code for image processing? [closed]

here outdata is buffer of size[8*1024],can you tell me the exactly what will happened after execution of above lines??
anu's user avatar
  • 1
1 vote
0 answers
40 views

Pick a color and then Chop image with that color into 7 easy pieces

I have an image with 8 colors - (ROYGBIV and white) - I want to create 7 images - each has only one of the colors in the resulting image. I can do that fairly easily in GIMP. Next I need to chop each ...
Paul J's user avatar
  • 11
0 votes
1 answer
779 views

Alternative to System.Drawing for breaking an image into separate tiles in Unity

As far as I can tell, System.Drawing namespace is not available in unity. I there an alternative library to load and manipulate or generate images on the fly? ...
Ali's user avatar
  • 113
1 vote
1 answer
319 views

C++ : Library for creating 3d view picture [closed]

I've got a numerical simulation, where I have as an output 3d matrix of billion elements - the visualisation of data is 2d flat image: When I was starting I was just outputting 2d data to gnuplot, ...
Cheshire Cat's user avatar
1 vote
1 answer
985 views

What can I do in Unity3D to optimize the way I'm calculating contrast of a texture2D?

I have this contrast script right now in Unity: ...
Kala J's user avatar
  • 149
3 votes
1 answer
2k views

How can I use a lookup table for brightness and contrast?

Currently, I implemented a rudimentary brightness and contrast algorithm that changes brightness and contrast pixel by pixel. This was super inefficient performance wise and the algorithm looked a bit ...
Kala J's user avatar
  • 149
4 votes
2 answers
3k views

Signed Distance Fields: How are different colour channels used to improve output of sharp corners?

The naive approach to implementing signed distance field font rendering suffers quality issues where sharp corners get softened (either outward- or inward-facing corners, i.e. convex or concave ...
Engineer's user avatar
  • 30.1k
1 vote
1 answer
758 views

Getting normal map of an image

I'm trying to achieve the results in this tutorial: Link So far, I was be able to do that; with these; ...
ctulu's user avatar
  • 113
1 vote
1 answer
352 views

GLSL Processed Image to OpenGL

I've tried wording and rewording this question in various forms of search and can't seem to find an answer to it. If I'm wording it wrong and/or just not finding the right information, feel free to ...
Drake M.'s user avatar
5 votes
1 answer
2k views

How to vectorize a raster image edges into SVG paths?

I'm having a lot of trouble figuring out how to convert a 2D list of points into an SVG Path representing a political map border. I have completed all parts of a 2D terrain generator, including ...
Kaelan Cooter's user avatar
1 vote
2 answers
4k views

How can I rotate a bitmap without D3D or OpenGL?

I've just figured out on my own how to scale a portion of a bitmap using PutPixel. I would like to know the mathematical theory behind rotating a bitmap on my own, ...
NoobScratcher's user avatar