|
truePlay Doors
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.
truePlay Doors // The Garage
Post by Délé // Aug 12, 2007, 12:41pm
Délé
Total Posts: 1374
|
Well, I finally figured out how to use the distance trigger to activate scripts and timers. So now I can create scripts that are interactive with avatars. The first objects here are doors for your truePlay scenes. You can swap out the doors that are already attached with your own door models.
I purchased a copy of Camtasia for a flash project that I'm working on, so now instead of having pages of text and images, I can just upload a quick video to demonstrate my scripts. The video isn't the best quality, but it should be good enough to get you up and running.
There are four door triggers in the attached example scene. Just save them to your library for use in your own scenes.
Edit: Sorry, I just realized that there was a small glitch in one of the scripts. I've re-uploaded the scene with fixes. New scene with fixed scripts attached below
Edit2: I fixed a glitch that would make the doors break if you had the speed set too high. Now you can set the doors to whatever speed you desire without the scripts breaking. They should be solid now. I also added a button at the bottom that says "Update Changes". Whenever you make changes to the start or end angle, click this button so the script can execute once to update itself. :) |
Post by Délé // Aug 12, 2007, 1:01pm
Délé
Total Posts: 1374
|
I should probably also mention that you should use the model side axis tool to set the axis for your doors where you want them to pivot. If you use the workspace axis tool, it won't work with the LE and thus won't work for these scripts. |
Post by nowherebrain // Aug 12, 2007, 1:43pm
nowherebrain
Total Posts: 1062
|
Of course not, why would it? |
Post by Burnart // Aug 12, 2007, 2:27pm
Burnart
Total Posts: 839
|
Of course not, why would it?
Ha ha - I hear you!
Thanks Dele. |
Post by Délé // Aug 12, 2007, 2:49pm
Délé
Total Posts: 1374
|
Yes, there are definitely some quirks in the workspace side that I hope get fixed in 7.6. |
Post by Délé // Aug 12, 2007, 2:54pm
Délé
Total Posts: 1374
|
Ok, something screwy is going on. I fixed the doors in the scene, walked through each one to make sure it was working. Then I saved the file, exported it, and uploaded it here. Now when I reopen the file both swing doors are not working. What the heck?
Can anybody tell me if all of the doors are working in the scene that you downloaded?
Thanks |
Post by Délé // Aug 12, 2007, 3:04pm
Délé
Total Posts: 1374
|
Scratch that. I found a little glitch in one of the scripts. Should be ok now. I uploaded the new scene with the corrected scripts at the top. |
Post by 3dvisuals dude // Aug 12, 2007, 7:39pm
3dvisuals dude
Total Posts: 1703
|
This is all ABSOLUTELY great work.
I have to step out for an hour or two but I plan to properly reply to this fantastic work you've done in this thread here when I get back, in the meantime though I just want to say thank you VERY much, and to others here "Check out this video... you will be VERY glad you did!!!"
OUTSTANDING.:banana:
- 3dvisuals dude |
Post by Steinie // Aug 13, 2007, 2:42am
Steinie
Total Posts: 3667
|
So if the doors were set Horizontal to the floor and you had gravity turned on you could set up a snake pit, landing gear, dump truck, or trap doors for a Steinie truePlay Haunted House...hmmmm
Another good one Dele! |
Post by Délé // Aug 13, 2007, 6:55am
Délé
Total Posts: 1374
|
Thanks guys. I have plans to make other interactive objects now that I know how. I'll make a separate script for trapdoors as they need to open and close very quickly to be effective. I tried to make a couple trap doors with the door scripts above and found that the doors wouldn't reset as good as they should. So instead, I'll create a trapdoors that don't animate. Rather they would just instantly go to an open state when triggered, and close state when the avatar gets out of range. That may not look quite as good, but it should work much more effectively.
So if the doors were set Horizontal to the floor and you had gravity turned on you could set up a snake pit, landing gear, dump truck, or trap doors for a Steinie truePlay Haunted House...hmmmm
Interesting ideas there Steinie! I never thought of dump trucks and stuff. :) I suppose there may be quite a few uses for these scripts beyond just doors. |
Post by 3dvisuals dude // Aug 13, 2007, 7:46am
3dvisuals dude
Total Posts: 1703
|
Thanks guys. I have plans to make other interactive objects now that I know how. I'll make a separate script for trapdoors as they need to open and close very quickly to be effective. I tried to make a couple trap doors with the door scripts above and found that the doors wouldn't reset as good as they should. So instead, I'll create a trapdoors that don't animate. Rather they would just instantly go to an open state when triggered, and close state when the avatar gets out of range. That may not look quite as good, but it should work much more effectively.
Interesting ideas there Steinie! I never thought of dump trucks and stuff. :) I suppose there may be quite a few uses for these scripts beyond just doors.
Whew... what a day here... so many great developments... I've been typing here all morning because of them all!
I really love this work you've done here, it's a tremendous asset to us all and thank you for all of it.
Regarding the trapdoors I was just thinking it may also be good to simply use some method of reversing the normals for a plane beneath an Avatar. This would also be useful for many other normal-reversing applications in truePlay environments as well. I don't know how hard or easy that might be though?
Thanks again, I'm loving the fact that you're enjoying all these interactive potentials!
- 3dvisuals dude |
Post by Délé // Aug 14, 2007, 10:09am
Délé
Total Posts: 1374
|
I've figured out how to fix these doors to work better. Right now if the doors are set too fast they will break. I will upload a fix in a couple of days. Just a heads up. :) |
Post by Steinie // Aug 14, 2007, 11:31am
Steinie
Total Posts: 3667
|
3 guys are going to be executed by Guillotine. The first guy is put in and the lever pulled. The blade stops 1" from his neck and the Judge says "it's an act of God you must be innocent, go free!"
The second guy is put in and the lever pulled. Again the blade stops 1" from his neck and the Judge says "it's an act of God you must be innocent, go free!"
The third guy who is the Village Idiot says "I'm not getting near that thing until you fix it!
Dele, don't worry I'm not getting close to those doors until you fix it!:D |
Post by Délé // Aug 14, 2007, 3:21pm
Délé
Total Posts: 1374
|
lol Steinie. :)
The fix ended up being even faster to do then I anticipated. I've uploaded a new scene in the first thread with the fixed door scripts.
You can now set the speed of the doors as fast as you want without the script breaking.
Edit: Sorry, made one last small adjustment. Added a button at the bottom of the scripts that says "Update Changes". Whenever you change the start or end values, click that button so the script can execute once to update to your changes. Last fix, I promise. :) |
Post by 3dvisuals dude // Aug 14, 2007, 10:04pm
3dvisuals dude
Total Posts: 1703
|
First off thanks for all your great attention to detail in this work.
Since all this stuff you've created here will be used countless times by all of us in the months ahead, that attention to detail of yours will mean a lot to us as we begin developing our own interactive scenes together.
The Active Doors of various important types, the ~truly great~ Video you made showing even Newbie LE user (like me) how to use these in our own scenes along with step-by-step thorough and non-assumptive walkthroughs on exactly how to do it all.... all this stuff is just priceless. Thank you.
In your second post here you also said something that's very important to us all in another way:
I should probably also mention that you should use the model side axis tool to set the axis for your doors where you want them to pivot. If you use the workspace axis tool, it won't work with the LE and thus won't work for these scripts.
I'm pretty certain that specific issue was the culprit that blocked our success earlier in Norm's "Rube Golberg Scenario" thread here... Frootee and I were just about pulling our hair out trying to figure why it was such a pain to set the axes on wheels and rollers and pivot points accurately... now I know why... we only tried it on Workspace side!!!!
OUCH.... the simple things really can getcha, huh?!?
Thanks for that... it's important in this context and that one.
I'm really looking forward now to Tuesdays "Script Hookup" meeting... there should be enough energy in that room to light up Las Vegas!!!:D
Thanks,
- 3dvisuals dude |
Post by W!ZARD // Aug 20, 2007, 1:56am
W!ZARD
Total Posts: 2603
|
Hey Délé. I just wanted to echo 3dvd's response to these door triggers - woohoo, what fun. Thanks man, these rock. I finally got to download your movie too which helps hugely.
Major appreciation from me to you - these are great! |
|