Quantcast
Channel: Cinema 4D Render Farm | iRender Cloud Rendering Service
Viewing all articles
Browse latest Browse all 31

Overview of Octane Vectron

$
0
0

Overview of Octane Vectron

Vectron software module utilizes Vector-Polygon geometry to provide infinite procedurally generated scenes, volumes, and geometry which bypass meshes and volumes. With Vectron you can create procedurally generated scenes entirely on the GPU without using GPU VRAM and with zero memory footprint. In this article, let’s figure out Octane Vectron.

Creating a Vectron object

You can find many available Vectron objects from Live Viewer > Objects > Vectron. Vectron objects are generated from OSL scripts, which can be seen and editted in the edit field of the script group. You can also load an external script (in that case, the code for the Vectron object will not be visible). Having access directly to the script allows for modifications as needed.

Select the Vectron object in the Cinema 4D Object Manager, and then choose the Code Group tab in the Attribute manager:

Because there are no polygons in a Vectron object to draw in the Cinema 4D viewport, we can only see the actual drawing of the Vectron equation in Live Viewer or when rendering. A bounding box is drawn, as well as a (typically small) sphere in the center of the bounds. If there is any Vectron object outside of the bounds, they will be clipped and not drawn.

Live Viewer, with the instant feedback, is perfect for Vectron scripts generation. However, there may be some cases when a particular script does not immediately show a result in the Live Viewer. If you encounter this problem, just adjust the values in the Script Parameters group. If you find that the sliders in the Script Parameters group are rather finicky, as the bounds are too large, try limiting the range of a slider by editing the value of float slidermax in the script to 10 and then adjust as needed.

A note about scripts loaded directly from Octane Standalone:

Octane Standalone use meters to describe Units of scripts. You may need to significantly adjust any scale values by 100 when pasting into the c4doctane version of Vectron. Functions such as booleans are not available in the plugin and will not appear in Vectron scripts loaded into the c4doctane plugin. Best to use the scripts from the presets menu if you can, as those scripts have been converted for use in the c4dOctane plugin.

A new Vectron object will have an OSL script with the following lines of code:

You can create a simple sphere using this script. A little extra coding, as in the image below will get you the result that follows:

You can download the example of the Vectron node in the image above to see it in action here: VectronSphere.orbx 

You can also download a collection of Vectron examples here: Fun_With_Vectron (4).orbx

Boolean operation with Vectron

Vectron can perform boolean operations on SDF primitive objects. You can go to Live Viewer > Objects > Vectron > Operators to access the Vectron booleans, and choose the desired operation from the list in the menu. This will then add a VectronOp object to the Object manager.

Next, you can load in two SDF primitives as operands and parent to the VectronOP node.

You will need to use Live Viewer or render the scene with Octane to see the result of the VectronOp. Wireframe drawing is performed in the Cinema 4D 3D views, but these are approximations, at best.

NOTE

Vectron boolean operations are limited to two operands only — the Cinema 4D Object Manager will allow for an unlimited amount of children attached to the VectronOp object, but Vectron will not process any more than two operands correctly.

VectronOp

The VectronOp node or object contains the following options to manage the resulting boolean operation:

        • (Operation) Type — This menu contains a list of the following boolean operations supported by Vectron:
              • Union— Joins the two operands together as one object
              • Subtraction— Subtracts the second operand from the first operand
              • Intersect— Leaves just the portion of both operands that are shared with each other
              • Offset— Will expand or shrink all faces of the first operand to the extents specified by the bounds (the second operand is ignored in this case.)
              • Inset— Creates an inset of the first operand as revealed by the second operand. Blending between the two operands is controlled by the Radius attribute. Many unusual shapes can be created with this operation.
              • Ink— Will create a shape where the two operands intersect, but leaves the first operand in place.
              • Clip— This operation will remove any portion of the operand behind a clipping plane.
        • Radius— The boolean operation will consider only the items within the Radius specified.
        • Bounds— The overall bounds of the boolean realm. Anything outside of these bounds will not be drawn or generated.
        • Transfer Materials— This toggle enables the transfer of materials between operands (transferring material from the second operand to the common portions resulting from the boolean operation.

IMPORTANT NOTE

If you see the render result with portions of operands missing, try increasing the size of the bounds — objects or object portions extending beyond the bounds specified are clipped by the boolean operation.

Vectron Operand

Any SDF object parented to the VectronOp becomes an operand. There are one or two operands are supported (if more operands are present, the results may not be predictable). You should choose the shape of the operand from the Object Type menu, and depending upon that, different options will appear.

The Operator section harkens back to the VectronOp, and the Radius parameter is the same as the VectronOp Radius parameter.

Vectron Examples

Some of the available Vectron boolean operations

Above is an example of an SDF sphere subtracted from a Menger cube.

Samples from shadertoy.com being fed into the OSL vectron geometry node. This example was copied from the Octane Standalone script and pasted into the Vectron Object in Cinema 4D.

Vectron Scripts

There are several preset scripts included with the Vectron object:

        • fractal1.txt
        • glsl_type.h
        • mandelbulb.txt
        • mandelbulb2.osl
        • mandelbub_clay_test
        • menger_sponge_boolean_extract.txt
        • metaball1.txt
        • primitives.txt
        • QuaternionJulia.osl
        • sdf_to_vectron_surface_displacement.txt
        • sphere.osl
        • sphereWithtexture.txt — This script uses a noise texture input. Be sure to add a projection node and set the projection to UVW to XYZ
        • sponge.txt
        • temporal_mandelbulb.txt — In order to see the result of this script, adjust the bounds values located in the Object Parameters group. Large values will be necessary.
        • Vectron Procedural Waves (slow).txt — Generates a plane with a wave texture.
        • vectron_fur_fast.txt
        • vectron_fur_with_motion_blur.txt

Can you use Octane Vectron on iRender cloud rendering?

iRender provides you a high-performance and configurable server system for 3D rendering, AI Training, VR & AR, simulation, etc. We believe that design and creative activities are private and personal that only you artists will know what you want with your animation.

You can create a machine with pre-installed software (now we have Cinema 4D and Blender), or a blank machine then install any plugins and software you need. You should add your license, then render like you always do on your own PC.

For Octane, we suggest our multi RTX4090s or RTX3090s.

Let’s see some of Octane benchmark with Cinema 4D and Houdini on our package RTX 4090s:

Not only those powerful configuration, iRender also provides you more services. Free transferring tool named iRender drive for macOS or Linux users. For Windows users, we recommend using our all-in-one application iRender GPU to work, and you don’t need to come to our website. Our price is flexible with hourly rental which has pay-as-you-go basis, daily/ weekly/ monthly subscription with discount from 10-20%. Plus, you have 24/7 support service with real human who will support you whenever you encounter an issue.

If you use Cinema 4D, kindly create a remote machine with Cinema 4D pre-installed and you are provided one license free. Regarding Octane, you can transfer your own license, or contact us if you want to use our license. Our 24/7 staff will advise you on how to use it.

Register an account today to experience our service and enjoy a very big promotion 100% bonus for new user. Or contact us via WhatsApp: (+84) 916806116 for advice and support.

 

Thank you & Happy Rendering!

Source and images: docs.otoy.com

Related Posts

The post Overview of Octane Vectron appeared first on iRender Cloud Rendering Service.


Viewing all articles
Browse latest Browse all 31

Trending Articles