Changeset 4040 for trunk/packages/vizservers/vtkvis
- Timestamp:
- Nov 9, 2013, 8:50:03 PM (11 years ago)
- Location:
- trunk/packages/vizservers/vtkvis
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/vtkvis/Makefile.in
r4037 r4040 2 2 TRACE = #yes 3 3 USE_CUSTOM_AXES = yes 4 USE_FONT_CONFIG = #yes4 USE_FONT_CONFIG = yes 5 5 USE_GPU_RAYCASTING = yes 6 6 USE_OFFSCREEN_RENDERING = #yes … … 125 125 DEFINES += -DUSE_THREADS 126 126 endif 127 ifdef NEW_SCALAR_BAR 128 DEFINES += -DNEW_SCALAR_BAR 129 endif 130 127 131 VTK_MOD_DEFS = -DvtkRenderingCore_AUTOINIT="4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL)" -DvtkRenderingFreeType_AUTOINIT="1(vtkRenderingFreeTypeFontConfig)" -DvtkRenderingVolume_AUTOINIT="1(vtkRenderingVolumeOpenGL)" 128 132 DEFINES += -DUSE_VTK6 $(VTK_MOD_DEFS) 129 ifdef NEW_SCALAR_BAR130 DEFINES += -DNEW_SCALAR_BAR131 endif132 133 133 134 CXX_SWITCHES = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(DEFINES) $(INCLUDES) -
trunk/packages/vizservers/vtkvis/RenderServer.h
r3859 r4040 16 16 class Renderer; 17 17 18 #define VTKVIS_VERSION_STRING "1. 6"18 #define VTKVIS_VERSION_STRING "1.7" 19 19 20 20 #define MSECS_ELAPSED(t1, t2) \ -
trunk/packages/vizservers/vtkvis/RendererCmd.cpp
r3983 r4040 10194 10194 } 10195 10195 g_renderer->setUseDepthPeeling(state); 10196 if (objc > 3) { 10197 if (objc < 5) { 10198 Tcl_AppendResult(interp, "wrong # args: should be \"", Tcl_GetString(objv[0]), 10199 " ", Tcl_GetString(objv[1]), " bool ?occlusionRatio maxPeels?\"", (char*)NULL); 10200 return TCL_ERROR; 10201 } 10202 double occlusionRatio; 10203 int maxPeels; 10204 if (Tcl_GetDoubleFromObj(interp, objv[3], &occlusionRatio) != TCL_OK) { 10205 return TCL_ERROR; 10206 } 10207 if (occlusionRatio < 0.0 || occlusionRatio > 0.5) { 10208 Tcl_AppendResult(interp, "bad occlusionRatio value \"", Tcl_GetString(objv[3]), 10209 "\": should be [0,0.5]", (char*)NULL); 10210 return TCL_ERROR; 10211 } 10212 if (Tcl_GetIntFromObj(interp, objv[4], &maxPeels) != TCL_OK) { 10213 return TCL_ERROR; 10214 } 10215 if (maxPeels < 0) { 10216 Tcl_AppendResult(interp, "bad maxPeels value \"", Tcl_GetString(objv[3]), 10217 "\": must be zero or greater", (char*)NULL); 10218 return TCL_ERROR; 10219 } 10220 g_renderer->setDepthPeelingParams(occlusionRatio, maxPeels); 10221 } 10196 10222 return TCL_OK; 10197 10223 } … … 10235 10261 static Rappture::CmdSpec rendererOps[] = { 10236 10262 {"clipplane", 1, RendererClipPlaneOp, 5, 5, "axis ratio direction"}, 10237 {"depthpeel", 1, RendererDepthPeelingOp, 3, 3, "bool"},10263 {"depthpeel", 1, RendererDepthPeelingOp, 3, 5, "bool ?occlusionRatio maxPeels?"}, 10238 10264 {"light2side", 6, RendererTwoSidedLightingOp, 3, 3, "bool"}, 10239 10265 {"lights", 6, RendererLightsOp, 4, 4, "idx bool"}, -
trunk/packages/vizservers/vtkvis/protocol.txt
r4037 r4040 3 3 Protocol for vtkvis render server. 4 4 5 Commands take the general form of command and arguments using Tcl syntax and are 5 Commands take the general form of command and arguments using Tcl syntax and are 6 6 terminated by a newline. Some command arguments expect a Tcl list which can be 7 7 sent by enclosing the list in curly braces to prevent the interpreter from … … 125 125 <max> = maximum value of axis for labels 126 126 axis scale <axis> <scale> 127 Set axis range to be computed based on scaling the axis bounds by the 128 givenscale factor.127 Set axis range to be computed based on scaling the axis bounds by the given 128 scale factor. 129 129 <axis> = x|y|z|all 130 130 <scale> = scale factor where range = bounds * scale … … 247 247 direction determines normal of clipping plane. User clip planes do not 248 248 apply if camera mode is image. 249 renderer depthpeel <bool> 249 renderer depthpeel <bool> <?occlusionRatio?> <?maxPeels?> 250 250 Set use of depth peeling algorithm for transparency 251 <occlusionRatio> = [0,0.5] Value of 0 means exact rendering, higher 252 values can speed rendering at the cost of some quality. From VTK docs: 253 "the threshold under which the algorithm stops to iterate over peel 254 layers. This is the ratio of the number of pixels that have been 255 touched by the last layer over the total number of pixels of the 256 viewport area." 257 <maxPeels> = 0 means unlimited passes, positive value limits the number 258 of rendering passes 251 259 renderer light2side <bool> 252 260 Toggle use of two-sided lighting (controls if backfaces are lit with a
Note: See TracChangeset
for help on using the changeset viewer.