copy to point pre-made tree variations (from disk) without copy stamp

   1010   3   0
User Avatar
Member
1004 posts
Joined: April 2017
Offline
Hi!

I'm making a forest and I have 3 different trees (I might add more later). I've also made a scatter of points on the terrain with a i@treePicker with random values (0, 1 and 2). At the moment, if I want to scatter Tree0 on points “0”, tree1 on points “1”, etc. I have to blast anything that's not point 0, and use a copypoint sop to copy Tree0, and manually repeat the same process for Tree1 and Tree2.

Is there a way to do all this without manually placing a copy point sop for each tree?

Thanks.

-Olivier
User Avatar
Member
1004 posts
Joined: April 2017
Offline
Well, it looks like copy stamp is the only way.

From the copy stamp sop, I'm trying to access the @treePicker value (defines what tree to pick) from another node but I get error. For my first variable, I'm using:

point(“../number_of_variations/”, “treePicker”, @ptnum)

but I get an error:

Error
Unable to evaluate expression (Invalid number of arguments for function (/obj/geo1/copy3/val1)).


Why is that?

Thanks for any help.

-Olivier

Attachments:
copyStamp_point_expression_fail.JPG (104.5 KB)

User Avatar
Member
8513 posts
Joined: July 2007
Offline
no stamping is definitely not the only way and not even preferred way

https://forums.odforce.net/topic/25971-optimize-copies-stamping-or-not-solved/?page=2&tab=comments#comment-151013 [forums.odforce.net]
the green one in your case
Edited by tamte - Aug. 23, 2018 20:30:27
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
1004 posts
Joined: April 2017
Offline
Thanks!

I'll have a look.

-Olivier
  • Quick Links