Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (799)
Games in Android Showcase (236)
games submitted by our members
Games in WIP (865)
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  
  Three.kt - A Three.js port for the JVM  (Read 2227 times)
0 Members and 1 Guest are viewing this topic.
Offline laht

Senior Newbie


Medals: 4



« Posted 2019-07-26 22:32:41 »

This might be somewhat premature, but I wanted to share with you my work on a Three.js port for the JVM.
https://github.com/markaren/three.kt

The basics works, so the work forward is about adding more features. That is, the core engine has been ported successfully from JS/WebGL to Kotlin/JVM/OpenGL.

This will be a light weight, easy to use alternative to the other 3D alternatives for the JVM.

Thanks for your attention!
Offline gouessej
« Reply #1 - Posted 2019-08-13 10:28:03 »

Hello

Good luck for your project. The Javascript source code of Three.js lacks of comments, its Typescript source code is a little bit better commented. The stability of its features isn't homogeneous, some loaders are a bit clunky, for example its Collada loader. I'm sure that some existing Java frameworks and engines have more reliable loaders for STL and OBJ. I hope that you'll succeed in supporting much more formats because Wavefront OBJ is very rudimentary whereas Three.js is known to support GLTF which is a lot more capable.

Julien Gouesse | Personal blog | Website | Jogamp
Offline laht

Senior Newbie


Medals: 4



« Reply #2 - Posted 2019-08-20 17:30:16 »

Thanks!

In my experience it's better to go from the JavaScript source as the Typescript definitions tends to have some errors. Anyway, since Javascript and Kotlin are syntactically pretty similar, you get pretty far by just copy pasting the JavaScript source into a Kotlin file.

glTF 2.0 support is underway!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gouessej
« Reply #3 - Posted 2019-08-29 21:40:09 »

In my experience it's better to go from the JavaScript source as the Typescript definitions tends to have some errors.
I was only talking about the comments within the source code.

Anyway, since Javascript and Kotlin are syntactically pretty similar, you get pretty far by just copy pasting the JavaScript source into a Kotlin file.
I see the point but as some importers written in Java are more reliable, maybe they are worth the supplementary effort to port them to Kotlin.

glTF 2.0 support is underway!
It's a very good piece of news.

Julien Gouesse | Personal blog | Website | Jogamp
Pages: [1]
  ignore  |  Print  
 
 

 
Riven (179 views)
2019-09-04 15:33:17

hadezbladez (4817 views)
2018-11-16 13:46:03

hadezbladez (1769 views)
2018-11-16 13:41:33

hadezbladez (5095 views)
2018-11-16 13:35:35

hadezbladez (1009 views)
2018-11-16 13:32:03

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

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

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

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

nelsongames (4285 views)
2018-04-24 18:15:36
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45
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!