testScene.blend: https://gist.github.com/riccardobl/38de2113eb379f04d7880be85165a4f4/raw/62d9e323949d6314c94063af208d41a9995890e5/testScene.blend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Usage: ./updateOpenfire.sh DOWNLOADLINK | |
DL_LINK=$1 | |
BACKUP=openfire_backup`date '+%M.%d.%m.%Y'` | |
mv openfire $BACKUP | |
rm openfire.tar.gz | |
wget $DL_LINK -O openfire.tar.gz | |
tar -xzf openfire.tar.gz | |
cp -Rvf $BACKUP/conf openfire/ | |
cp -Rvf $BACKUP/embedded-db openfire/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Testcase for http://hub.jmonkeyengine.org/t/see-if-a-mesh-has-been-changed/35346/ | |
import com.jme3.app.SimpleApplication; | |
import com.jme3.material.Material; | |
import com.jme3.math.ColorRGBA; | |
import com.jme3.math.Vector3f; | |
import com.jme3.scene.Geometry; | |
import com.jme3.scene.Mesh; | |
import com.jme3.scene.SceneGraphVisitor; | |
import com.jme3.scene.Spatial; | |
import com.jme3.scene.VertexBuffer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install build-essential | |
sudo apt-get build-dep imagemagick | |
wdir=/tmp/`tr -dc A-Za-z0-9 < /dev/urandom | head -c 4`-immgk | |
sudo rm -Rf "$wdir" | |
sudo mkdir -p "$wdir" | |
sudo chmod 777 -Rf "$wdir" | |
cd "$wdir" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Convert images to dds files with mipmaps and compression using imagemagick. | |
#Requirements | |
Imagemagick >= 6.8.6-10 : https://gist.github.com/riccardobl/3aabaf82f74675a7b75b5878a5411789 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static org.lwjgl.opengl.GL15.GL_STATIC_DRAW; | |
import static org.lwjgl.opengl.GL15.glBindBuffer; | |
import static org.lwjgl.opengl.GL15.glBufferData; | |
import static org.lwjgl.opengl.GL15.glDeleteBuffers; | |
import static org.lwjgl.opengl.GL15.glGenBuffers; | |
import static org.lwjgl.opengl.GL30.glBindBufferBase; | |
import static org.lwjgl.opengl.GL31.GL_UNIFORM_BUFFER; | |
import java.io.IOException; | |
import java.lang.reflect.Field; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tests; | |
import java.util.ArrayList; | |
import com.jme3.app.SimpleApplication; | |
import com.jme3.material.Material; | |
import com.jme3.math.ColorRGBA; | |
import com.jme3.math.Quaternion; | |
import com.jme3.math.Vector3f; | |
import com.jme3.scene.Geometry; | |
import com.jme3.scene.Mesh; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ported from https://github.com/jMonkeyEngine/jmonkeyengine/blob/PBRisComing/jme3-core/src/main/java/com/jme3/environment/generation/PrefilteredEnvMapFaceGenerator.java | |
// License: MIT | |
// To use this with GLSL set #define GLSL | |
// To use this with OpenCL set #define OpenCL | |
#define WRAP 0 | |
#define STRETCH 1 | |
#define FixSeamsMethod int | |
#ifdef GLSL | |
// Convert source from OpenCL to GLSL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm -rf apitrace/ | |
sudo apt-get update | |
sudo apt-get install -y build-essential cmake git python libpng-dev zlib1g-dev libx11-dev libprocps-dev libdwarf-dev qtbase5-dev | |
git clone https://github.com/apitrace/apitrace.git | |
cd apitrace | |
if [ "$1" = "install" ]; | |
then | |
cmake -H. -Bbuild -DENABLE_GUI=TRUE -DCMAKE_BUILD_TYPE=Release | |
make -C build |
I hereby claim:
- I am riccardobl on github.
- I am riccardobl (https://keybase.io/riccardobl) on keybase.
- I have a public key whose fingerprint is 9550 68E8 BC68 BBFF 6A16 34E8 19F0 7DE6 BB85 5778
To claim this, I am signing this object: