Jump to content

dk201

Resident
  • Posts

    44
  • Joined

  • Last visited

Posts posted by dk201

  1. 51 minutes ago, Jenna Huntsman said:

    Looking at the spec for those commands, a tween parameter would definitely be useful for that. (Similar to the parameter seen in the SetSphere command set).

    (i.e. the ability to issue a single command to smoothly transition between the current and desired FoV values (for that matter, tween would be useful for all camera params, but obvs a lot of work) by issuing a single RLV command, rather than having to use a fast timer to repeatedly send commands to the viewer).

    I will try this.

    • Like 1
  2. 5 minutes ago, Coffee Pancake said:

    The intent behind these controls was repeatable photography and machinima (and if people used it to make better naughty toys, good for them). If it doesn't do what you need it to do, please do get in touch.

     

    I actually want to make a video clip with dolly zoom effect. RLV solution worked as magic with a loop to change fov as long as in a low-laggy sim.

    • Like 1
  3. 10 hours ago, Rolig Loon said:

    And, in fact, you can achieve the same result by using llSetCameraParams.  Again, take the first example function in the LSL Wiki for llSetCameraParams (https://wiki.secondlife.com/wiki/LlSetCameraParams#Examples) and built it into a script like this:

    lookAtMe( integer perms )
    {
        if ( perms & PERMISSION_CONTROL_CAMERA )
        {
            vector camPos = llGetPos() + (relCamP * llGetRot() * turnOnChair) ;
            vector camFocus = llGetPos() + (<6.0, 0.0, 2.0> * llGetRot() * turnOnChair);  // Camera focus is 6 m in front of the seat and angled up 
            llClearCameraParams(); // reset camera to default
            llSetCameraParams([
                CAMERA_ACTIVE, 1, // 1 is active, 0 is inactive
                CAMERA_FOCUS, camFocus, // region relative position
                CAMERA_FOCUS_LOCKED, TRUE, // (TRUE or FALSE)
                CAMERA_POSITION, camPos, // region relative position
                CAMERA_POSITION_LOCKED, TRUE // (TRUE or FALSE)
            ]);
        }
    }
    
    vector relCamP;
    rotation turnOnChair;
    
    default
    {
        state_entry()
        {
            llSitTarget(<0,0,0.1>,ZERO_ROTATION);
            relCamP = < 2.0, 0.0, 1.0>;   // Camera position is 2 m in front of the seat on which the av sits
            turnOnChair = ZERO_ROTATION;
        }
        
        changed (integer change)
        {
            if (change & CHANGED_LINK)
            {
                key Av = llAvatarOnSitTarget();
                if ( Av )
                {
                    llRequestPermissions(Av,PERMISSION_CONTROL_CAMERA);
                }
            }
        }
        
        run_time_permissions(integer perm)
        {
            if (perm & PERMISSION_CONTROL_CAMERA)
            {
                lookAtMe( perm);
            }
        }
    }

    Notice that in this case, I have angled the camera up a bit by adjusting the Z parameter in the vector controlling the camera's focus.  

    Appreciated! I will do some test. My avatar is not sit on an object, but this will be a good solution! Why dont i just sit on something transparent and adjust camera!? It would be much easier! Thanks a lot

    • Like 1
  4. Hi SL residents, I am trying to write a script allow me to make dolly zoom effect (https://en.wikipedia.org/wiki/Dolly_zoom) in SL. However, I met 2 questions:

    1) I can not force camera to be in front of my avatar. (which i believe is a know issue with LSL, correct me  if i am wrong)

    2) I can not adjust camera view angle via LSL scripts.

    Those i can do a screen record and create dolly zoom effect in video editing software, however I will loose some video quality and i would like to avoid that.

    Anyone has advice?

  5. Hi All, I am working on my bento tail. I find some bento tails on MP that will not adjust length when you change your avi height. I wanna my bento tail to be fixed length regardless of my avi height. Does anyone know how to do that? I am using blender 2.79c with avastar 2.40.

     

    Thanks in advance

  6. Thanks a lot! A lot of useful info

    23 hours ago, ellestones said:

    on 1).  Blocking and/or changing text is a viewer client side function. There is no way to do this with the LL standard viewer.  So it requires a RLV/RLVa enabled viewer or your own custom -built viewer coded for this purpose

    on 2). A script in a rezzed object that is running prior to placement on a no-script parcel within 70 meters of the ground/terrain level, will continue to run provided that the script does not change state. Any script will run normally on a no-script parcel, when placed 70 meters above the terrain level

    for a HUD script to continue running on a no-script parcel then the script needs to have taken controls permission: http://wiki.secondlife.com/wiki/LlTakeControls

       * is about 70 meters above the terrain - about the same distance that banlines operate up to

     

    22 hours ago, Lucia Nightfire said:

    50 meters above no-script parcel terrain is where non-controls based scripts start working

    75 meters above terrain is where no public access / buy pass lines end

    5000 meters above terrain is where explicit banlines end

     

    • Like 1
  7. Hi All, I am writing a piece of script for a hud and an vendor. There is a small function that i want to implement and it is described as follow:

    1) When HUD is attached, the avi cannot chat in public chat channel. I want to either replace his typing content with "XXXXX" or simply dont allow typing content to show in public chat. I can do this with RLV, but I am looking for a way to do it without RLV.

    2) For those no-script area, is there a way to set-up an object with vendor script? I know CasperVend works even in a no-script sim, I just wonder how that happens.

    Thanks in advance,

    -DK

  8. 6 minutes ago, Innula Zenovka said:

    I think the wiki must be wrong there -- I've never heard of llGiveInventory being used to give things to group members before.    I could be mistaken but if it works, it's news to me.

    The only way I know to do it would be to feed the UUIDs to an in-world object and give the items one-by-one, as you suggest.   There's no need to use an out-of-world server, though -- if you have a list of uuids or names you could do it all in-world by having the script read them from a notecard.   Alternatively, you could investigate whether you could use a bot (scripted agent) to give the items using the viewer -- I don't know much about bots, but I think I've seen adverts for ones that can do that.

    However, I think Lucia Nightfire's suggestion of just attaching the object to a group notice is simplest -- why not do it that way?

    Wiki is very likely wrong on group giver for llGiveInventory. 

    I will try some bot script and I get an out-world server anyway, I guess i can do a server based giver as well.

    Attaching the object to a group notice can not do scheduled delivery. I would like to do scheduled delivery.

  9. 12 hours ago, Innula Zenovka said:

    You can use llGiveInventory to give items to avatars (or to objects in the same region).     A group isn't an avatar, though, which is why your script isn't working, and there's no way I know to use LSL to get a list of group members.

    Either you're somehow going to have to compile a list of group members yourself, maybe by asking all group members to touch an object that then records their uuid (similar to the store subscribeomatics you mention) and then loop through it giving the item to each member individually , or use a bot to give out the objects, which I think some bots can do.

    According to llGiveInventory howto page (http://wiki.secondlife.com/wiki/LlGiveInventory), destination parameter can be a group uuid. However, it is not true. At least in my case, it does not work. I guess if i want to do a delivery to all group member, i can only use an out-world server to feed a sim object with all group members' uuid and send one by one?

  10. Hi All,

    I recently work on a game system. In this game system, I would like to send items to all players in different grid. I would like to design this behavior just like those notecards of new releases sent by store owner. So, i created an object in sim and  i throw following code:

    llGiveInventory(GROUP_UUID. "some item name");

    However, this llGiveInventory() does not work at all. I do know that llGiveInventory() have throttle of about 2000, and i expect my group has less than 2000 members. Any clue why llGiveInventory() fails? If this is not a good way to send items to everyone in a large group, is there a recommended way to do so?

     

    Thanks,

     

    -dk 

  11. Hi All, I just have a silly question about ANS. I set up my ANS server on a vps but i don't have a domain. My original plan is to let my marketplace to report to my ANS server via a url like http://11.33.22.44:5555/ans

    However, I cannot save this url on Automatic Notifications (ANS) page under my merchant account, the error message is: The URL you're trying to use apears to be invalid

    Do i need a domain to replace my server ip to make ANS feature work? Or maybe i can use google form as instead of a dedicate ANS server?

    Thanks in advance for help,

     

    -DK

  12. Hi All, I just have a silly question about ANS. I set up my ANS server on a vps but i don't have a domain. My original plan is to let my marketplace to report to my ANS server via a url like http://11.33.22.44:5555/ans

    However, I cannot save this url on Automatic Notifications (ANS) page under my merchant account, the error message is: The URL you're trying to use apears to be invalid

    Do i need a domain to replace my server ip to make ANS feature work? Or maybe i can use google form as instead of a dedicate ANS server?

    Thanks in advance for help,

     

    -DK

     

  13. On 6/3/2017 at 9:51 PM, Innula Zenovka said:

    You can't trigger that with a touch event (or anything else).   All you can do is have the object say the viewer uri link, in public chat or an IM, and ask the avatar to click it.

    If you want to transform people into bunnies (or anything else) then you need to use RLV, which isn't part of the official viewer.   Doing transformations with RLV is also rather more complex than simply having the victim click a link.

    Thanks for your answer.

  14. I know this viewer URI link has been passed around for a while: secondlife:///app/wear_folder/?folder_id=bedd047e-a3d7-23e6-57bc-1ef367d848e7

    Here is my question, is there a way to use lsl trigger this link? For example, when ppl click an object, i want this viewer URI is clicked as well. Thanks for help.

  15. Thanks everyone. I have following code to detect click normal and then figure out rotation before item rez. Works pretty good for me.

    vector clickPos = llDetectedTouchPos(0);vector normal = llDetectedTouchNormal(0);            rotation rot = llRotBetween(<0, 0, 1>, normal);string itemName = "voodoonail";llRezObject(itemName, clickPos, ZERO_VECTOR, rot, 0);
  16. Greetings everyone,

    I am working on a voodoo doll and need some help on rotation. The idea is that when you click the doll, the doll will rez an nail at the touch position. However my issue is that the nail is always rezzed with same rotation. I tried to play with rotation to make nails rezzed according to its relative position to the doll. but i never got good result. Anyone can help me to understand rotation in SL a little bit more? thanks,

     

     

  17. Hello everyone,

    I am looking for a way to check if my avi has rez permission on a random land/parcel. Especially, I want to check whether the avi can rez item on a land/parcel if a right group tag is activated.

    So far i tried llGetParcelFlags(). However, this function only give me info about parcel itself. If my avi is in a group that allow to rez on this land, this function will not know my avi is able to rez. And if my avi is the owner of this land, this function fails too.

    Is there a good way to check if an avi can rez on a land so that my rez can automatically happen when it is allowed.

    Thanks for advice,

     

     

×
×
  • Create New...