Isotropix Forums

Exporting scattered geometry

General Discussion about Isotropix and CG related topics

Exporting scattered geometry

Unread postby QuayStudios » Thu May 12, 2016 11:39 am

Hello,

Very much looking forward to Clarisse 3.0! Can I ask please, in the new version will it be possible to export scattered geometry to other software? I'm currently looking into the potential to 3D print objects originally created in Clarisse. Which would be awesome :D

Thanks,
Mark
QuayStudios
 
Posts: 8
Joined: Sun Dec 29, 2013 11:13 pm

Re: Exporting scattered geometry

Unread postby halim » Thu May 12, 2016 12:50 pm

Hello Mark,

We already have a confirmed feature request #2473 to be able to export in alembic combiners and scatterers geometry contents. We will keep you posted about how implementation goes.

Halim
Halim Negadi
Technical Artist - Clarisse Specialist
User avatar
halim
 
Posts: 141
Joined: Thu Nov 21, 2013 7:27 pm

Re: Exporting scattered geometry

Unread postby QuayStudios » Thu May 12, 2016 1:56 pm

Hello Halim,

Thanks for responding. That's good to know it's being looked into.

Thanks,
Mark
QuayStudios
 
Posts: 8
Joined: Sun Dec 29, 2013 11:13 pm

Re: Exporting scattered geometry

Unread postby sam » Thu May 12, 2016 1:59 pm

Hi Mark, the only issue is which software will be able to load the scattered result?
Sam Assadian
Isotropix
CEO/Founder
User avatar
sam
 
Posts: 1649
Joined: Fri Jan 25, 2013 11:33 pm

Re: Exporting scattered geometry

Unread postby daaims » Thu May 12, 2016 2:04 pm

Maya ? :mrgreen: :mrgreen: :mrgreen:
User avatar
daaims
 
Posts: 437
Joined: Fri Mar 22, 2013 12:17 am

Re: Exporting scattered geometry

Unread postby bvz2000 » Wed May 18, 2016 11:38 pm

I just exported some scattered geo from Pegasus. It was a field of 5000 simple spheres, but it worked. I imported the spheres into Maya and that was pretty smooth as well. You have to be careful of the geo count though. First off, Clarisse is very good at handling high poly counts. Things that put Maya into the terminal ward at the hospital are like a walk in the park with Clarisse. On top of that, when you scatter in Clarisse you are making use of instancing. When you bake it into an exported geometry you are converting every single instance into a unique collection of polygons. That will get huge really really fast.
bvz2000
 
Posts: 427
Joined: Thu Nov 13, 2014 6:05 pm

Re: Exporting scattered geometry

Unread postby Paintsinner » Sat Oct 08, 2016 4:09 am

I assume you used the export Geometry, which bakes everything into an OBJ?

Any updates on export scattered Geo with the alembic function?
Basically it would be nice to be able and bake the scattered contents, even it does not make sense in a "pure" clarisse workflow.
don't worry.. we will add grain to it...
Paintsinner
 
Posts: 3
Joined: Mon Sep 26, 2016 2:22 am
Location: Frankfurt / Beijing

Re: Exporting scattered geometry

Unread postby halim » Wed Oct 12, 2016 11:09 am

Hello,

A new alembic exporter will be available in the next version of Clarisse, offering two ways of exporting scaterrers, bake or layout mode.
Until then, you can use this python script which will 'explode" a selected scatterer:
Code: Select all
if ix.selection.get_count() > 0:

    item = ix.selection[0]

    if item.get_module().get_class_info() != ix.api.ModuleSceneObjectTree.class_info():
        ix.log_warning("You must select a SceneObjectTree!")

    ctx = ix.create_context(item.get_full_name() + "_exploded")

    print ctx
    scene_object_tree = item.get_module()
    instances_id = scene_object_tree.get_instances()
    item_mx = scene_object_tree.get_global_matrix()
    for i in range(instances_id.get_count()):
        instance_id = scene_object_tree.get_instances()[i]
        instance = scene_object_tree.get_base_objects()[instance_id]
        final_matrix = ix.api.GMathMatrix4x4d(item_mx)
        final_matrix.multiply_left(scene_object_tree.get_instance_matrix(i))
        new_cpy = ctx.add_copy(instance.get_object())
        new_cpy.get_module().set_matrix(final_matrix, ix.api.ModuleSceneItem.SPACE_LOCAL)
else:
    ix.log_warning("You must select a SceneObjectTree!")


Kind regards
Halim Negadi
Technical Artist - Clarisse Specialist
User avatar
halim
 
Posts: 141
Joined: Thu Nov 21, 2013 7:27 pm

Re: Exporting scattered geometry

Unread postby sam » Wed Oct 12, 2016 1:04 pm

Here is an improved version which takes into account the matrix of the scatterer/combiner. However, it requires Clarisse 3.0 SP4 or higher to run.

Code: Select all
#checking minimum version requirements
version = "3.0.0.0.4" # 3.0 SP4
if ix.application.get_version() < version:
    ix.log_error("This script requires a newer version of Clarisse: " + version)


if ix.selection.get_count() > 0:

    item = ix.selection[0]

    if item.get_module().get_class_info() != ix.api.ModuleSceneObjectTree.class_info():
        ix.log_warning("You must select a SceneObjectTree!")

    ctx = ix.create_context(item.get_full_name() + "_exploded")

    print ctx
    scene_object_tree = item.get_module()
    instances_id = scene_object_tree.get_instances()
    item_mx = scene_object_tree.get_global_matrix().get_copy()

    for i in range(instances_id.get_count()):
        instance_id = scene_object_tree.get_instances()[i]
        instance = scene_object_tree.get_base_objects()[instance_id]
        final_matrix = ix.api.GMathMatrix4x4d()
        final_matrix.copy_from(item_mx)
        final_matrix.multiply_right(scene_object_tree.get_instance_matrix(i))
        new_cpy = ctx.add_copy(instance.get_object())
        new_cpy.get_module().set_matrix(final_matrix, ix.api.ModuleSceneItem.SPACE_LOCAL)
else:
    ix.log_warning("You must select a SceneObjectTree!")
Sam Assadian
Isotropix
CEO/Founder
User avatar
sam
 
Posts: 1649
Joined: Fri Jan 25, 2013 11:33 pm

Re: Exporting scattered geometry

Unread postby Paintsinner » Tue Oct 18, 2016 3:06 am

Awesome! Thank you for providing the script. I just tried the first script, and seems to work great. I will keep testing
don't worry.. we will add grain to it...
Paintsinner
 
Posts: 3
Joined: Mon Sep 26, 2016 2:22 am
Location: Frankfurt / Beijing

Next

Return to General Discussion