Unity 3d geometric painting plug-in Simple Paint

This article is an article for translating its documentation and helping you use it. If you need a plug-in, please join the group: 891555732 Please
note: Plug-ins are for research only, not for commercial use


Had some limitations in the line generator and decided to try and create a custom renderer which was then implemented as an asset that would allow you to draw in 3d space.
NOTE: While camera rotation is supported, this can sometimes produce some weird geometry. That's the nature of games when using custom render scripts. Having said that, the goal of the plugin is to fix these issues in the future.
I highly recommend you take a look at the example scene first, as it shows how easy it is to get started. You'll notice that the paint controller preset has been added to the scene, with some initial values ​​set.
That said, you can easily drag the paint controller script onto an empty transform and set up the same scene in seconds.
When you're playing with the scene, you can draw in the scene effortlessly. However, to really take advantage of the system, you need to change the public variables available in the inspector view.

1. DrawLine

Let's take a moment to look at the paint controller in the optionals:

Draw Layer
The layer you want to draw, this is subtracted from the max layer variable to find a draw distance. Useful for creating a layer based painting system.
Max Layers
Largest painting layer. This is used to find a baseline away from the camera.
Main Camera
This is the main camera, used to determine the position of the mouse, and draw points in the scene.
Perspective Camera
Is this the perspective of the camera?

Guess you like

Origin blog.csdn.net/dengshunhao/article/details/103993903