Forum
#1 2018-12-14 19:01:46
- Egert
- New member
Instancing scaled geometry
Is it possible to instance geometry and use their transform stack instead of raw information? If I try for example instance two cubes and one of them is scaled up, instances node uses their raw values so that both boxes have same size when instanced.
Offline
#2 2018-12-17 12:46:58
- Egert
- New member
Re: Instancing scaled geometry
I got this suggestion from another user
root group
'->scaled group
'-> primitive
The root node is the one instanciated
But I can't really understand the concept with groups, contexts etc.
Offline
#3 2018-12-17 23:41:40
- Ben
- Guerilla dev, the guy to hug
Re: Instancing scaled geometry
Hi Egert,
You mean using the Instanes procedural? As such, not yet, but this is planned as an option to the procedural.
Otherwise, using plain old instances, you'll get the full transform accumulation.
Ben
Offline
#4 2018-12-18 09:15:59
- Egert
- New member
Re: Instancing scaled geometry
Yes, I meant procedural instances. But is there a way to randomize instanced object scale, like based on object ID, noise or texture?
Ah, there was an example in documentation for density, that already gave me an answer.
I can use texture, however I cannot figure out how to use object id for scaling. Which node should assign random values for scale, I tried to use randomize color, but it didn't affect scale with id as far as I could tell. When I used randomize color for diffuse it worked
Last edited by Egert (2018-12-18 09:43:54)
Offline
#5 2018-12-18 10:49:12
- Ben
- Guerilla dev, the guy to hug
Re: Instancing scaled geometry
Hi,
The scale is based on data available on the scalp, while the instances diffuse color is based on the id generated for each instance. If you need to control more precisely the setup of your instances, I suggest that you use point clouds as shown in the doc :
http://guerillarender.com/doc/2.0/User% … ances.html in the last section on point clouds.
While the orientation is controlled by a quaternion, you'll have access to each point data (and for instance a scale.)
Best,
Ben
Offline
#6 2018-12-18 11:03:00
- Egert
- New member
Re: Instancing scaled geometry
I see, thanks for explaining, I guess I will stick with texture on scalp for time being. But it seems that point cloud has to come from a 3rd party software at least in documentation I did not see a internal solution for creating point clouds.
Offline
#7 2018-12-18 13:54:47
- Ben
- Guerilla dev, the guy to hug
Re: Instancing scaled geometry
Yes, a classic being Houdini, for its versatility.
Offline