[sldev] Re: New Sculpty Features
Karl Stiefvater
qarl at lindenlab.com
Sun Jul 13 14:16:45 PDT 2008
it depends on what end-result you're trying to achieve.
if you just want the prim to have the same visual appearance as if the
y and z channels were swapped, you can achieve the same thing turning
on MIRROR and rotating the prim 90 degrees.
the reasoning for these two new flags is that they give a substantial
advantage. MIRROR gives you (without the need of a second map) a
symmetric shape (e.g. shoes.) INVERT will give you a backside to
your planar sculpts. in both cases - the number of necessary sculpt
maps is reduced.
offhand, i don't see the advantage of swapping two channels. couldn't
you just re-generate the sculpt map?
K.
On Jul 13, 2008, at 1:00 PM, Darien Caldwell wrote:
> As long as work is being done of this nature, could we get flags to
> rotate maps too?
>
> For instance I have maps where I would flip it around so the Y
> coordinates of the map alter the Z coordiates of the prim, and vice
> versa (in this case the X coordiates would stay the same). Or is there
> some simple thing that would allow this that I'm missing?
>
> On 7/13/08, Strife Onizuka <blindwanderer at gmail.com> wrote:
>> The way things appear in featurettes-5, until these changes hit an
>> official release, using either PRIM_SCULPT_FLAG_INVERT or
>> PRIM_SCULPT_FLAG_MIRROR (or the associated checkboxes in the build
>> tools) will result in the prims being rendered as
>> PRIM_SCULPT_TYPE_PLANE
>>
>> On Sun, Jul 13, 2008 at 2:50 PM, Soft <soft at lindenlab.com> wrote:
>>> Do scripters need to wait for some minimal viewer version to be
>>> required before assuming they can use this and have everyone see the
>>> same result?
>>>
>>> On Sun, Jul 13, 2008 at 1:21 PM, Karl Stiefvater
>>> <qarl at lindenlab.com>
>>> wrote:
>>>> exactly so, Strife - the new flags are ORed (or added, i s'pose)
>>>> the the
>>>> existing type field.
>>>>
>>>> MIRROR mirrors along the x-axis, while INVERT flips the direction
>>>> of the
>>>> surface (normals).
>>>>
>>>>
>>>> K.
>>>>
>>>> On Jul 13, 2008, at 8:19 AM, Strife Onizuka wrote:
>>>>
>>>>> Hey I just saw the featurettes-5 check in on the public SVN,
>>>>> http://svn.secondlife.com/trac/linden/changeset/758?new_path=%2F
>>>>> I was wondering, could we get an LSL example for
>>>>> PRIM_SCULPT_TYPE_MASK, PRIM_SCULPT_FLAG_INVERT &
>>>>> PRIM_SCULPT_FLAG_MIRROR? I have an idea about what the usage is
>>>>> but I
>>>>> want to make sure.
>>>>>
>>>>> llSetPrimitiveParams([
>>>>> PRIM_TYPE, PRIM_TYPE_SCULPT, "texture",
>>>>> PRIM_SCULPT_TYPE_SPHERE | PRIM_SCULPT_FLAG_INVERT |
>>>>> PRIM_SCULPT_FLAG_MIRROR
>>>>> ])
>>>>>
>>>>> llSetPrimitiveParams([
>>>>> PRIM_TYPE, PRIM_TYPE_SCULPT, "texture",
>>>>> PRIM_SCULPT_TYPE_SPHERE | PRIM_SCULPT_FLAG_INVERT
>>>>> ])
>>>>>
>>>>> llSetPrimitiveParams([
>>>>> PRIM_TYPE, PRIM_TYPE_SCULPT, "texture",
>>>>> PRIM_SCULPT_TYPE_SPHERE | PRIM_SCULPT_FLAG_MIRROR
>>>>> ])
>>>>
>>>> _______________________________________________
>>>> Policies and (un)subscribe information available here:
>>>> http://wiki.secondlife.com/wiki/SLDev
>>>> Please read the policies before posting to keep unmoderated posting
>>>> privileges
>>>>
>>>
>> _______________________________________________
>> Policies and (un)subscribe information available here:
>> http://wiki.secondlife.com/wiki/SLDev
>> Please read the policies before posting to keep unmoderated posting
>> privileges
>>
More information about the SLDev
mailing list