HyperSkill User's Guide
  • Overview
    • System Requirements
    • Create a HyperSkill Account
    • Quick Start Guide
  • Virtual Entities (VX)
    • Public Virtual Entities
    • Import Virtual Object (VO) from HyperSkill Desktop
    • Edit Virtual Objects
    • VX Publisher
      • Import Model as Virtual Object (VO)
      • Import Model as Virtual Person (VP)
      • Import Model as Virtual Space (VS)
      • Special Considerations
    • Export Model from SolidWorks
    • Export your Virtual Object to a QR Code (Hololens)
    • Special Virtual Objects
      • Train
      • Digital Caliper
      • Blur
      • Crossbow
      • Picture Frame
      • Drone
      • Painting
        • Setup
        • Spray Painting
        • Pen
      • Timer Display
  • Media Upload
  • Authoring a Simulation
    • Object Browser
    • Inspector
      • General
      • Description
      • Grab Mechanics
        • Basic
        • Slider
        • Rotator
        • Dragger
        • Grabber
        • Climbable
      • Customizable
      • Player
    • Scene Layout
      • Asset Movement Tools
      • Skybox
      • Set Spawn Position
      • Show Axis
      • Assets
    • State Machine
      • Scenario Flow
        • State Machine Interface
        • State Actions
        • Attributes
          • Default Attributes
        • Transitions
          • Use
          • Snap
          • Proximity
          • Collide
          • Utterance
          • Use Release
          • Conditions
      • Rules
      • Triggers
        • Collide
        • Conversation Update
        • Grab
        • Proximity
        • Rejected Intent
        • Snap
        • Voice Intent
        • Ungrab
        • Unsnap
        • Use
        • Use Release
        • Wait
      • Conditions
        • Simulation Condition
        • Account Condition / User Attributes
      • Actions
        • How to Author the State Machine
        • Add Feedback Log
        • Add a Follow Camera
        • AI Chat
          • How to Author the Chat Box in a simulation
        • Animation Controller
        • Animation State Transition
        • Camera
        • Change Character Prompt
        • Checklist
        • Display Image
        • Display Message
        • End Timer
        • Go To Sim
        • Highlight
        • IK Solver
        • Leaderboard
        • Lighting Settings
        • Look At
        • Microphone
        • Open Link
        • Particle Controller
        • Play Animation
        • Play Audio
        • Play Video
        • Quiz
        • Reset Chat
        • Rotate
        • Run Agent
        • Set Attribute
        • Show Feedback Log
        • Spatial Audio
        • Spawner
        • Speak
        • Start Timer
        • Switch Virtual Assistant
        • Transition Effect
        • Translate
        • VCode Function
        • Wait
    • Object Groups
    • Paths
    • Wires
      • Wire Builder Interface Description
    • Simulation Settings
      • Experience Settings
        • Microphone
        • Player
        • Documents
        • Virtual Assistant
        • Conversational AI
        • Wires
        • Pin Code Multiplayer Overrides
        • Experts
      • Authoring Settings
        • Desktop
        • VR
    • SimGenie
    • Simulation Templates
    • Save States
  • Experience a Simulation
    • User Interface
    • Controls
    • Multiplayer
  • AI
    • Natural Conversations
    • Large Language Models & Data Privacy
    • AI Chat
      • How to Author AI Chat
      • SimKB
      • Edit Mode
      • Test Mode
    • Agents
      • How to Author an Agent
      • Edit Mode
      • Test Mode
    • PDF Question Answering
    • Review Mode
    • Settings
    • Conversational AI
      • Helpful Terminology for Conversational AI
        • Multi-expert dialog
        • Natural Language Understanding
        • Experts
          • List of experts developed so far
            • HM Graph Expert - Deployed
            • Key Phrase Expert - Deployed
            • Catch All Expert - Deployed
            • Azure PDF Expert - Standalone
            • Gaze Expert - Standalone
            • Knowledge Graph Expert - Standalone
  • Mixed/Augmented Reality
    • Create a Mixed Reality experience
    • Spatial Anchors
  • Publish
    • Playlist
    • LMS Integration
    • Embed Mode
  • Insights and Analytics
    • Logging Attributes
      • Detailed Event Table
      • Detailed Attributes Table
  • Web Portal
    • Simulation / Virtual Object Browser
    • Organizations
    • Settings
  • Subscriptions
  • Skillful
    • FAQ
  • Archived
    • Wires
Powered by GitBook
On this page
  1. Virtual Entities (VX)
  2. Special Virtual Objects
  3. Painting

Pen

PreviousSpray PaintingNextTimer Display

Last updated 1 year ago

Getting Started with HyperSkill's Pen Feature

Overview

In addition to spray painting, HyperSkill also supports painting and marking using pens. Pens enable finer control over painting, allowing users to add fine details or write.

Getting Started

To get started, you will need to procure a 3D model of the pen tool. This can be any 3D model you want, so long as it conforms to the following requirements:

  • The collider of the object must not cover the tip of the writing tool

    • [Recommended] Adjust the collider such that there is plenty of space for the tool tip. This will enable a smoother experience when writing/painting in VR

  • There must be a child transform on the object named "Paint"

  • The "Paint" transform must be scaled to be the size of the tip of the pen

    • [Recommended] Add a 3D sphere as a child of the "Paint" transform and adjust the "Paint" scale. Keep adjusting until the sphere correctly covers the tip of the pen. The sphere visualizes the collider that is used to apply the paint. Don't forget to remove the sphere once you are done adjusting.

  • Two additional transforms must be added to the pen object. These transforms must be named "PointA" and "PointB" respectively

    • "PointA" should be positioned at the end opposite of the tip of the pen

    • "PointB" should be positioned at the tip of the pen

Once you have uploaded the 3D model as a virtual object to your account, you may now add the pen tool to your experience.

Setup

In authoring mode, you need to add some custom attributes to your pen virtual object. Add the following attributes to enable painting using the pen feature:

  • Add a custom attribute named "Pen" of type "bool". The value should be set to true. If the value is true, the feature will be enabled. If the value is false, the tool cannot be used. This setting is per object, so you may have some pens that are enabled and some that are not.

  • Add a custom attribute named "Color" of type "string". The value can be a named color or a hex color code.

    • The named colors support the following:

      • black

        • blue

        • clear

        • cyan

        • gray

        • green

        • grey

        • magenta

        • red

        • white

        • yellow

    • You can use any hex color code you want

    • The "white" color is interpreted as color removal and will remove any applied paint

Sample setup of a Pen in Unity
The position of Point B, at the tip of the pen
The configuration of the Paint transform, including the scale and a visualization of the painting collider
Sample attribute setup for a pen tool