Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AV]prop attachment orientation problem #74

Closed
dale59911 opened this issue Jan 25, 2018 · 10 comments
Closed

[AV]prop attachment orientation problem #74

dale59911 opened this issue Jan 25, 2018 · 10 comments

Comments

@dale59911
Copy link

I have having an issue with the latest OpenSim version. When using a prop with an animated pose, the prop attaches to the correct point but not in the saved rotated. When I attach this prop directly from my inventory, it attaches correctly, ie the correct point and the saved orientation. I know that second life and I assume the OpenSim is the repository for orientation of attached objects. When I use the SL version, in SL, everything works correctly so I don't think I am doing anything procedurally incorrect. Please let me know what relevant information you need.

@Sei-Lisa
Copy link
Member

Sei-Lisa commented Jan 25, 2018

I can reproduce this problem. When any script (AVprop in this case) rezzes the prop, the attachment position is preserved, but the rotation is lost. This is an OpenSim problem. I suggest you file it with OpenSim. http://opensimulator.org/mantis/

Easily reproducible like this:

  • Create a torus.
  • Attach it to your hand.
  • Adjust it so it looks like a bracelet. This requires a 90° rotation, scaling and some movement.
  • Detach it, and put it inside another object.
  • Put the following script inside: default{touch_start(integer n){llRezObject(llGetInventoryName(INVENTORY_OBJECT,0),llGetPos()+<0,0,1>,<0,0,0>,<0,0,0,1>,1);}}
  • Touch the object. The torus will be rezzed.
  • Take the new torus.
  • Attach it. Observe the position is right, but the rotation is wrong.
  • Take the torus from the object inventory and attach it. Observe the position and the rotation are both right, meaning that it's llRezObject that broke it.

Changing llRezObject to llRezAtRoot does not alter the outcome.

Happens in Kitely grid as well (OpenSim version 0.8.2.1 Post_Fixes)

@Sei-Lisa
Copy link
Member

Sei-Lisa commented Jan 25, 2018

As a workaround, you can include a script like this:

default
{
    attach(key id)
    {
        if (id != NULL_KEY) llSetLocalRot(llEuler2Rot(DEG_TO_RAD*<10,20,30>));
    }
}

but changing <10,20,30> to the rotation of the attachment.

Note: I've edited the previous post to fix a mistake I made in the script, to make the steps more accurate, and to add extra information.

@dale59911
Copy link
Author

Thank you for taking a look at this. I will file this with OpenSim. Do you mind if I include you analysis when I do so?

@Sei-Lisa
Copy link
Member

No problem, feel free to include my (revised) analysis.

@dale59911
Copy link
Author

dale59911 commented Feb 12, 2018 via email

@Sei-Lisa
Copy link
Member

Would this script be placed in the content folder of the object I am trying to rezz with avsitter?

Yes, that's it. The script sets a new rotation immediately after attach, so that it overrides the default rotation. Remember that for it to work, you need to enter the rotation of the attachment in place of <10,20,30>.

Thanks for all your help on this….The person that set up our grid in OpenSim is sending this through the OpenSim help desk in an effort to get this corrected.

I'd appreciate a link to the issue in case it's public. I've been monitoring the OpenSim Mantis bug tracker http://opensimulator.org/mantis/my_view_page.php but nothing showed up.

@dale59911
Copy link
Author

dale59911 commented Feb 12, 2018 via email

@dale59911
Copy link
Author

dale59911 commented Feb 12, 2018 via email

@Sei-Lisa
Copy link
Member

Sei-Lisa commented Sep 7, 2018

I've reported this myself as Mantis bug 8364.

http://opensimulator.org/mantis/view.php?id=8364

Note the workaround script in this thread was wrong, causing errors sometimes when the props are detached. I've updated it and now it shouldn't give errors.

@typhartez
Copy link

I know this issue has been closed a long time ago, but as nothing moves on OpenSim side, I made a project to provide a workaround. That could help someone needing a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants