From TouchDesigner Documentation
Revision as of 12:21, 30 April 2019 by Jon (talk | contribs) (Created page with "{{Summary |opFamily=COMP |opType=geo |opClass=Palette:sweetSpotPreviz Ext |opLicense= |short= |long=This example illustrates the setup of a so-called Trompe l'oeil effec...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


This example illustrates the setup of a so-called Trompe l'oeil effect where you render a scene from the position of the observer and use the result to re-project it onto a surface. Results created for large format projections, surround environments or tracked monitor setups will seem close to perspectively correct when viewed from the general area of the sweet spot. This technique is especially useful for previsualisation purposes as well as architectural mapping. Also see Tools>sweetSpot in the palette window for a production-ready component which can be used together with camSchnappr.


Given a scene and a screen position we render the scene with the help of a camera placed in our chosen sweet spot. The sweetSpot camera is looking at the screen COMP. Now the rendered square texture is applied to the screen geometry whose texture coordinates are specified with the Perspective from Camera (sweetSpot) setting on the texture SOP.

Rendering the whole scene now from a projector position (screenCam) will result in a texture that can be used to re-project from the projector. In case the final output is an LCD screen, the screenCam should be set to orthographic and situated directly in front of the screen geometry. If the viewer will be tracked, the resulting position can drive the transform tx, ty and tz parameters of the sweetSpot Camera COMP directly.

PythonIcon.pngPalette:sweetSpotPreviz Ext

Parameters - sweetSpotPreviz Page

Help Help - Opens this page.  

Version Version - Current version of this COMP.  

Operator Outputs

  • Output 0 -

TouchDesigner Build:

Palette • Palette:arcBallCamera • Palette:arcBallGeometry • Palette:audioAnalysis • Palette:audioSet • Palette:battery • Palette:blendModes • Palette:bloom • Palette:cameraBrowser • Palette:camSchnappr • Palette:changeColor • Palette:changeToColor • Palette:checker • Palette:chromaKey • Palette:colorThreshold • Palette:compareComp • Palette:convolve • Palette:cornerPinSOP • Palette:customAttributes • Palette:dent • Palette:depthExtract • Palette:dilate • Palette:equalizer • Palette:feedback • Palette:feedbackEdge • Palette:geoPanel • Palette:gestureCapture • Palette:graphPlot • Palette:histogram • Palette:hsvBlur • Palette:imageSearch • Palette:julia • Palette:kantanMapper • Palette:kinectCalibration • Palette:kinectPointcloud • Palette:leapPaint • Palette:lightTunnel • Palette:mandelbrot • Palette:mesh • Palette:monochrome • Palette:motionSense • Palette:moviePlayer • Palette:multiLevel • Palette:multiMix • Palette:noise • Palette:onScreenKeyboard • Palette:opticalFlow • Palette:particlesGpu • Palette:pixelate • Palette:pixelRelocator • Palette:pointGenerator • Palette:pointillize • Palette:pointMerge • Palette:pointRender • Palette:pointRepack • Palette:pointTransform • Palette:pointWeight • Palette:popDialog • Palette:probe • Palette:projectorBlend • Palette:pushPins • Palette:puzzle • Palette:radialBlur • Palette:remotePanel • Palette:rgbaBlur • Palette:rgbaDelay • Palette:rgbContrast • Palette:search • Palette:searchReplace • Palette:sharpen • Palette:softenAlpha • Palette:solarize • Palette:sopRender • Palette:stitcher • Palette:stoner • Palette:superFormula • Palette:sweetSpotPreviz • Palette:TDVR • Palette:transitMap • Palette:twirl • Palette:vectorScope • Palette:virtualFile • Palette:waveformMonitor • Palette:webBrowser • Palette:xyScope

An Operator Family that contains its own Network inside. There are twelve 3D Object Component and eight 2D Panel Component types. See also Network Path.

An Operator Family that reads, creates and modifies 3D polygons, curves, NURBS surfaces, spheres, meatballs and other 3D surface data.

A 3D image created with the Render TOP. Also used more generally to include the compositing (with TOPs) to generate an output image.

A built-in panel in TouchDesigner that contains a library of components and media that can be dragged-dropped into a TouchDesigner network.