Itoo Software Forum

Forest Pack => Forest Pro (*) => Topic started by: Tom_1028 on February 17, 2024, 10:49:01 AM

Title: A noise map to change both colour and Z scale
Post by: Tom_1028 on February 17, 2024, 10:49:01 AM
Hi,

Basically what I'm trying to achieve is scattering boxes on a plane, and I want some of the boxes to have a different colour and a different Z scale.

So I use a noise map as a mask for the boxes material (with "World XYZ" as mapping coordinates), and the same noise map as a Probability map for the Z scale of the boxes. I used that tutorial https://docs.itoosoft.com/forestpack/forest-plugin/transform to change the initial black and white noise map to a black and blue noise map so that only Z scale is affected and not the other axis.

And the result looks weird: boxes that are affected by the Z scale modification are not exactly the ones that receive the red colour.
What I want is all the red boxes to be impacted by the Z scale and only these, whereas in the screenshot you can clearly see that some green boxes are affected too.

Can you please help?

Thanks a lot,
Title: Re: A noise map to change both colour and Z scale
Post by: Paul Roberts on February 19, 2024, 11:14:20 AM
I think it might be because the noise is 3D. So what you see on top of the boxes, is not necessarily the noise pattern that is being read on the surface.
If you look at these two images - the noise pattern on the surface does correspond to the scaling of the boxes. But because it is a 3d texture, it isn't affecting the top of the box.

(https://i.imgur.com/zB6rpuq.png)
(https://i.imgur.com/WbbFjmq.png)

One way around this might be to change the Z Tiling the force the same "slice" of the texture to be elongated on the Z Axis

(https://i.imgur.com/5nzwJn8.png)
(https://i.imgur.com/EpfsHAT.png)

I hope that helps,
Paul
Title: Re: A noise map to change both colour and Z scale
Post by: Tom_1028 on February 22, 2024, 03:57:21 AM
Hi Paul,

Thanks for your answer, but in my case it doesn't work: switching Z Tiling to 0.01 doesn't help (see attached).
Interestingly we can see the Z scale of the boxes doesn't change, but the color of the boxes did, which is weird as I didn't touch the X and Y Tilings, so I"m not sure too understand what's going on.
Title: Re: A noise map to change both colour and Z scale
Post by: Tom_1028 on February 26, 2024, 01:05:13 AM
HI,

Any thoughts as to why the issue remains on my side?
I can provide the scene for you to have a look if that helps.

Many thanks
Title: Re: A noise map to change both colour and Z scale
Post by: Michal Karmazín on February 27, 2024, 08:47:31 AM
I'm sorry to hear that you are still experiencing difficulties with it. Please feel free to send us (https://forum.itoosoft.com/faq/how-to-send-a-file-to-itoo-software/) your scene to check it here. Ideally, if you'll be able to reproduce it on a minimal scene, which you can send us, it would be great. Thanks in advance.

Best regards,
Title: Re: A noise map to change both colour and Z scale
Post by: RealViz on February 29, 2024, 01:01:42 PM
I think the xform reset for the surface and also the position, scale and rotation of the FP itself must be 0,0,0!
Title: Re: A noise map to change both colour and Z scale
Post by: Tom_1028 on March 01, 2024, 06:47:52 AM
Not sure what you mean by XForm reset of the FP but anyway, I checked every object has no transformation: scale is 100%.
Title: Re: A noise map to change both colour and Z scale
Post by: Tom_1028 on March 01, 2024, 06:48:22 AM
Thanks for your message, I just sent you the scene  :)
Title: Re: A noise map to change both colour and Z scale
Post by: Michal Karmazín on March 01, 2024, 08:46:22 AM
Thanks for providing the scene. The issue lies with the position of the Forest object - the Forest's gizmo should be located at the center of 3ds Max's world coordinates for the World XYZ mapping to work correctly. Please find attached the modified scene (240301_PB_Forest_TEST_06_iToo.max). I hope that helps.

Best regards,
Title: Re: A noise map to change both colour and Z scale
Post by: Tom_1028 on March 04, 2024, 01:52:23 AM
Excellent!
Thanks for your support, very much appreciated  :)