Home » Models » 3D objects » VRCMarker Pro

Model info

Content type:3D objects
Сreated by: Z3Y
Views: 3 444
VRCMarker Pro

To download the model, you need to log in.

Description

VRCMarker Pro

This is a redesigned and improved version of my free VRCMarker prefab. Only compatible with VRChat Worlds. Udon sharp and Unity 2022 requiered.

Public test world https://vrchat.com/home/world/wrld_bd718520-e6ab-434b-a070-ee35b42f0d5f

Features and improvements

· Completely custom line renderer built with Udon and Shaders. The rounded line was designed to simulate a look of a 3D capsule (Similar to Unity XR line renderer). Looks the same on PC and Quest

· Smooth and accurate sync. Trail lines smoothly appear when synced remotely. The positions for the lines are manually synced without relying on object sync position

· Per segment eraser. You can erase any part of the lines with the other end of the pen. The positions at which the eraser interact happens is also manually synced to accurately erase on both ends

· Late join sync. On player join the owner sends all currently drawn positions. With current networking in VRChat it is not possible to do this without the network suffering, or having the sync take too long (up to a few minutes). It was designed to slowly sync and wait for networking to be stable. Disabled by default. When enabled displays a warning in the inspector. Late join sync improvements are still being worked on. If networking of other more important scripts fail you should disable this

· Minimal Udon overhead. There are no update loops when drawing remotely. Only one custom event loop is used when drawing locally. Most of the parallel processing is offloaded to the GPU (example eraser)

· Position count limit. You can't draw infinitely, once the limit is reached the position data wraps around to the start, overwriting previously drawn lines. The default limit per pen is 4096 line positions (36864 triangles, 28672 vertices). While this might seem like a lot, because of the high poly count, in case you need more for large drawings you can always use more pens

· Remove last drawn connected line (Undo)

· Gradients and solid colors, visible on the trail and the marker mesh itself

· Different smoothing modes. Default, pulled string, catch up on end

· Outline. 2 pass stencil outline. This will cause the trail mesh to render twice

· Write on surface mode. Without raycasting, only for designated flat surfaces

· There is currently no UI for adjusting settings at runtime, but the plan is to integrate it later into the VRChat quick menu UI system. Until then API functions are available to be called from a custom UI (#region Public API). This includes import/export of the drawn positions, respawn, local clear, enable/disable visibility

· QoL Desktop features: Hold tab to draw with the cursor, Backspace to undo and Del to clear. The cursor mode is only accurate when the mouse acceleration is disabled, sensitivity is set to middle and in game FoV set to default. Since VRChat doesnt provide a proper way to do this, theres always a chance it will break in the future.

How to use

· Create or open a Unity 2022 VRChat world project (with VCC)

· Download and import the Unity package. The imported assets end up in the Packages folder (Not assets)

· Drag the marker prefab into your scene and adjust settings

· Optionally use the surface prefab to add designated surfaces to write on (you can disable the mesh renderer once setup)
Comments: 1
Add comment

Information

To add your comment you need to log in.