Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (780)
Games in Android Showcase (233)
games submitted by our members
Games in WIP (857)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  [Solved] Coloring a gray image  (Read 16909 times)
0 Members and 1 Guest are viewing this topic.
Offline Eli Delventhal

JGO Kernel

Medals: 42
Projects: 11
Exp: 10 years

Game Engineer

« Reply #30 - Posted 2011-10-18 20:17:18 »

If you really want to KISS, Why not just have a base version of each image and a "tint" version of each image? Then just glColor4f(color) before drawing the image on top that represents his clothes or whatever. And make whatever pixels you want to be colored white in the overlay. Easy peasy. Not too expensive if you're not doing this with too many sprites.

See my work:
OTC Software
Offline R.D.

Senior Devvie

Medals: 2
Projects: 1

"For the last time, Hats ARE Awesome"

« Reply #31 - Posted 2011-10-19 05:52:50 »

Okay this is offtopic but... The Problem with the XP for me is, that it has HUGE RAM leaks. Even a standard game using only the build in scripts is affected by this. Don't get me wrong, I worked with the XP for a short time and I also help people with some technical stuff but I would never telle anyone to use XP if someone wants to make a game :/ Because in the end... I want to be able to play this game xD And as a developer it's just anoying to see a simple Battlesystem lacking like hell Sad (even on good PC's)

@Eli Delventhal
Something like that was what I did Smiley But havaing a second image over the gray one gives me mor freedom, e.g. tinting different colors on one image and just blend them as Chromanoid suggested.
Offline davedes
« Reply #32 - Posted 2012-02-18 22:28:14 »

You could think about generating the grayscale images programatically; it will mean reduced distribution size and perhaps a faster startup (less PNG decoding). Here's a start:

The downside is that you'll have less control over the aesthetic of the grayscale image.

You might also consider packing the color and RGB versions into the same texture for reduced texture binds. Smiley

Pages: 1 [2]
  ignore  |  Print  

hadezbladez (734 views)
2018-11-16 13:46:03

hadezbladez (372 views)
2018-11-16 13:41:33

hadezbladez (724 views)
2018-11-16 13:35:35

hadezbladez (186 views)
2018-11-16 13:32:03

EgonOlsen (2384 views)
2018-06-10 19:43:48

EgonOlsen (2537 views)
2018-06-10 19:43:44

EgonOlsen (1472 views)
2018-06-10 19:43:20

DesertCoockie (2136 views)
2018-05-13 18:23:11

nelsongames (1933 views)
2018-04-24 18:15:36

nelsongames (2614 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!