Skip to content

Instantly share code, notes, and snippets.

View Ali-RS's full-sized avatar

Ali-RS Ali-RS

View GitHub Profile
@Ali-RS
Ali-RS / file
Last active February 2, 2016 21:32
freedom_public
{"0.9530004452031968":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nCharset: UTF-8\r\n\r\nxv8AAABSBAAAAAATCCqGSM49AwEHAgMEW/WE0P8lGmLmE77jsgECrDQWY4DJz1B3\r\nbtqC8HANZ8Ke5+Rh6WzfyWQz+YWkeejyw2Z8961DJ6+KLlMIt5y14M3/AAAACDxn\r\naXRodWI+wv8AAACNBBATCAA//wAAAAWCVrHAj/8AAAACiwn/AAAACZDfvC5NB/m0\r\nqv8AAAAFlQgJCgv/AAAAA5YBAv8AAAACmwP/AAAAAp4BAAB7zAEAsHwDFxGr3Hn5\r\npXIHsx+WdFNSbhOs6jABYzgJhBhXRkoA/AxEnKPLmXNXkR0+ziF0zfw0NZDvSjGN\r\nVfBEB4D5py+pzv8AAABWBAAAAAASCCqGSM49AwEHAgMEcslqv3quGBiwR65HlAYM\r\nymngaVFrwjn5z1xUnaSdgyIdl7eYMYSL9e6/Dh13ROO0j74/xydDz9VxReUTUYaT\r\nhwMBCAfC/wAAAG0EGBMIAB//AAAABYJWscCP/wAAAAmQ37wuTQf5tKr/AAAAApsM\r\nAACEIgD/Y+n52+rpdRkRgB+c3sUVHxS5hmNGzCf9YKc3U4li6lIBAIGgeLEx/jCf\r\nO2N2OzkkHHvjbUxHl42p+8DBKEYgG2An\r\n=qK0T\r\n-----END PGP PUBLIC KEY BLOCK-----\r\n","0.1794366368706457":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nCharset: UTF-8\r\n\r\nxv8AAABSBAAAAAATCCqGSM49AwEHAgMEW/WE0P8lGmLmE77jsgECrDQWY4DJz1B3\r\nbtqC8HANZ8Ke5+Rh6WzfyWQz+YWkeejyw2Z8961DJ6+KLlMIt5y14M3/AAAACDxn\r\naXRodWI+wv8AAACNBBATCA
@Ali-RS
Ali-RS / SimplifyMesh.java
Created April 22, 2019 11:32
An Isosurface mesh reduction algorythm intended for jMonkeyEngine
/*
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
@Ali-RS
Ali-RS / Fog.glsllib
Created April 22, 2019 11:33
GLSL Fog library for jmonkeyengine
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
@Ali-RS
Ali-RS / LemurGuiStyle.java
Created April 22, 2019 11:33
The default Lemur glass style written programatically instead of using groovy (android-friendly).
package com.jayfella.motorunner.lemur;
import com.jme3.asset.AssetManager;
import com.jme3.math.ColorRGBA;
import com.jme3.math.Vector3f;
import com.simsilica.lemur.GuiGlobals;
import com.simsilica.lemur.Insets3f;
import com.simsilica.lemur.Label;
import com.simsilica.lemur.component.QuadBackgroundComponent;
import com.simsilica.lemur.component.TbtQuadBackgroundComponent;
package com.jayfella.modular.debug;
import com.jme3.asset.AssetManager;
import com.jme3.math.ColorRGBA;
import com.jme3.texture.Image;
import com.jme3.texture.Texture;
import com.jme3.texture.Texture2D;
import com.jme3.texture.image.ColorSpace;
import com.jme3.texture.image.ImageRaster;
import com.jme3.util.BufferUtils;
package com.dongbat.example;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.ScreenAdapter;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.maps.MapLayer;
/*
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
@Ali-RS
Ali-RS / SmashCameraAppState.java
Created March 31, 2020 04:23 — forked from josrepo/SmashCameraAppState.java
JME3.2.1 Smash Cam Class
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
@Ali-RS
Ali-RS / SceneFieldResolver.java
Created July 24, 2020 17:45 — 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;
@Ali-RS
Ali-RS / TestVlcPlayer4.java
Created October 17, 2020 17:29 — 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;