|
|
LE: accessing avatar Matrices for translation and rotation
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.
LE: accessing avatar Matrices for translation and rotation // Archive: Tech Forum
Post by Délé // Aug 17, 2007, 7:49am
|
Délé
Total Posts: 1374
|
Oh wait! Perhaps we could disengage FPN mode and then take control of the Avatar. I'll give that a go. :) |
Post by frootee // Aug 17, 2007, 7:51am
|
frootee
Total Posts: 2667
|
Hack Hack Hack!!! |
Post by Délé // Aug 17, 2007, 7:55am
|
Délé
Total Posts: 1374
|
WOOOHOOOO...it worked! :D :banana:
In the scene attached, if you walk into the trigger it will transport you to coordinates 5, 5, 5, and drops you. This is definitely proof of concept. Now it's just a simple matter of writing the script to take control of avatar. That shouldn't be hard.
I'll write a proper Teleport trigger that you can make adjustments to and such and upload it in the Garage. Then I'll get to work on locking the avatar to a matrix. Should be downhill from here. :) |
Post by frootee // Aug 17, 2007, 7:58am
|
frootee
Total Posts: 2667
|
TOUCHDOWN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!1
Dele is the first person in the Sciptors Hall Of Fame!!!
Applause....
Excellent work Dele. Thanks man. Teamwork! Yeah! |
Post by 3dvisuals dude // Aug 17, 2007, 8:04am
|
3dvisuals dude
Total Posts: 1703
|
Tested and confirmed Dele...
but... maybe it's a case of the nature of the proximity trigger not being able to interrupt the steady stream of visual input while the avatar is in FPN?
Follow me? |
Post by 3dvisuals dude // Aug 17, 2007, 8:10am
|
3dvisuals dude
Total Posts: 1703
|
WOOOHOOOO...it worked! :D :banana:
In the scene attached, if you walk into the trigger it will transport you to coordinates 5, 5, 5, and drops you. This is definitely proof of concept. Now it's just a simple matter of writing the script to take control of avatar. That shouldn't be hard.
I'll write a proper Teleport trigger that you can make adjustments to and such and upload it in the Garage. Then I'll get to work on locking the avatar to a matrix. Should be downhill from here. :)
WAY TO GO Délé !!!!!!!!!
http://www.planetsmilies.com/smilies/party/party0038.gif
http://bestsmileys.com/signs10/20.gif
Yeeeehaaaaah!!!! |
Post by 3dvisuals dude // Aug 17, 2007, 8:22am
|
3dvisuals dude
Total Posts: 1703
|
TOUCHDOWN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!1
Dele is the first person in the Sciptors Hall Of Fame!!!
Applause....
Excellent work Dele. Thanks man. Teamwork! Yeah!
OK, now....
I figure a few commemorative statues are in order here....
( Can't wait to hear the acceptance speech... :p )
Délé, for being utterly brilliant,
You, for being determined and tenacious and similarly brilliant,
Tomas, for caring and also being absolutely brilliant,
Norm, for caring, being brilliant, and bringing the right minds together here on this,
...as for me, I get to sweep up after all the pigeons.:p |
Post by frootee // Aug 17, 2007, 8:29am
|
frootee
Total Posts: 2667
|
well thanks 3dv. .. :)
I think this is a testament to what we can accomplish if we just work together as a community. :)
Froo |
Post by 3dvisuals dude // Aug 17, 2007, 8:37am
|
3dvisuals dude
Total Posts: 1703
|
To me it calls to mind three words...
Never say never!
;)
EDIT: For those of you who may be reading this thread with no idea what the significance of this discovery is, just read the following post here for a glimpse of what this can now lead to:
http://forums1.caligari.com/truespace/showpost.php?p=44316&postcount=1 (http://forums1.caligari.com/truespace/showpost.php?p=44316&postcount=1) |
Post by Délé // Aug 17, 2007, 9:01am
|
Délé
Total Posts: 1374
|
Definitely a community effort here. :)
I have a teleportation trigger made already. I inadvertently discovered something interesting with it too. I will make a short video to demonstrate it's use and upload it this afternoon. Then locking to a matrix is the next endeavor. :) |
Post by 3dvisuals dude // Aug 17, 2007, 9:10am
|
3dvisuals dude
Total Posts: 1703
|
Definitely a community effort here. :)
I have a teleportation trigger made already. I inadvertently discovered something interesting with it too. I will make a short video to demonstrate it's use and upload it this afternoon. Then locking to a matrix is the next endeavor. :)
Awesome. Thanks for all of this Délé, and for believing in the fact that these things could even be possible.
- 3dvisuals dude |
Post by frootee // Aug 17, 2007, 9:11am
|
frootee
Total Posts: 2667
|
Damn you're fast Dele!
Maybe you should change your name to Flash :p
Froo |
Post by 3dvisuals dude // Aug 17, 2007, 9:20am
|
3dvisuals dude
Total Posts: 1703
|
Damn you're fast Dele!
Maybe you should change your name to Flash :p
Froo
Looks like you certainly started something here Frootee, this thread already has 243 views in 13 hours, just give it a week! Hahahaha!!!
Yeah... "Flash" sounds good... saves me a ton of copy & paste moves to get his name right, for sure!:p
Hahahaha...
Well, for what it's worth, I'm sure if you weren't at work right now and had trueSpace7.51 in front of you, you would have cracked this puppy yourself too. Looks like "Flash" beat you to it is all, maybe another good reason for the name to stick?:p |
Post by frootee // Aug 17, 2007, 9:26am
|
frootee
Total Posts: 2667
|
well I think one thing that's important is that we pulled our collective heads together and approached a very difficult problem from several different points of view, and came up with a solution. That's what Integrated Team Support is all about. Hopefully this problem we've approached like this will inspire others to do the same, if they are not doing that already!
I can't wait to see what Dele has discovered.
Froo |
Post by 3dvisuals dude // Aug 17, 2007, 9:42am
|
3dvisuals dude
Total Posts: 1703
|
well I think one thing that's important is that we pulled our collective heads together and approached a very difficult problem from several different points of view, and came up with a solution. That's what Integrated Team Support is all about. Hopefully this problem we've approached like this will inspire others to do the same, if they are not doing that already!
I can't wait to see what Dele has discovered.
Froo
I definitely agree with all that you said there.
I was struggling weeks ago with this in the Open Elevator Project thread and had an idea what was necessary but no idea how to hook it up in the LE, you jumped in to help me find a way to do all of this in the LE and for the sake of the community, "Flash" jumped in for the same reasons and he too got heavily involved, Tomas jumped in to set us all in exactly the right direction, Norm saw us struggling and got the additional specific details we still needed... oh yeah... it was a team effort for sure.
The vital thing to me now is what this will all mean for everyone, and that, at least, I understood all along.;)
This will make all manner of yesterday's impossibilities tomorrow's inevitabilities in shared space and immersive scene development. For that I am deeply indebted to all who took part in this, and frankly especially to you Frootee... because one man with a wild idea is perceived as crazy, whereas two with that same idea rapidly become contageous.;)
Thank you.
- 3dvisuals dude |
Post by Norm // Aug 17, 2007, 9:54am
|
Norm
Total Posts: 862
|
This will make all manner of yesterday's impossibilities tomorrow's inevitabilities in shared space and immersive scene development. For that I am deeply indebted to all who took part in this, and frankly especially to you Frootee... because one man with a wild idea is perceived as crazy, whereas two with that same idea rapidly become contageous.;)
Thank you.
- 3dvisuals dude
Now we are cookin with propane! |
Post by frootee // Aug 17, 2007, 9:56am
|
frootee
Total Posts: 2667
|
LOL!
Well thanks for your help too Norm! I think this will fit nicely into the Rube Goldberg efforts too.
Froo |
Post by 3dvisuals dude // Aug 17, 2007, 10:13am
|
3dvisuals dude
Total Posts: 1703
|
Now we are cookin with propane!
Thanks for everything here Norm, your dedication to steering all of us in the right directions here together was an absolutely vital ingredient in this achievement, and the effect on the community which this will have is going to be absolutely great for us all because of that.
If anyone out there thought the power of the LE, Scripting, and focused teamwork combined had any limits... they soon won't, just watch!:D
Thanks again for all your help, and please... give Tomas a beer for me!
- 3dvisuals dude |
Post by Norm // Aug 17, 2007, 10:33am
|
Norm
Total Posts: 862
|
Thanks folks :)
I am confident once you get this one off the ground more will follow. The scripting and LE in trueSpace is very powerful and is really a pleasure to see you folks teaming up to figure some of it out. |
Post by tomasb // Aug 17, 2007, 10:50am
|
tomasb
Total Posts: 261
|
OK, now....
I figure a few commemorative statues are in order here....
( Can't wait to hear the acceptance speech... :p )
Délé, for being utterly brilliant,
You, for being determined and tenacious and similarly brilliant,
Tomas, for caring and also being absolutely brilliant,
Norm, for caring, being brilliant, and bringing the right minds together here on this,
...as for me, I get to sweep up after all the pigeons.:p
i think i should show up here more frequently ;)
:banana: :banana: :banana: :banana:
next recommended steps :D
step1: add "health" connector to avatar
step2: create ammunition obj with trigger inside which will cause that avatar's health do decrease. if < 0, teleport to hell (red box with inversed normals at 1000,1000,1000. delete ammunition obj.
step3: create weapon which when detects fire is pressed copies and activates ammo...
spte4: have fun |
Post by frootee // Aug 17, 2007, 10:54am
|
frootee
Total Posts: 2667
|
Yes By All Means Please Come By More Often! We need truespace-tech savvy people! We will have lots more questions for you regarding coding, rest assured!
Scripting Totally Rocks (I'm a software engineer by day... )
Froo |
Post by 3dvisuals dude // Aug 17, 2007, 10:57am
|
3dvisuals dude
Total Posts: 1703
|
i think i should show up here more frequently ;)
:banana: :banana: :banana: :banana:
next recommended steps :D
step1: add "health" connector to avatar
step2: create ammunition obj with trigger inside which will cause that avatar's health do decrease. if < 0, teleport to hell (red box with inversed normals at 1000,1000,1000. delete ammunition obj.
step3: create weapon which when detects fire is pressed copies and activates ammo...
spte4: have fun
Thank you so much Tomas... you really made this all possible!
Now I think I better make a very good helmet and a DX9 kevlar suit!!!:D
I promise you this Tomas, thanks to you helping us with all this we will ALL definitely be having lots of fun now!!!:D
(Remind Norm he owes you a beer now;) )
Thanks!!!
- 3dvisuals dude |
Post by Délé // Aug 17, 2007, 2:47pm
|
Délé
Total Posts: 1374
|
I got an Avatar Lock Trigger working. I was a little disappointed to find that there still was some jerkyness. The ride is smoother, but the object the Avatar is attached to visually stutters a bit. You could lock it to an invisible object though and it would appear smooth. So it's still good I think.
Also, we can lock Avatars to really fast moving and/or rotating objects. I was on a REALLY fast merry-go-round a little while ago, lol. Still dizzy.
I'll probably upload that trigger tomorrow with a short video. |
Post by 3dvisuals dude // Aug 17, 2007, 2:53pm
|
3dvisuals dude
Total Posts: 1703
|
I got an Avatar Lock Trigger working. I was a little disappointed to find that there still was some jerkyness. The ride is smoother, but the object the Avatar is attached to visually stutters a bit. You could lock it to an invisible object though and it would appear smooth. So it's still good I think.
Also, we can lock Avatars to really fast moving and/or rotating objects. I was on a REALLY fast merry-go-round a little while ago, lol. Still dizzy.
I'll probably upload that trigger tomorrow with a short video.
Hahahaha!!! I'm glad you're having a blast with this, I'm sure everyone that starts playing with this codebase now is gonna be making some really wild stuff!!!
Great news! Don't get too dizzy their buddy - we need you!:D
Hahaha!!!
- 3dvisuals dude |
Post by Délé // Aug 18, 2007, 2:13pm
|
Délé
Total Posts: 1374
|
Well guys, I've had marginal success with picking up and holding objects. I found a way to do it but it is a CPU hog and the object is really jerky when you're holding it.
I tried using a Jscript object first because then it would compute any changes in the Avatar immediately. Unfortunately, I kept getting an error message saying that one of the lines of code is an invalid procedure. The code does work in a Jscript command though so I don't know why it's giving that error.
In other words, it won't let me read the Avatar location and put those coordinates into a matrix with the Jscript object, so I had to use a Jscript Command. In order to get the Jscript Command to update to the changing Avatar coordinates, I had to use a timer to trigger the script over and over.
So, I'm not sure how picking up and holding objects could work. We would need a better way. Perhaps Tomas could point us in the right direction again? :)
Anyway, here is the scene file of what I did get to kind of work. If you click on the gun, you'll pick it up. Then you can go into FPN mode and run around. Then to drop the gun, go out of FPN and click on it again. You may need to go back into FPN mode to move away from the gun to get at the view widget again.
If anyone has any other ideas of how to go about this, please do let me know. :) |
Post by 3dvisuals dude // Aug 18, 2007, 2:28pm
|
3dvisuals dude
Total Posts: 1703
|
Wow!
This is a cool idea for sure!
I wonder if there may be a kind of hybrid alternative approach with might avoid some of the inherent difficulties in this function. Maybe if there's some way to utilize part of this jscript with trueBlue's Object Manipulator code. His approach is with hotkeys so perhaps if that approach is adaptable to this it may at least avoid the issue of jumping out of FPN to drop the gun? I have no idea of course... just trying to help!:o
Here's that link if it may be helpful:
http://forums1.caligari.com/truespace/showpost.php?p=22397&postcount=1
Hopefully tomasb will come to our rescue again, he's becoming a Star here now!:)
Amazing the possibilities all this stuff brings to mind!
Thanx for trying all these things, I just wish I could be of some help!:o
- 3dvisuals dude |
Post by trueBlue // Aug 18, 2007, 2:36pm
|
trueBlue
Total Posts: 1761
|
Have not looked what you have yet. Small secret revealed by Norm suggest accessing the cam which has RDMatrix. Do not forget you can use the FPN Use key = P too. |
Post by Délé // Aug 18, 2007, 2:55pm
|
Délé
Total Posts: 1374
|
Do not forget you can use the FPN Use key = P too.
Ah, P = Use. I saw that use trigger in the library, but I couldn't for the life of me figure out how to "use". Thanks trueBlue. Now I can make use of those "use" triggers. :)
So with that I should be able to make it pick up the object without having to go out of FPN. The jerkyness problem would still be there though. Still gotta figure out something for that. |
Post by trueBlue // Aug 18, 2007, 4:14pm
|
trueBlue
Total Posts: 1761
|
Dang Flash you are so dang fast I do not have a chance to keep up with you. :)
You do know that the the Triggers in the Library are just examples, right?
They are Spheres with a Trigger hooked up inside of them. If you go inside the Sphere objects you will see the Trigger and within that is a Combo Ctrl that you can change to Distance or Usage. You could in fact hook that Trigger to any object. Have not tested it yet but maybe the jerkiness is because the Avatar is on top of Sphere sliding down or colliding.
Edit: Maybe two Triggers would work. One with Distance and other with Usage. |
Post by Délé // Aug 19, 2007, 3:43am
|
Délé
Total Posts: 1374
|
You do know that the the Triggers in the Library are just examples, right?
They are Spheres with a Trigger hooked up inside of them. If you go inside the Sphere objects you will see the Trigger and within that is a Combo Ctrl that you can change to Distance or Usage. You could in fact hook that Trigger to any object. Have not tested it yet but maybe the jerkiness is because the Avatar is on top of Sphere sliding down or colliding.
Yeah, I had caught that. I just figured the sphere was a good all purpose trigger. I did notice that dropdown menu too. I just couldn't figure out what "use" meant. Thanks trueBlue. :)
Yeah you're right, two triggers should work. One distance trigger so that you pick up the object when you get near, and the use trigger for when you want to drop it.
I think the jerkiness in the "hold object" scenario here is due to the way I went about it. I have a timer that goes off and triggers the script which keeps the object connected to the avatar. It also shoots my CPU up to around 97%, so another method is definitely needed. I couldn't get it to work with a jscript object so I had to use a jscript command and a timer.
I just got an idea that I think will work better. I'm going to try it today. |
|