Skip to content

bagobor/ScIll-library

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

ScIll-library

3D-rendering library for OpenGL 3.2 core that was created for rendering scientific illustrations but can be used for lots of things...

The lib is written in cpp, compiles under gcc & VS 2010 and has a cmake project file along with it.

Certain aspects were inspired by Qt-OpenGL, which unfortunately doesn't do OpenGL 3.2 core too well but offers nice abstractions.

A key-aspect is the FilterEngine that allows for very easy/simple fragment-shader image filters or deferred-rendering setups. The following code illustrates rendering into a rendertarget:

using namespace SciIllLib;

CFilter fltFXAA = new CFilter();
fltFXAA->LoadFragmentShader("res/glsl/filter/FXAA.frag");

SFilterEngine::ReGenerateTexture(&m_rtScene, GL_FLOAT); SFilterEngine::ReGenerateTexture(&m_rtFinal, GL_FLOAT);

SFilterEngine::PreRender(m_rtScene);
... render as usual ...
SFilterEngine::PostRender();

SFilterEngine::Apply(fltFXAA, m_rtScene, m_rtFinal);
SFilterEngine::ToScreen(fltDisplay, m_rtFinal);

soon

  • more pass-by-references parameters, currently rather old/lazy implementation
  • one or more running examples
  • more features (Postprocessors, Filters, )

About

3D-rendering library that was created for rendering scientific illustrations but can be used for lots of things...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published