[Opensim-users] osSetDynamicTextureURL
Charles Krinke
cfk at pacbell.net
Fri Jan 16 02:49:07 UTC 2009
Ok, all I had to do was ask the naive question in public and Mr. Murphy allowed me to see the answer, so I'll answer the first question myself and then go on.
I can see that a WriteLine(surfaceArgs[0].UVCoord.ToString() + surfaceArgs[0].STCoord.ToString() ) returns a percentage of the form 0.00 ... 0.99 when the prim is touched regardless of its size, so this is a really good thing.
I can also see in the ProcessObjectGrab method in Scene.PacketHandlers.cs that EventManager.TriggerObjectGrab is called with surfaceArg as one of its arguments. Chasing down TriggerObjectGrab, it appears to be coming back to handlerObjectGrab so I seem to be going around in a circle a little bit.
So, if you have the time to explain a bit about the logic flow that should occur after the call to TriggerObjectGrab that gets us closer to being able to use a script to obtain the position on a prim that the mouse is clicking, that would be wonderful.
Charles
________________________________
From: Charles Krinke <cfk at pacbell.net>
To: opensim-users at lists.berlios.de
Sent: Thursday, January 15, 2009 6:14:50 PM
Subject: Re: [Opensim-users] osSetDynamicTextureURL
Dear Stefan or Darren:
Would you mind terribly explaining a bit more, please?
I can see the ProcessObjectGrab method in Scene.PacketHandlers.cs which receives a List<> surfaceArgs. I can also see in SurfaceTouchEventArgs.cs the members Binormal, FaceIndex, Normal, Position, STCoord & UVCoord.
The first step seems to me to determine if Position, STCoord & UVCoord are entering ProcessObjectGrab with reasonable X,Y positions with a WriteLine. I am showing my naivety a bit, but perhaps we can use this to help others follow along if you could describe how to WriteLine the Position, STCoord & UVCoord (assuming these are reasonable values entering and underlying logic is probably working).
Then once we get to that point, perhaps describing in a tiny synopsis how the connection would be made up to the LSL_Api.cs.
With Respect, Charles
________________________________
From: Stefan Andersson <stefan at tribalmedia.se>
To: opensim-users at lists.berlios.de
Sent: Thursday, January 15, 2009 11:23:47 AM
Subject: Re: [Opensim-users] osSetDynamicTextureURL
Charles,
Darren tells me the functionailty was added some time ago to the OpenSim svn. OnGrabObject, OnGrabUpdate etc, have a
List<SurfaceTouchEventArgs> parameter that is the list of x,y touched.
For it to be used in LSL scripts, it just needs someone to wire up the needed functions that LL added for such things, if there is none already.
Best regards,
Stefan Andersson
Tribal Media AB
________________________________
Date: Wed, 14 Jan 2009 18:12:39 -0800
From: cfk at pacbell.net
To: opensim-users at lists.berlios.de
Subject: Re: [Opensim-users] osSetDynamicTextureURL
No problem. "Tx Oh" came up with this about a year ago and it works pretty good.
I am hoping that someone will take on the project of adding mouse position data to the C# code base some time so we can click on areas on the prim and execute hyperlinks, but that is a project in search of a zealot right now.
Charles
________________________________
From: John Sheridan <john at pseudospace.net>
To: opensim-users at lists.berlios.de
Sent: Wednesday, January 14, 2009 6:08:01 PM
Subject: Re: [Opensim-users] osSetDynamicTextureURL
I just realized that... Note to self - do not answer emails after crawling out of bed unless you've had at least five cups of highly caffeinated soda!
Thanks, :)
John / Orion Pseudo / Shamroy
Tristan wrote:
John, Charles already notified us of the one at Wright Plaza and I posted up the script. However, it will be interesting to see if you get parcel media URLs working.
On Wed, Jan 14, 2009 at 11:54 AM, John Sheridan <john at pseudospace.net> wrote:
Olli,
I've seen a prim that draws a web page over at Wright Plaza on OSGrid. I'm not sure if its still there, but I always assumed they were using a variation of the WeatherMap script. You're right though about that script, I just tried and it only works for images. Also, after trying the SL way of setting the url in the parcel all I wound up with was a black prim. I'll try to do some more puttering later tonight after I finish melting my brain while reviewing reports at work. :P
Sorry, << blushes>>
- Orion
Olli Aro wrote:
Hi Orion,
That example seems to be with images as well.
Since it looks like the dynamic texture supports only images at the moment, does anyone know how to bring HTML web content in OpenSim? Even the Second Life way whereby you set it as parcel media does not seem to work. So, is there currently no way to bring HTML in?
Regards,
Olli
________________________________
From:opensim-users-bounces at lists.berlios.de [mailto:opensim-users-bounces at lists.berlios.de] On Behalf Of John Sheridan
Sent: 13 January 2009 18:47
To: opensim-users at lists.berlios.de
Subject: Re: [Opensim-users] osSetDynamicTextureURL
In world take a look under your inventory for the OpenSim Library. There are a few example scripts in there which may help.
OpenSim Library -> Scripts Library -> OpenSim Specific Scripts -> osWeatherMap
When you open up the script it'll show as locked. Just ctrl-a ctrl-c to select all and copy, then paste it all into a new script to edit.
Thanks, :)
- Orion Pseudo/Shamroy
Tristan wrote:
I think it can only be a picture file, or some type of php that returns a picture. I could be wrong.
On Tue, Jan 13, 2009 at 8:44 AM, Olli Aro <olli_aro at yahoo.co.uk> wrote:
Hi all,
I have been trying to Google for this, but cannot find answer. Please just point me to documentation if this is an obvious question J
Does anyone know which are possible values for the content type parameter with osSetDynamicTextureURL? What I am looking for is a way to set html content as texture. I can find examples for dynamic images but not for html.
Thanks for your help in advance,
Olli
_______________________________________________
Opensim-users mailing list
Opensim-users at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opensim-users
--
"Common sense is the collection of prejudices acquired by age eighteen." - Albert Einstein
"Anyone who has never made a mistake has never tried anything new." - Albert Einstein
"If A is a success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut." - Albert Einstein
________________________________
_______________________________________________
Opensim-users mailing list
Opensim-users at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opensim-users
________________________________
_______________________________________________
Opensim-users mailing list
Opensim-users at lists.berlios.de https://lists.berlios.de/mailman/listinfo/opensim-users
_______________________________________________
Opensim-users mailing list
Opensim-users at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opensim-users
--
"Common sense is the collection of prejudices acquired by age eighteen." - Albert Einstein
"Anyone who has never made a mistake has never tried anything new." - Albert Einstein
"If A is a success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut." - Albert Einstein
________________________________
_______________________________________________
Opensim-users mailing list
Opensim-users at lists.berlios.de https://lists.berlios.de/mailman/listinfo/opensim-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20090115/8912d6d0/attachment.html>
More information about the Opensim-users
mailing list