Glen's Script Collection

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.

Glen's Script Collection // The Garage

1  |  

Post by ProfessorKhaos // Dec 28, 2008, 9:19am

ProfessorKhaos
Total Posts: 622
pic
Hi all,


Been doing some cleanup over the holidays and have a few scripts that might be of some use to the rest of you


---------------------------


Avatar Info by Name* - allows you to look up avatar brick name and it's matrix via script. This is a command brick so it requires a clock if used to update continuously.


Closest Avatar Info* - finds the name of the closest avatar to a reference location. Very helpful in cases where... lets say a shark chases the nearest avatar...


Multi Matrix - allows a flexible way of creating a matrix such that you can specify rotation, scaling, and translation order. Useful, for instance if you want to rotate by roll first, pitch second, and yaw third (i.e. airplane) instead of yaw pitch roll (which you get with the normal expanded matrix).


Target Az El Dist - outputs the target's azimuth, elevation, and distance from a reference point. Azimuth and elevation are given in world relative terms.


Relative Target Az El Dist - outputs the target's azimuth, elevation, and distance from a reference point. Azimuth and elevation are given relative to the reference object (i.e. if you're in a cockpit of a plane flying inverted and the target is above your head (below you in a world sense) then elevation is positive)


Tracker MkIIa* - very useful script which tracks an input value in a smoothed way by using velocity and acceleration terms. Use 2 of them together with a Target Az El Dist script and you can control a gun in azimuth and elevation to follow an aircraft in a realistic fashion. Basically a "servo control mechanism" brick of sorts.


*Command brick, requires a clock to run


v/r,


Glen

Post by frootee // Dec 28, 2008, 9:20am

frootee
Total Posts: 2667
pic
Cool thanks Glen! :)

Post by Délé // Dec 28, 2008, 10:10am

Délé
Total Posts: 1374
pic
Nice, ty Glen! :)

Post by Emma // Dec 28, 2008, 11:25am

Emma
Total Posts: 344
pic
Suuuuper, thanks, dankeschoen:)

Post by Emma // Dec 28, 2008, 12:03pm

Emma
Total Posts: 344
pic
just a fast extension example of your above Tracker script.


The very small one in the middle is the "leader of the pack:D" while all the others follow, depending on their colouring.


Think this fantastic script from you waits for lots of expansions:)


So time to dig into it now. Thanks again:)



Movie shows how it rocks...

Post by robert // Dec 28, 2008, 4:02pm

robert
Total Posts: 609
pic
Cool, many thanks. :D

Post by TomG // Dec 29, 2008, 5:46am

TomG
Total Posts: 3397
A nice collection! And as I usually add to cool things posted on the forums - I hope this one is available on TurboSquid, for all those who are not regular forum visitors :)


Thanks!

Tom

Post by Norm // Dec 29, 2008, 8:19am

Norm
Total Posts: 862
pic
As always, thanks Glen :)

Post by ProfessorKhaos // Dec 29, 2008, 9:01am

ProfessorKhaos
Total Posts: 622
pic
I haven't added it to turbosquid yet but it certainly can be as time permits. Some of these scripts could be used directly with good results but they're also intended to work together to create bigger "monsters". :)

Post by TomG // Dec 29, 2008, 9:26am

TomG
Total Posts: 3397
Let's hear it for monsters! I look forward to seeing any of those that emerge from the community, as we have a talented group of people who come up with the most useful and imaginative uses for everything.


Thanks!

Tom

Post by ProfessorKhaos // Dec 29, 2008, 1:45pm

ProfessorKhaos
Total Posts: 622
pic
Scripting bricks above are now live on TurboSquid Tentacles.


They really need another product category however. They have ones for 3D Models, Motion Capture, and Texture Maps. I placed mine under 3D models. Could it be with this architecture we truly are breaking new ground? They also make use of a sub-category under 3D models. Since these aren't animals, buildings, etc. I put them under "collection". Perhaps TurboSquid could add a new category or sub-category for Scripts.


Still have a few to go. Intend to put my "file reader", "text parser", and a few others out there too.

Post by Délé // Dec 29, 2008, 2:05pm

Délé
Total Posts: 1374
pic
If you go to the website and upload your files, then you have more options (including a scripts category). That's what I did. Although if you do it that way I don't think it shows up in Tentacles. :confused:

Post by ProfessorKhaos // Dec 29, 2008, 2:25pm

ProfessorKhaos
Total Posts: 622
pic
Yes, unfortunately this is true. I can't seem to find the layerz script via tentacles. Would be best if tentacles could get to such things. Not just for trueSpace but for all of TurboSquid stuff I'd imagine. Wonder if turbosquid might address this eventually by expanding categories.
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2021. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn