org.treblereel.gwt:three4g-processor

apt processor for three4g-annotations project

License

License

Categories

Categories

GWT (Google Web Toolkit) User Interface Web Frameworks
GroupId

GroupId

org.treblereel.gwt
ArtifactId

ArtifactId

three4g-processor
Last Version

Last Version

0.108
Release Date

Release Date

Type

Type

jar
Description

Description

apt processor for three4g-annotations project
Project Organization

Project Organization

Treblereel
Source Code Management

Source Code Management

https://github.com/treblereel/three4g

Download three4g-processor

How to add to project

<!-- https://jarcasting.com/artifacts/org.treblereel.gwt/three4g-processor/ -->
<dependency>
    <groupId>org.treblereel.gwt</groupId>
    <artifactId>three4g-processor</artifactId>
    <version>0.108</version>
</dependency>
// https://jarcasting.com/artifacts/org.treblereel.gwt/three4g-processor/
implementation 'org.treblereel.gwt:three4g-processor:0.108'
// https://jarcasting.com/artifacts/org.treblereel.gwt/three4g-processor/
implementation ("org.treblereel.gwt:three4g-processor:0.108")
'org.treblereel.gwt:three4g-processor:jar:0.108'
<dependency org="org.treblereel.gwt" name="three4g-processor" rev="0.108">
  <artifact name="three4g-processor" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.treblereel.gwt', module='three4g-processor', version='0.108')
)
libraryDependencies += "org.treblereel.gwt" % "three4g-processor" % "0.108"
[org.treblereel.gwt/three4g-processor "0.108"]

Dependencies

compile (4)

Group / Artifact Type Version
com.squareup : javapoet jar 1.11.1
com.google.auto : auto-common jar 0.10
com.google.auto.service : auto-service jar 1.0-rc4
com.google.gwt : gwt-user jar

provided (1)

Group / Artifact Type Version
org.treblereel.gwt : three4g-annotations jar 0.108

Project Modules

There are no modules declared in this project.

Three4g

A Three.js wrapper for GWT

Maven

Current Version 0.108, implements 0.108 version of three.js

<dependency>
    <groupId>org.treblereel.gwt</groupId>
    <artifactId>three4g</artifactId>
    <version>0.108-SNAPSHOT</version>
</dependency>

Setup

all you need to do is add

<inherits name="org.treblereel.gwt.Three4G"/>

to your gwt project module, or

<inherits name="org.treblereel.gwt.Three4GMin"/>

for min version.

Code example

PerspectiveCamera  camera = new PerspectiveCamera( 70, aspect, 1, 1000 );
camera.position.z = 400;

Scene  scene = new Scene();

Texture texture = new TextureLoader().load( "https://threejs.org/examples/textures/crate.gif");

BoxBufferGeometry geometry = new BoxBufferGeometry( 200, 200, 200 );

MeshBasicMaterialParameters meshBasicMaterialParameters = new MeshBasicMaterialParameters();
meshBasicMaterialParameters.map = texture;

MeshBasicMaterial material = new MeshBasicMaterial(meshBasicMaterialParameters);

Mesh  mesh = new Mesh(geometry, material);

scene.add(mesh);

WebGLRenderer  webGLRenderer = new WebGLRenderer();

Like we do in Java world and pretty close to javascript original.

For a complete "hello world" app, have a look at hello-three4g/.

DEMO

here is a demo page with lots of examples

License

Licensed under the Apache License, Version 2.0

Contributing

Pull Requests are welcome by all.

feel free to contact me anytime

Versions

Version
0.108
0.107
0.106
0.105
0.104
0.102
0.101
0.100
0.99
0.98-beta1
0.97-beta2
0.97-beta1