replicate_mesh

replicate_mesh

mjcg91
Collaborator Collaborator
1,332 Views
8 Replies
Message 1 of 9

replicate_mesh

mjcg91
Collaborator
Collaborator

@suryamunny  has been asking many time for this compound we've a had long time ago, so I've recreated it.

replicate_mesh_graph.jpg

 

It uses point_position, point_scale, and point_orientation to transform the mesh. If these properties doesn't exist then it will use default values. It also transform any normal data found on the input mesh. No dependency required.

 

Maxime Jeanmougin - Technical Artist
https://maximejeanmougin.com

Join the Bifrost Addicts community on Discord:
https://discord.gg/bifrost-addicts
Accepted solutions (1)
1,333 Views
8 Replies
Replies (8)
Message 2 of 9

suryamunny
Enthusiast
Enthusiast

thank u so much😍.

0 Likes
Message 3 of 9

Christoph_Schaedl
Mentor
Mentor

Maxime somehow its not working for me.

 

rm.JPG

----------------------------------------------------------------
https://linktr.ee/cg_oglu
0 Likes
Message 4 of 9

Christoph_Schaedl
Mentor
Mentor

Here is the scene file.

----------------------------------------------------------------
https://linktr.ee/cg_oglu
0 Likes
Message 5 of 9

Christoph_Schaedl
Mentor
Mentor

Figured it out. Had to set the Value to float3.

 

rm2.jpg

----------------------------------------------------------------
https://linktr.ee/cg_oglu
0 Likes
Message 6 of 9

Christoph_Schaedl
Mentor
Mentor

If id like to use this compound to create some random rotated trees how do i do that?

I found no way to limit the rotations. 

----------------------------------------------------------------
https://linktr.ee/cg_oglu
0 Likes
Message 7 of 9

mjcg91
Collaborator
Collaborator
Accepted solution

You should use the "random_value" node instead, it has min / max ports, quite useful to set range.

 

random_rotation.jpg

Btw if you just want need to render trees, I think it might be wiser to use instancing rather than a replicated mesh.

Maxime Jeanmougin - Technical Artist
https://maximejeanmougin.com

Join the Bifrost Addicts community on Discord:
https://discord.gg/bifrost-addicts
Message 8 of 9

Christoph_Schaedl
Mentor
Mentor

Thanks Maxime thats perfect!

 

But how should a non TD know that a degree_to_radiants and an euler_to_quaternion is needed to get that working?

----------------------------------------------------------------
https://linktr.ee/cg_oglu
0 Likes
Message 9 of 9

mjcg91
Collaborator
Collaborator

These are not "needed". You could directly set some random quaternion values and it would work fine. You could also set euler values directly in radians.

When setting arbitrary rotations, euler degrees in just easier to deal with.

Maxime Jeanmougin - Technical Artist
https://maximejeanmougin.com

Join the Bifrost Addicts community on Discord:
https://discord.gg/bifrost-addicts
0 Likes