Page 1 of 1

Chunks rotation?

PostPosted: Saturday, 22.September 2012, 09:24
by Skinnytorus
Hey guys,
I can't make chunks rotate (see the file). Maybe you know the answer?
Thank you.

Re: Chunks rotation?

PostPosted: Sunday, 23.September 2012, 09:05
by erbsen
It seems to be an easy task but i can´t make chunks rotate neither but if it´s just the rotation i found a solution.

Chunks_rotation_2.wz4

Re: Chunks rotation?

PostPosted: Sunday, 23.September 2012, 12:15
by Skinnytorus
Well, the task is to put grass onto a large terrain (see this thread viewtopic.php?f=42&t=1124).
Yes, it's kinda obvious solution to use particles there, but particles from verts won't do for the purpose (no randomness in respect to surface placement), particles from mesh - too heavy on the FPS... so I went for the simple instancing using height maps (Debris) and was surprised the rotation didn't work properly... Maybe ikam could take a look into the code...
Thanks for the effort, anyway :).

Re: Chunks rotation?

PostPosted: Monday, 24.September 2012, 20:14
by ikam
i'll tomorrow ;)

Re: Chunks rotation?

PostPosted: Monday, 24.September 2012, 20:28
by Skinnytorus
Thanks.

Re: Chunks rotation?

PostPosted: Tuesday, 25.September 2012, 10:32
by ikam
ok. it's working if you play with tumble param in debris, but flag in chunks seems to reversed, i'll send a fix this evening

Re: Chunks rotation?

PostPosted: Tuesday, 25.September 2012, 10:45
by Skinnytorus
Wow! Thank you so much!
But I have a question yet: Can the Rotation in Chunks work on its own without the Tumble param in Debris op? I just want to know if it can be used without Debris (i.e. on mesh level). It's a pity I can not test your file till this evening, I'm just too anxious to know the details ;).

Re: Chunks rotation?

PostPosted: Tuesday, 25.September 2012, 11:36
by ikam
well it seems to work only with debris. Can you explain the use of chucks without debris, I don't see a concrte example

Re: Chunks rotation?

PostPosted: Tuesday, 25.September 2012, 14:14
by Skinnytorus
Imagine this structure:
Cube
Multiply x
Multiply z
Chunks (set on Random)
In this structure Normal para works OK (i.e. moves the chunks back and forth randomly), but Rotation - never.
I just wanted you to confirm if the Rotation is SUPPOSED to work with Debris ONLY or there is a bug in the code that prevents it from working.

Re: Chunks rotation?

PostPosted: Tuesday, 25.September 2012, 15:25
by ikam
tested your example but it does nothing...
but with debris op, normal (in chunks) influences the height displacement (from the debris texture).
Both parameters Normal and Rotation are relative to the debris texture.
Random flag alter only rotations, if it set off, you can 'normally (it's here that is reversed) enter your own rotation vector (so a fixed rotation).

Re: Chunks rotation?

PostPosted: Tuesday, 25.September 2012, 18:22
by Skinnytorus
I see. Thanks.