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 / 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;
@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