Login | Register 
Products Applications Downloads Features Wiki forum Store
 

soptotop.tox - SOP to TOP

Share your components here. First one to 100 wins!

soptotop.tox - SOP to TOP

Postby greg » Thu Feb 09, 2012 2:17 am

I often want to render a simple-shaded SOP to a TOP without setting up a bunch of nodes, which is what soptotop.tox does.

It is controlled by a table inside, named default_spec. Copy default_spec outside the component and connect it to the second input.

Attach any SOP to the first input, or you can experiment with the default torus.

You can alter the table settings, which are:

resx, resy - resolution of the output image
ortho - 1 = orthographic, 0 = perspective
orthowidth - orthographic width
fov - field of view in degrees if it is perspective
camtz - camera position along the z-axis from the origin. camera x and y are 0

normalize - if 1 (default), the SOP is first scaled and translated to fit in the field of view of the camera

then these transforms apply:

tx ty tz - adds a displacement to the incoming SOP
rx ry rz scale - applies rotation and scale to the incoming SOP

constr constg constb = constant color on the object
diffr diffg diffb - diffuse color of object
lighttx lightty lighttz - light position

You can build your own user interface to this component as it is driven from the one table.
Attachments
soptotop.tox
(2.41 KiB) Downloaded 120 times
User avatar
greg
Staff
 
Posts: 291
Joined: Tue Nov 13, 2007 12:08 am

Return to Shared .tox Components

Who is online

Users browsing this forum: No registered users and 1 guest