Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (744)
Games in Android Showcase (225)
games submitted by our members
Games in WIP (825)
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  
  Image Effects  (Read 8469 times)
0 Members and 1 Guest are viewing this topic.
Offline matanui159

JGO Coder


Medals: 11
Projects: 1
Exp: 10-12 months


Aww... So cute...


« Reply #30 - Posted 2014-11-03 01:56:21 »

I might just use Java for know but I might add the ability for other devs to use Java, JS or GLSL later on if I choose to continue with this further... For the time being, I might just finish this, release it, and start to work on other stuff:
- using XML for Swing layouts
- add UDP for my game engine
- make my first game in my game engine

Is it sad that I still get a fright when the computer beeps at me...
Offline matanui159

JGO Coder


Medals: 11
Projects: 1
Exp: 10-12 months


Aww... So cute...


« Reply #31 - Posted 2014-11-04 02:44:18 »

Just wondering, I am using the image kernal for a lot of effects like blur and emboss... But what about effects like sepia, instant and enhance?

Is it sad that I still get a fright when the computer beeps at me...
Offline ags1

JGO Kernel


Medals: 356
Projects: 7


Make code not war!


« Reply #32 - Posted 2014-11-09 00:10:27 »

Why not use a scripting language like Lua or even Javascript for your effects? Then you could alter your effects at runtime.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Catharsis

JGO Ninja


Medals: 73
Projects: 1
Exp: 21 years


TyphonRT rocks!


« Reply #33 - Posted 2014-11-09 04:42:59 »

Why not use a scripting language like Lua or even Javascript for your effects? Then you could alter your effects at runtime.

There is fast (GLSL) and then there is slow: everything else...   

BTW you can recompile GLSL code on the fly. It's how a lot of the convolution / kernel based shader code is manipulated. IE programmatically recompiling shader code base on various settings that expand / contract the window applied.

Just wondering, I am using the image kernal for a lot of effects like blur and emboss... But what about effects like sepia, instant and enhance?

Think about a "kernel" operation (not "a" BTW Cheesy) for a color matrix. I'm sure there are other ways of doing a sepia tone image like an image lookup, but here is how things are implemented in GPUImage w/ a color matrix.

See:
https://github.com/BradLarson/GPUImage/blob/master/framework/Source/GPUImageSepiaFilter.m

https://github.com/BradLarson/GPUImage/blob/master/framework/Source/GPUImageColorMatrixFilter.m

As mentioned previously by @SHC if you have a proper matrix / vector library you'd multiply the color matrix by the color vector for the pixel essentially. Look at the GLSL code and translate that to Java basically.

Check out the TyphonRT Video Suite:
http://www.typhonvideo.com/

Founder & Principal Architect; TyphonRT, Inc.
http://www.typhonrt.org/
http://www.egrsoftware.com/
https://plus.google.com/u/0/+MichaelLeahy/
Offline CodeWarrior

Junior Devvie





« Reply #34 - Posted 2014-11-11 11:41:52 »

Sorry if this has been posted twice, its a big topic but I've just came across this which is useful using LWJGL & Java

https://github.com/mattdesl/lwjgl-basics/wiki/ShaderLesson6
Offline matanui159

JGO Coder


Medals: 11
Projects: 1
Exp: 10-12 months


Aww... So cute...


« Reply #35 - Posted 2014-11-12 00:17:47 »

I'm not really understanding the filter you gave me, @Catharsis...
Why isn't there many tutorials for this kind of stuff? How did everybody else learn?

Is it sad that I still get a fright when the computer beeps at me...
Offline Opiop
« Reply #36 - Posted 2014-11-12 00:20:32 »

Everyone else learned by trial and error. I seriously doubt you would find a lot of information on these topics because we already have big software that does all these image effects for us (Photoshop).

GLSL would make everything easier though, I am telling you.
Pages: 1 [2]
  ignore  |  Print  
 
 

 
Ecumene (148 views)
2017-09-30 02:57:34

theagentd (213 views)
2017-09-26 18:23:31

cybrmynd (296 views)
2017-08-02 12:28:51

cybrmynd (285 views)
2017-08-02 12:19:43

cybrmynd (295 views)
2017-08-02 12:18:09

Sralse (288 views)
2017-07-25 17:13:48

Archive (967 views)
2017-04-27 17:45:51

buddyBro (1093 views)
2017-04-05 03:38:00

CopyableCougar4 (1665 views)
2017-03-24 15:39:42

theagentd (1426 views)
2017-03-24 15:32:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05
java-gaming.org 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‑gaming.org
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!