Table of Contents

, ,

Start Page » DEMoCap: Drag[en]gine Motion Capture » XML Element Classes » ECBCameraFeedView

ECBCameraFeedView

Behavior adding support to display a camera feed view.

Feed view adds a component resource attached to a bone in the owner collider. The component is oriented to face along the Z axis pointing towards the user. The view can be enabled independent of the owner element. If the owner element is hidden during capturing the feed view stays visible. The size of the view adjusts with the distance to the viewer to make the view always cover an equal amount of screen space. The feed view is oriented to always face the user similar to a decal.

Instance Counts

This behavior can be used only once on an element.

Element Class Properties

Element class properties have the prefix cameraFeedView..

feedSize

Size in pixels of the image produced by the camera feed.

viewAngle

View angle in degrees of the camera feed.

model

Set path of model resource to use.

skin

Set path of skin resource to use.

rig

Set path of rig resource to use.

occlusionMesh

Set path of occlusion mesh resource to use.

audioModel

Set path of audio model resource to use.

renderEnvMap

Set if component is rendered in environment maps.

affectsAudio

Set if component is affecting audio.

hintMovement

Set movement hint.

enableGI

Set enable GI in graphic module if supported.

hintGIImportance

Set GI important hint. Value is in the range from 0 (very unimportant) to 4 (very important). This hint can be used by the graphic module to improve performance by excluding components with a GI important below a user chosen threashold.

textureReplacements

Set texture replacements.

Events

This behavior has no events.

Conversation Commands

This behavior adds no conversation commands.

Conversation Conditions

This behavior adds no conversation conditions.

Behavior Tree Actions

This behavior adds no behavior tree actions.

Behavior Tree Conditions

This behavior adds no behavior tree conditions.

Required Behaviors

Optional Behaviors

This behavior does not support optional behaviors.

API Documentation

Since DEMoCap Version 1.3

Use Cases

Element Class Example

class MyElement extends BehaviorElementClass
  public var ECBehaviorCollider collider
  public var ECBehaviorCamera camera
  public var ECBCameraFeedView feedView
  func new()
    collider = ECBehaviorCollider.new(this)
    camera = ECBehaviorCamera.new(this, collider)
    camera.getAttach().getPosition().setVector(Vector.new(0, 0, 0.1))
    camera.getViewDistance().setValue(300)
    camera.getPathParameters().setValue("/content/camera/videocamera.decamera")
    feedView = ECBCameraFeedView.new(this, camera)
  end
end

Behavior Factory

Using element class supporting adding behaviors the behavior can be added like this (again create an example which creates a valid element class):

<?xml version='1.0' encoding='UTF-8'?>
<elementClass name='MyClass' class='GenericBehaviorElement'>
  <behavior type='ECBehaviorCollider'/>
  <behavior type='ECBehaviorCamera'>
    <string name='.pathParameters'>/content/camera/videocamera.decamera</string>
  </behavior>
 
  <behavior type='ECBCameraFeedView'>
    <!-- optional: use camera with id instead of empty string -->
    <string name='camera'>second</string>
 
    <!-- set element properties. omit property prefix if used inside behavior tag -->
    <string name='.model'>cameraFinder.demodel</string>
  </behavior>
</elementClass>

Live Examples