Yumi Murakami
DoIt!AttachTheEarOfACat!
Join date: 27 Sep 2005
Posts: 6,860
|
11-20-2006 05:07
I'm sorry for not following up sooner on this answer, as it's quite old now. Kelly Linden sent me this reply in response to my question, "What is the exact effect of the llModifyLand call?" From: Kelly Linden It will have the same effect as selecting the same brush type from the Edit window, with the specified curser size and holding down the mouse button at the prims position x,y position on the terrain for 0.2 seconds.
Thank you, but I wonder - could you please let me know the effect this has in terms of what mathematical operations are performed on the underlying array of land heights? (Or, if it's not an array, or whatever the data structure is that's used to store the land pattern?)
|
Kelly Linden
Linden Developer
Join date: 29 Mar 2004
Posts: 896
|
11-20-2006 12:19
It is an array. I am sorry I don't have more detail for you, that is precisely how the function works. There is an internal function that handles the messages from the viewer regarding land manipulation. These messages include a time delta for how long the action was done for. The lsl function calls the exact same code, with a fixed time delta of 0.2 seconds.
This code is very complex due to the many different 'brushes', different sizes and other factors - including the surrounding land (each point in the land is not independant of it's neighboring points). I'm sorry I can't break down what this function does exactly in mathematical terms for you.
_____________________
- Kelly Linden
|