vanadium is a Visual Contents Management System for openFrameworks Intermediates, especially Vj etc.
This is a fragment of code!!
- Drag&Drop Interface
- Multi Preset
- render 2D&3D scene
- create normal from world coordnate (you dont need to normal always)
- Flat Shading only
- Deferred Rendering
- SSAO
- Bloom
- openFrameworks v0.10.1
- windows 10 (not tested on mac)
- Update oF's GLFW library
This project is using imgui on experimental branch to use a docking system. So to build this project, you have to replace glfw to latest now.
- git clone
git clone --recursive https://github.com/yumataesu/vanadium
- create project from PG.
- Build
- Add the following template to Layers folder
If you write 3D scene, you have to add
set3D()
in setup.
#pragma once
#include "ofMain.h"
#include "ofxGen.h"
#include "ofxAutoReloadedShader.h"
using namespace ofx::Gen;
namespace Layers {
class Your_layer : public BaseLayer
{
public:
void setup() override {
set3D();
}
~Your_layer() {}
void update(const double delta_time) override {}
void draw() override {}
void bang() override {}
private:
};
}
- Write your scene with these variable
- width_ : canvas width
- height_ : canvas height
- parameter_group_ : parameter group for save/load
(If you save/load parameter, write
parameter_group_.add(your_v.set("Value", 0.0, 0.0, 10.0))
in setup - render_shader_ : it is important if you render 3d scene. see this
- register your class to manager class
ofxGen::Manager::registeration<Layers::Your_layer>("Your_layer"); // in ofApp::setup
1 | Layer Delete Button |
2 | Layer Alpha |
3 | Preset Combo Box |
4 | User defined parames(ofParameter) |
5 | Update(save) currrent preset |
6 | Add new preset as json |
7 | Get screenshot for thumbnnail |