markaren / Three.kt
Licence: mit
Three.js port for the JVM (desktop)
Stars: ✭ 136
Projects that are alternatives of or similar to Three.kt
Expo Crossy Road
🐥🚙 Crossy Road game clone made in Expo (iOS, Android, web), THREE.js, Tween, React Native. 🐔
Stars: ✭ 701 (+415.44%)
Mutual labels: opengl, threejs
Filament
Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2
Stars: ✭ 13,215 (+9616.91%)
Mutual labels: opengl, 3d-graphics
Earth Defender
🚀 A distributed soft real-time 3D single/multiplayer game build with Erlang/OTP and Three.js
Stars: ✭ 7 (-94.85%)
Mutual labels: threejs, 3d-graphics
Hybridrenderingengine
Clustered Forward/Deferred renderer with Physically Based Shading, Image Based Lighting and a whole lot of OpenGL.
Stars: ✭ 563 (+313.97%)
Mutual labels: opengl, 3d-graphics
Tinyraycaster
486 lines of C++: old-school FPS in a weekend
Stars: ✭ 1,383 (+916.91%)
Mutual labels: opengl, 3d-graphics
Pyrender
Easy-to-use glTF 2.0-compliant OpenGL renderer for visualization of 3D scenes.
Stars: ✭ 582 (+327.94%)
Mutual labels: opengl, 3d-graphics
3d Game Shaders For Beginners
🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
Stars: ✭ 11,698 (+8501.47%)
Mutual labels: opengl, 3d-graphics
Openscad
OpenSCAD - The Programmers Solid 3D CAD Modeller
Stars: ✭ 4,444 (+3167.65%)
Mutual labels: opengl, 3d-graphics
Pyearth
🌐 A lightweight 3D visualization of the earth in 150 lines of Qt/OpenGL
Stars: ✭ 78 (-42.65%)
Mutual labels: opengl, 3d-graphics
Minijvm
Develop iOS Android app in java, Cross platform java virtual machine , the minimal jvm .
Stars: ✭ 127 (-6.62%)
Mutual labels: opengl, jvm
Lume
Create CSS3D/WebGL applications declaratively with HTML. Give regular DOM elements shadow and lighting.
Stars: ✭ 445 (+227.21%)
Mutual labels: threejs, 3d-graphics
Matcaps
Huge library of matcap PNG textures organized by color
Stars: ✭ 607 (+346.32%)
Mutual labels: opengl, threejs
Vue Gl
Vue.js components rendering 3D WebGL graphics reactively with three.js
Stars: ✭ 434 (+219.12%)
Mutual labels: threejs, 3d-graphics
Sunset Cyberspace
🎮👾Retro-runner Game made in Expo, Three.js, OpenGL, WebGL, Tween. 🕹
Stars: ✭ 54 (-60.29%)
Mutual labels: opengl, threejs
Limonengine
3D FPS game engine with full dynamic lighting and shadows
Stars: ✭ 331 (+143.38%)
Mutual labels: opengl, 3d-graphics
Expo Three Demo
🍎👩🏫 Collection of Demos for THREE.js in Expo!
Stars: ✭ 76 (-44.12%)
Mutual labels: opengl, threejs
Tinyrenderer
A brief computer graphics / rendering course
Stars: ✭ 11,776 (+8558.82%)
Mutual labels: opengl, 3d-graphics
three.kt (Work in progress)
Kotlin/JVM port of the popular three.js 3D library (r106).
Be warned, while the basics works, such as:
- Primitives, Points and TubeGeometry
- All materials and lights
- OrbitControls
- 2D textures
- Raycasting against Mesh
- OBJ, MTL and STL loaders
- Other stuff like mirror, sky and water shaders
a lot of features are still missing and the API can change rapidly.
Right now, this is mostly interesting for developers that want to contribute.
API (subject to changes)
Kotlin
Window(antialias = 4).use { window ->
val scene = Scene().apply {
setBackground(Color.aliceblue)
}
val camera = PerspectiveCamera(75, window.aspect, 0.1, 1000).apply {
position.z = 5f
}
val renderer = GLRenderer(window.size)
val box = Mesh(BoxGeometry(1f), MeshBasicMaterial().apply {
color.set(0x00ff00)
})
scene.add(box)
val clock = Clock()
val controls = OrbitControls(camera, window)
window.animate {
val dt = clock.getDelta()
box.rotation.x += 1f * dt
box.rotation.y += 1f * dt
renderer.render(scene, camera)
}
}
Java
public class JavaExample {
public static void main(String[] args) {
try (Window window = new Window()) {
Scene scene = new Scene();
PerspectiveCamera camera = new PerspectiveCamera();
camera.getPosition().z = 5;
GLRenderer renderer = new GLRenderer(window.getSize());
BoxBufferGeometry boxBufferGeometry = new BoxBufferGeometry();
MeshPhongMaterial boxMaterial = new MeshPhongMaterial();
boxMaterial.getColor().set(Color.getRoyalblue());
Mesh box = new Mesh(boxBufferGeometry, boxMaterial);
scene.add(box);
MeshBasicMaterial wireframeMaterial = new MeshBasicMaterial();
wireframeMaterial.getColor().set(0x000000);
wireframeMaterial.setWireframe(true);
Mesh wireframe = new Mesh(box.getGeometry().clone(), wireframeMaterial);
scene.add(wireframe);
AmbientLight light = new AmbientLight();
scene.add(light);
OrbitControls orbitControls = new OrbitControls(camera, window);
window.animate(() -> {
renderer.render(scene, camera);
});
}
}
}
Artifacts are avilable through Bintray:
repositories {
/*...*/
maven { url "https://dl.bintray.com/laht/mvn" }
}
dependencies {
def version = "..."
implementation "info.laht.threekt:core-jvm:$version"
}
Screenshots
Looking for the Kotlin/JS wrapper project?
It has been renamed and moved to here.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].