Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View tlf30's full-sized avatar
🌴
Outside of The Outside Engine

Trevor Flynn tlf30

🌴
Outside of The Outside Engine
View GitHub Profile
@tlf30
tlf30 / BUILD.ms
Created May 7, 2022 17:35
Build LWJGL3
# Building
1. Generate Bindings: `ant clean-generated generate`
2. Compile Java: `ant compile`
3. Build Natives:
```
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
ant clean-native compile-native
```
4. Build jars:
```
@tlf30
tlf30 / TestTexturePickApp.java
Created January 7, 2022 04:10 — forked from jcfandino/TestTexturePickApp.java
Picking texture pixel with a ray cast
package com.example;
import com.jme3.app.SimpleApplication;
import com.jme3.asset.plugins.ClasspathLocator;
import com.jme3.collision.CollisionResult;
import com.jme3.collision.CollisionResults;
import com.jme3.font.BitmapText;
import com.jme3.light.AmbientLight;
import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
8:15:48 AM: Executing task 'SettingsMain.main()'...
> Task :compileJava
> Task :processResources UP-TO-DATE
> Task :classes
> Task :SettingsMain.main()
Nov 14, 2020 8:15:49 AM com.jme3.app.LegacyApplication start
FINE: Starting application: io.tlf.jme.test.SettingsMain
Nov 14, 2020 8:15:49 AM com.jme3.system.JmeDesktopSystem initialize
@tlf30
tlf30 / TestVlcPlayer4.java
Created October 19, 2020 15:37 — forked from jayfella/TestVlcPlayer4.java
Playing videos in jMonkeyEngine using VLC4J4
// compile group: 'uk.co.caprica', name: 'vlcj', version: '4.1.0'
package com.jayfella.test;
import com.jme3.app.SimpleApplication;
import com.jme3.material.Material;
import com.jme3.material.Materials;
import com.jme3.material.RenderState;
import com.jme3.math.FastMath;
import com.jme3.scene.Geometry;
@tlf30
tlf30 / SceneFieldResolver.java
Created October 19, 2020 15:37 — forked from jayfella/SceneFieldResolver.java
A class that resolves field names to objects from a given Spatial.
package com.jayfella.sdk.resolver;
import com.jme3.light.DirectionalLight;
import com.jme3.light.Light;
import com.jme3.renderer.RenderManager;
import com.jme3.renderer.ViewPort;
import com.jme3.scene.Geometry;
import com.jme3.scene.Node;
import com.jme3.scene.SceneGraphVisitorAdapter;
import com.jme3.scene.Spatial;
/*
Mesh Simplification
(C) by Sven Forstmann in 2014
derived from: https://github.com/sp4cerat/Fast-Quadric-Mesh-Simplification
and: https://github.com/timknip/mesh-decimate/blob/master/src/simplify.js
License : MIT
http://opensource.org/licenses/MIT
@tlf30
tlf30 / AxisRotation.java
Created October 19, 2020 15:36 — forked from jayfella/AxisRotation.java
A class to simplify rotations and quaternions.
package com.jayfella.jme.vehicle;
import com.jme3.math.FastMath;
import com.jme3.math.Quaternion;
/**
* Provides functionality to get and set rotations, limit the rotation to avoid large angles and convert them into
* a quaternion for scene rotation.
*
* @author jayfella

Server message registration:

Thread-1	com.jme3.network.base.DefaultServer.addStandardServices	[2020-01-20 08:09:12] [FINE   ] Adding standard services...  
Thread-1	com.jme3.network.service.ServiceManager.addService	[2020-01-20 08:09:12] [FINE   ] addService(com.jme3.network.service.serializer.ServerSerializerRegistrationsService[serviceManager.class=])  
Thread-1	com.jme3.network.service.ServiceManager.addService	[2020-01-20 08:09:12] [FINE   ] Initializing service:com.jme3.network.service.serializer.ServerSerializerRegistrationsService[serviceManager.class=]  
Thread-1	com.jme3.network.serializing.Serializer.registerClassForId	[2020-01-20 08:09:12] [FINE   ] Registered class[-42]:class com.jme3.network.message.DisconnectMessage to:com.jme3.network.message.DisconnectMessage$DisconnectSerializer@6517e88f  
Thread-1	com.jme3.network.serializing.Serializer.registerClassForId	[2020-01-20 08:09:12] [FINE   ] Registered class[-44]:class com.jme3.network.message.ClientRegistrationMessage to:com.jme3.network.mes

Server Log:

main	io.tlf.<censored>.<censored>.load	[2020-01-20 07:59:09] [INFO   ] Starting Groovy script engine  
Thread-1	io.tlf.<censored>.<censored>.load	[2020-01-20 07:59:14] [INFO   ] <censored> Server starting  
Thread-1	io.tlf.<censored>.<censored>.load	[2020-01-20 07:59:14] [INFO   ] Framework Version: 0.0.0  
Thread-1	io.tlf.<censored>.<censored>.load	[2020-01-20 07:59:14] [INFO   ] Version: 0.0.0  
Thread-1	io.tlf.<censored>.<censored>.load	[2020-01-20 07:59:14] [INFO   ] Connecting to database  
Thread-1	io.tlf.<censored>.<censored>.load	[2020-01-20 07:59:17] [INFO   ] Connected to database  
Thread-1	io.tlf.<censored>.<censored>.loadRuntimeDatabases	[2020-01-20 07:59:17] [INFO   ] Loading asset metadata  
Thread-1	io.tlf.<censored>.<censored>.loadRuntimeDatabases	[2020-01-20 07:59:17] [INFO   ] Loading item metadata