JTexGen Wiki
Author : Andy GIbson
JTexGen is a java library for creating 2d procedural textures using a pluggable architecture. In addition to a number of included textures, the library also includes a number of textures and signals that can be used as building blocks for multiple textures.
To get started, download the latest version of JTexGen and upzip it into a local folder.
The distribution contains the source and a JTexGen.jar file which you will need to include in your project. You can build the javadocs using maven by running
mvn javadoc:javadoc
in the project directory. The javadocs are created in the target/site/apidocs folder. The reference folder contains reference tutorials and examples in html and pdf format and should give you an idea on how to get started.
Getting Started
Here's the steps to create a new project using JTexGen.
- Start up your favorite IDE
- Create a new java project.
- Add the JTextGen jar to the project
- Create a class with a main() method if you haven't already got one.
- In the main method put :
public static void main(String[] args) {
TextureViewer.show(new ComplexMarble());
}
If you execute this code you will see a window appear with a "Start" button on it. Click the button and the texture will render.
Maven Support
You can install the JTexGen library into a maven repository by executing
mvn install
in the JTexGen directory. This will install JTexGen into the local repository for use in other Maven projects. To do this, create a new project in Maven and add JTexGen as a dependency
groupId=org.jtexgen artifactId=jtexgen version=1.1





