GithubHelp home page GithubHelp logo

rayanfar / jme-effekseernative Goto Github PK

View Code? Open in Web Editor NEW

This project forked from riccardobl/jme-effekseernative

0.0 1.0 0.0 1.57 MB

This is a library that uses EffekseerForMultiLanguages to load and render effects made with Effekseer in jme.

License: Other

Java 90.31% GLSL 7.28% Shell 2.41%

jme-effekseernative's Introduction

Effekseer Native for JME

This is a library that uses EffekseerForMultiLanguages to load and render effects made with Effekseer in jme.

It extends Effekseer by providing basic soft particles and support for offscreen rendering.

Supported platforms:

  • Windows 64bit
  • Linux 64bit

TODO:

  • Distortions

  • Sounds

Gradle

repositories {
	maven { url 'https://jitpack.io' }
}
dependencies {
	implementation 'com.github.riccardobl:jme-effekseerNative:-SNAPSHOT'
}

Usage

// Add a filter post processor to your viewPort
FilterPostProcessor fpp=new FilterPostProcessor(assetManager);
 viewPort.addProcessor(fpp);

// Add Effekseer Renderer
fpp.addFilter(new EffekseerPostRenderer(assetManager));
        
// Load an effect
EffekseerEmitterControl effekt=(EffekseerEmitterControl)assetManager.loadAsset("effekts/Pierre/Lightning.efkefc");

// Set a driver (optional)
effekt.setDriver(
    new EmissionDriverGeneric()
    .emitFunction(EffekseerEmitterEmitFunctions.emitLoop(100,0,1f,2f))
    .shapeFunction(EffekseerEmitterShapeFunctions.pointFollowingSpatial())
);

// Attach to a spatial
Node n=new Node();
n.addControl(effekt);


rootNode.attachChild(n);

Advanced Usage - Manual Rendering

This is intended to be used on custom render pipelines or offscreen rendering

// Init Effekseer
Effekseer.init(assetManager);

// Update the logic
Effekseer.update( tpf);

// Render
// sceneDepth is the depth of the current scene - used for soft particles
Effekseer.render(Renderer renderer,Camera cam,FrameBuffer renderTarget,Texture sceneDepth);

jme-effekseernative's People

Contributors

riccardobl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.