Page 1 of 1

Wireframe geometry (atom array)

PostPosted: Wed Sep 15, 2021 1:34 pm
by jobigoud
Hi everyone,

This is a script to create a solid wireframe version of a mesh. The script goes through the polygons and replaces edges with hair primitives and vertices with spheres.

spaceship.jpg


spaceship4.jpg


Usage
1. Add a Scripted graph node and load the script "wireframe.lua" into it.

2. Plug the geometry node you want to convert into the Geometry input.

3. Adjust the radius of the spheres and rods using the Vertex radius and Edge radius fields.

cube.jpg


nodegraph.png
nodegraph.png (12.92 KiB) Viewed 4914 times


Feedback, bug reports and suggestions are highly appreciated.
Thanks!

Lua script:
wireframe.lua
(11.51 KiB) Downloaded 269 times


Demo ORBX:
wireframe-demo.orbx
(74.99 KiB) Downloaded 276 times

Re: Wireframe geometry (atom array)

PostPosted: Sun Sep 19, 2021 2:06 am
by elsksa
Nice results. Thank you for sharing it publicly.

Re: Wireframe geometry (atom array)

PostPosted: Tue Sep 21, 2021 9:54 am
by jobigoud
I updated the script to make it work better in Octane 2020 and Octane X.

Re: Wireframe geometry (atom array)

PostPosted: Wed Nov 10, 2021 2:33 pm
by manalokos
Hi, great script!

I would add some improvements:

-Active/inactive checkbox
-Script is rebuilding mesh even if there is a change in the material, (should evaluate only if geometry changes?)

Kind regards
Filipe

Re: Wireframe geometry (atom array)

PostPosted: Thu Nov 11, 2021 10:35 am
by jobigoud
manalokos wrote:-Script is rebuilding mesh even if there is a change in the material, (should evaluate only if geometry changes?)


Thanks. I can't really tell that only the material changed unfortunately. We get a callback that the source geometry node changed somehow, but there is no granularity on what changed about it.