Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (762)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (846)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Texture manipulation lib (normal and dudv maps generation)  (Read 1128 times)
0 Members and 1 Guest are viewing this topic.
Offline williamwoles

Junior Devvie

Medals: 4

« Posted 2016-07-25 14:11:55 »


I would like to introduce the small port (the credits to original author are provided on the page) to Java I have finished recently, which would allow you to create normal and dudv maps without the recurrence to 3rd part software, you can do it directly from your code. I made this port, since I could not find any Java implementation.

To include the lib in you Maven project you could use


The result of applying the filters in correct order should look like:

How it works?
There are few examples on the GitHub, but you pass the BufferedImage to the convert function of appropriate class and receive a new BufferedImage which can be either height (or simply greyscale), normal or dudv map.

Why(and where) it is useful?
In my case for example I am automatically generating normal and dudv when adding the texture to my texture atlas (in the tool I am building). Of course you can use more sophisticated tools for doing that, but when it is automatic it costs you less time ofc.

Feel free to give feedback. I might consider adding new features if requested and I find the algorithms for that in the Web.
Pages: [1]
  ignore  |  Print  

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

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

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

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

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

nelsongames (835 views)
2018-04-24 18:14:32

ivj94 (1283 views)
2018-03-24 14:47:39

ivj94 (400 views)
2018-03-24 14:46:31

ivj94 (1069 views)
2018-03-24 14:43:53

Solater (417 views)
2018-03-17 05:04: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 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!