|
|
Statuses in trueplaces
About Truespace Archives
These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.
They are retained here for archive purposes only.
Statuses in trueplaces // Roundtable
Post by robert // Sep 11, 2008, 2:46pm
|
robert
Total Posts: 609
|
I was looking at the open MSN messenger window while listening to music and saw how it displayed the song info, I was wondering if it would be possible to implement a system where one can have a status, as it were, that is a text display and it sits on top of the persons avatar, or below.
I know somewhat how to implement such a system, although not entirely certain. For the music this (http://brandon.fuller.name/archives/hacks/nowplaying/wmp/) plug in outputs data about currently playing music to a .xml file which could be loaded in and have certain fields outputted to text which is centered above or below an avatar.
Just a little thing I would like to see to personalize avatar's and let us know how much someone is paying attention.;)
[EDIT]Also I was wondering if anyone had any good resources to learn scripting, I have the Developers Guide |
Post by frootee // Sep 11, 2008, 5:18pm
|
frootee
Total Posts: 2667
|
Hi Robert. Check this out for scripting. Dele also has made some cool stuff. There are lots of script examples scattered throughout the forums here. There are also the Tue. night scriptor meetings, a great place to ask questions.
http://truesourceshop.com/agoracart55/agora.cgi?cart_id=4999214.21283&product=Tutorials&user4=Scripting&xm=on
Oh... you mentioned having data for the avatar. Trueblue made some neat stuff for shared space which can be modified and attached to the avatar. He has a trigger which gets the avatar's name and displays the name. Very cool stuff indeed!
Froo |
Post by robert // Sep 11, 2008, 5:18pm
|
robert
Total Posts: 609
|
Thanks Frootee!
I attended the meeting earlier this week where we were trying to figure out how to get objects to follow a person, that's where I got the idea from. |
Post by frootee // Sep 11, 2008, 5:19pm
|
frootee
Total Posts: 2667
|
Cool! I haven't been in quite some time; been busy with beta testing and a plugin project and life in general. But yeah, it's really good to get an answer instantly by asking someone 'who's been there'. :) |
Post by robert // Sep 11, 2008, 5:21pm
|
robert
Total Posts: 609
|
Yeah, I'm intrigued by Délé's plan for avatars to pick up objects and such, wonder what he'll come up with between now and this coming tuesday.;) |
Post by frootee // Sep 11, 2008, 5:23pm
|
frootee
Total Posts: 2667
|
let's see... get objects to follow a person you say?
Check out the Shark object in 7.6. Professor Kaos did that. It implements basic target tracking. The script is there in 7.6 too, free. :banana:
for attaching an object like text to an avatar, you can use the avatar's output matrix as an input to the text object's Owner Matrix. That way, the text is attached to the avatar. That may work. |
Post by robert // Sep 11, 2008, 5:25pm
|
robert
Total Posts: 609
|
The only thing I noticed is that the text's matrix zero point is at the top left corner of the object, so centering text will require collecting data on size of object and then positioning it relative to the avatar. Just not sure how to get the .xml file with the data in, I remember seeing an example with a .txt file being used.
[EDIT] Would be kinda interesting to see the text follow someone around like the shark though, then it wouldn't need analysis of the actual text object. |
Post by frootee // Sep 11, 2008, 5:31pm
|
frootee
Total Posts: 2667
|
sounds like an interesting project! I'm looking forward to seeing it progress Robert.
talk to you soon!
EDIT: If you have any questions I'll help where I can; kinda wiped out at the moment...
Froo |
Post by robert // Oct 1, 2008, 3:49pm
|
robert
Total Posts: 609
|
Have tried things and can't find a good free program to get the currently playing song data in order for me to test this. I kinda know how I would do it as one demo I tried had the xml files written in html or jscript or something of the sort and it already had some variable assigned. In theory all I would need to do is periodically reload the file, possibly every few seconds or so, and grab the variables from it which will then be used for the text. It could even be done where people select what info they want following them. Then obtain the character location data and whenever the character moves update coords.
I get how to implement it, but I can't really test this at the moment. If someone else wants to pick this up feel free, although I don't really think too many people would actually take advantage of this if it did become available. |
|