|
| | SLPathtracer () |
| |
| | ~SLPathtracer () |
| |
| SLbool | render (SLSceneView *sv) |
| |
| void | renderSlices (bool isMainThread, SLint currentSample, SLuint threadNum) |
| |
| SLCol4f | trace (SLRay *ray, SLbool em) |
| |
| SLCol4f | shade (SLRay *ray, SLCol4f *mat) |
| |
| void | saveImage () |
| | Saves the current PT image as PNG image. More...
|
| |
| void | calcDirect (SLbool di) |
| |
| void | calcIndirect (SLbool ii) |
| |
| SLbool | calcDirect () const |
| |
| SLbool | calcIndirect () const |
| |
| | SLRaytracer () |
| |
| | ~SLRaytracer () override |
| |
| SLbool | renderClassic (SLSceneView *sv) |
| |
| SLbool | renderDistrib (SLSceneView *sv) |
| |
| void | renderSlices (bool isMainThread, SLuint threadNum) |
| |
| void | renderSlicesMS (bool isMainThread, SLuint threadNum) |
| |
| SLCol4f | trace (SLRay *ray) |
| |
| SLCol4f | shade (SLRay *ray) |
| |
| void | sampleAAPixels (bool isMainThread, SLuint threadNum) |
| |
| void | renderUIBeforeUpdate () |
| | Must be called before an inbetween frame updateRec. More...
|
| |
| void | setPrimaryRay (SLfloat x, SLfloat y, SLRay *primaryRay) |
| | Set the parameters of a primary ray for a pixel position at x, y. More...
|
| |
| void | getAAPixels () |
| |
| SLCol4f | fogBlend (SLfloat z, SLCol4f color) |
| |
| virtual void | printStats (SLfloat sec) |
| |
| virtual void | initStats (SLint depth) |
| |
| void | state (SLRTState state) |
| |
| void | maxDepth (SLint depth) |
| |
| void | resolutionFactor (SLfloat rf) |
| |
| void | doDistributed (SLbool distrib) |
| |
| void | doContinuous (SLbool cont) |
| |
| void | doFresnel (SLbool fresnel) |
| |
| void | aaSamples (SLint samples) |
| |
| void | gamma (SLfloat g) |
| |
| SLRTState | state () const |
| |
| SLint | maxDepth () const |
| |
| SLbool | doDistributed () const |
| |
| SLbool | doContinuous () const |
| |
| SLbool | doFresnel () const |
| |
| SLint | aaSamples () const |
| |
| SLint | progressPC () const |
| |
| SLfloat | aaThreshold () const |
| |
| SLfloat | renderSec () const |
| |
| SLfloat | gamma () const |
| |
| SLfloat | oneOverGamma () const |
| |
| SLfloat | resolutionFactor () const |
| |
| SLint | resolutionFactorPC () const |
| |
| SLfloat | raysPerMS () |
| |
| virtual void | prepareImage () |
| |
| virtual void | renderImage (bool updateTextureGL) |
| |
| virtual void | saveImage () |
| | Saves the current RT image as PNG image. More...
|
| |
| | SLGLTexture () |
| | Default ctor for all stack instances (not created with new) More...
|
| |
| | SLGLTexture (SLAssetManager *assetMgr, const SLVCol4f &colors, SLint min_filter=GL_LINEAR, SLint mag_filter=GL_LINEAR, SLint wrapS=GL_REPEAT, const SLstring &name="2D-Texture") |
| | ctor for 1D texture with internal image allocation More...
|
| |
| | SLGLTexture (SLAssetManager *assetMgr, SLint min_filter, SLint mag_filter, SLint wrapS, SLint wrapT, SLenum target=GL_TEXTURE_2D) |
| | ctor for empty 2D textures More...
|
| |
| | SLGLTexture (SLAssetManager *assetMgr, unsigned char *data, int width, int height, int cvtype, SLint min_filter, SLint mag_filter, SLTextureType type, SLint wrapS, SLint wrapT) |
| | ctor for 2D textures from byte pointer More...
|
| |
| | SLGLTexture (SLAssetManager *assetMgr, const SLstring &imageFilename, SLint min_filter=GL_LINEAR_MIPMAP_LINEAR, SLint mag_filter=GL_LINEAR, SLTextureType type=TT_unknown, SLint wrapS=GL_REPEAT, SLint wrapT=GL_REPEAT) |
| | ctor for 2D textures with internal image allocation More...
|
| |
| | SLGLTexture (SLAssetManager *assetMgr, const SLVstring &imageFilenames, SLint min_filter=GL_LINEAR, SLint mag_filter=GL_LINEAR, SLint wrapS=GL_REPEAT, SLint wrapT=GL_REPEAT, const SLstring &name="3D-Texture", SLbool loadGrayscaleIntoAlpha=false) |
| | ctor for 3D texture with internal image allocation More...
|
| |
| | SLGLTexture (SLAssetManager *assetMgr, SLint depth, const SLstring &imageFilename, SLint min_filter=GL_LINEAR, SLint mag_filter=GL_LINEAR, SLint wrapS=GL_REPEAT, SLint wrapT=GL_REPEAT, const SLstring &name="3D-Texture", SLbool loadGrayscaleIntoAlpha=false) |
| | ctor for 3D texture from a single file with depth as 3rd dimension More...
|
| |
| | SLGLTexture (SLAssetManager *assetMgr, const SLstring &imageFilenameXPos, const SLstring &imageFilenameXNeg, const SLstring &imageFilenameYPos, const SLstring &imageFilenameYNeg, const SLstring &imageFilenameZPos, const SLstring &imageFilenameZNeg, SLint min_filter=GL_LINEAR, SLint mag_filter=GL_LINEAR, SLTextureType type=TT_unknown) |
| | ctor for cube mapping with internal image allocation More...
|
| |
| | ~SLGLTexture () override |
| |
| virtual void | build (SLint texUnit) |
| |
| void | deleteData () |
| | Delete all data (CVImages and GPU textures) More...
|
| |
| void | deleteDataGpu () |
| | Deletes the OpenGL texture objects and releases the memory on the GPU. More...
|
| |
| void | deleteImages () |
| | Deletes the CVImages in _images. No more texture mapping in ray tracing. More...
|
| |
| void | bindActive (SLuint texUnit=0) |
| |
| void | fullUpdate () |
| |
| void | drawSprite (SLbool doUpdate, SLfloat x, SLfloat y, SLfloat w, SLfloat h) |
| | Draws the texture as 2D sprite with OpenGL buffers. More...
|
| |
| void | cubeUV2XYZ (SLint index, SLfloat u, SLfloat v, SLfloat &x, SLfloat &y, SLfloat &z) |
| | Computes the unnormalised vector x,y,z from tex. coords. uv with cubemap index. More...
|
| |
| void | cubeXYZ2UV (SLfloat x, SLfloat y, SLfloat z, SLint &index, SLfloat &u, SLfloat &v) |
| | Computes the uv and cubemap image index from a unnormalised vector x,y,z. More...
|
| |
| SLstring | filterString (SLint glFilter) |
| | Returns OpenGL texture filter as string. More...
|
| |
| void | texType (SLTextureType bt) |
| |
| void | uvIndex (SLbyte i) |
| |
| void | bumpScale (SLfloat bs) |
| |
| void | minFiler (SLint minF) |
| |
| void | magFiler (SLint magF) |
| |
| void | needsUpdate (SLbool update) |
| |
| void | textureSize (int width, int height) |
| |
| void | deleteImageAfterBuild (SLbool delImg) |
| | If deleteImageAfterBuild is set to true you won't be able to ray trace the scene. More...
|
| |
| SLuint | width () |
| |
| SLuint | height () |
| |
| SLuint | depth () |
| |
| SLbyte | uvIndex () |
| |
| SLint | bytesPerPixel () |
| |
| SLint | bytesOnGPU () |
| |
| SLint | bytesInFile () |
| |
| CVVImage & | images () |
| |
| SLenum | target () const |
| |
| SLuint | texID () const |
| |
| SLTextureType | texType () |
| |
| SLfloat | bumpScale () const |
| |
| SLCol4f | getTexelf (SLfloat u, SLfloat v, SLuint imgIndex=0) |
| | SLGLTexture::getTexelf returns a pixel color from u & v texture coordinates. More...
|
| |
| SLCol4f | getTexelf (const SLVec3f &cubemapDir) |
| | SLGLTexture::getTexelf returns a pixel color at the specified cubemap direction. More...
|
| |
| SLbool | hasAlpha () |
| |
| SLMat4f | tm () |
| |
| SLbool | autoCalcTM3D () const |
| |
| SLbool | needsUpdate () |
| |
| SLstring | typeName () |
| | Returns the texture type as string. More...
|
| |
| SLstring | typeShortName () |
| | Returns the texture type short. More...
|
| |
| bool | isTexture () |
| |
| SLstring | minificationFilterName () |
| |
| SLstring | magnificationFilterName () |
| |
| void | build2DMipmaps (SLint target, SLuint index) |
| |
| SLbool | copyVideoImage (SLint camWidth, SLint camHeight, CVPixelFormatGL glFormat, SLuchar *data, SLbool isContinuous, SLbool isTopLeft) |
| | Copies the image data from a video camera into the current video image. More...
|
| |
| SLbool | copyVideoImage (SLint camWidth, SLint camHeight, CVPixelFormatGL srcFormat, CVPixelFormatGL dstFormat, SLuchar *data, SLbool isContinuous, SLbool isTopLeft) |
| |
| void | calc3DGradients (SLint sampleRadius, const function< void(int)> &onUpdateProgress) |
| |
| void | smooth3DGradients (SLint smoothRadius, function< void(int)> onUpdateProgress) |
| |
| SLVec2f | dudv (SLfloat u, SLfloat v) |
| |
| | SLObject (const SLstring &Name="", const SLstring &url="") |
| |
| virtual | ~SLObject () |
| |
| void | name (const SLstring &Name) |
| |
| void | url (const SLstring &url) |
| |
| const SLstring & | name () const |
| |
| const SLstring & | url () const |
| |
Public Member Functions inherited from SLEventHandler |
| | SLEventHandler () |
| |
| virtual | ~SLEventHandler () |
| |
| virtual SLbool | onMouseDown (const SLMouseButton button, const SLint x, const SLint y, const SLKey mod) |
| |
| virtual SLbool | onMouseUp (const SLMouseButton button, const SLint x, const SLint y, const SLKey mod) |
| |
| virtual SLbool | onMouseMove (const SLMouseButton button, const SLint x, const SLint y, const SLKey mod) |
| |
| virtual SLbool | onDoubleClick (const SLMouseButton button, const SLint x, const SLint y, const SLKey mod) |
| |
| virtual SLbool | onMouseWheel (const SLint delta, const SLKey mod) |
| |
| virtual SLbool | onTouch2Down (const SLint x1, const SLint y1, const SLint x2, const SLint y2) |
| |
| virtual SLbool | onTouch2Move (const SLint x1, const SLint y1, const SLint x2, const SLint y2) |
| |
| virtual SLbool | onTouch2Up (const SLint x1, const SLint y1, const SLint x2, const SLint y2) |
| |
| virtual SLbool | onTouch3Down (const SLint x1, const SLint y1) |
| |
| virtual SLbool | onTouch3Move (const SLint x1, const SLint y1) |
| |
| virtual SLbool | onTouch3Up (const SLint x1, const SLint y1) |
| |
| virtual SLbool | onKeyPress (const SLKey key, const SLKey mod) |
| |
| virtual SLbool | onKeyRelease (const SLKey key, const SLKey mod) |
| |
| virtual SLbool | onRotationPYR (const SLfloat pitchRAD, const SLfloat yawRAD, const SLfloat rollRAD) |
| |
| void | mouseRotationFactor (SLfloat rf) |
| |
| SLfloat | mouseRotationFactor () |
| |
Classic Monte Carlo Pathtracing algorithm for real global illumination.