Skip to content

Settings

mika edited this page Jan 30, 2020 · 3 revisions

Viewer Inspector

Settings

  • FilePath: Path to PCAP file (Note: If you want to load from StreamingAssets/ folder, no need to enter full path, just the path under StreamingAssets/)
  • LoadAtStart: Should we load PCAP file in Start() method, if disabled, you need to call CallThreadedPCAPReader() yourself
  • CloudMaterial: Material (and shader) used for point cloud rendering
  • CloneMaterial: Creates clone of the assigned material, Required if you have multiple viewers in same scene

Visibility

  • DisplayPoints: If disabled, doesnt draw points (not very useful)
  • RenderOnlyMainCam: If disabled, renders to other cameras also (which doubles the rendering cost)

Rendering

  • UseMeshRendering: Draws point cloud using regular MeshRenderer (reguired for Android). Allows also to draw on depthtexture, if you need to use post processing like SSAO
  • UseCommandBuffer: Use camera commandbuffer to draw points, allows setting specific pass when the points are drawn
  • CamDrawPass: Camera pass to draw
  • ForceDepthBufferPass: If enabled, draws the point cloud into depth pass separately
  • CamDepthPass: Camera depth pass to draw into depth texture
  • AdditionalCameras: If you need to draw into multiple cameras using CommandBuffer, assign the cameras here

Playback

  • AutoPlay: Play received frames (if disabled, its paused)
  • PlaybackDelay: Delay per frame (often 0 is good value if want instant playback)

PCAP Settings

  • ConfigFile: Load device config.xml file from this path (Not recommended)
  • LoadConfigAtStart: Loads config at Start() method (Not recommended)
  • AutoLoadConfigOnDetection: Loads matching config file after model type is detected from data (Recommended). Note: Config file must be the root of StreamingAssets/ folder, with the model name: Puck.xml or UltraPuck.xml
  • FilteringDistance: Remove points that are below this distance. Note: You need to multiply your wanted range with 250 to be within correct units (You can do this easier in the Uber shaders also)
  • ShowFirstFrameWhenAvailable: When loading PCAP file, without file streaming enabled, you can enable this to show first frame while rest of the PCAP is still loading (because it can take several seconds to parse PCAP file completely)
  • UseLargeFileStreaming: You must enable this if your PCAP file is larger than 2gb, but you can also enable this for smaller PCAP files to use file streaming instead of reading completely into memory

Screenshot

Settings

Clone this wiki locally