40 Year Calendar

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.

40 Year Calendar // Work in Progress

1  |  

Post by frootee // Aug 29, 2006, 11:14am

frootee
Total Posts: 2667
pic
Here it is... I want to be able to load this into trueplay; that way whoever wants can use this as a calendar for the next 26 years if they want!

It actually is good for 1990 - 2029.


http://home.comcast.net/~frootee/40yrcal2.jpg


Frootee

Post by frootee // Aug 29, 2006, 1:48pm

frootee
Total Posts: 2667
pic
Another Update. need to dirty up the surface, and add some black radial bars for ease of lining up dates, days, etc.


Edited by Admin: Image too large. Please keep images to no larger than 800x600

Post by Délé // Aug 29, 2006, 1:49pm

Délé
Total Posts: 1374
pic
Ah, this is what you were up to. Looks interesting. :)

I guess what I would do, is write a simple script that just lets you input a number and then it outputs it right back out. Then you can link it into the yaw, pitch, or roll of the object you want to rotate. This will give you a separate node that controls the rotation. You can create buttons and customize the node to look the way you want. I would probably use a scrubber myself. I've found those to be better then sliders because you can set the step amount to whatever you want.

Then, when you have it working and looking the way you want, you can left click drag in the upper left corner of the node and select "Show Automatically". That will make that particular node show up in truePlay. Then you can just save the .rsscn file or .rcd file.

I think that you know some programming but I'm not sure if you know Jscript or VBscript or not. If you have any other specific questions about how to do any of this, just let me know and I'll try to help if I can. :) Also, if you would like I can upload that simple little script shown in the images below.

Post by frootee // Aug 29, 2006, 2:12pm

frootee
Total Posts: 2667
pic
Cool, Thanks Dele! Yes, that jscript/vbscript would be most appreciated! I want to learn the scripting/LE capabilities anyway.


I have not worked with jscript/vbscript yet. But looking at some of your examples in the training video, and the documentation with truespace, it's all just syntax assimilation. :D


I have worked with C, C++, Perl, Tcl/Tk, Assembly (Intel, and (GASP) Z8000), Visual Basic, TI AutoShell (wafer fab software app), Matlab, HP-VEE (Hewlett Packard Visual Engineering Environment), and some other lesser known stuff. I still need to have an excuse to master java, because I see sooo many jobs that I want to do (3D simulation stuff) but I have no experience with Java. Haargh.


But as far as digital circuitry/hardware design, forget it; it's a lost cause for me... (as far as hardware, I have been known to injure myself with a spoon...) Just kidding!


Thanks Dele. I will see if I can implement this with the LE. Actually, I found out that if I export this as a Rosetta file, I can just use the rotate widget in trueplay. The problem at this point is, the other objects are not locked in place, so the user can accidentally select another object and move it around, thus messing up the whole thing.


Thanks,


Frootee

Post by Délé // Aug 29, 2006, 2:38pm

Délé
Total Posts: 1374
pic
Wow, you know just about every language except Jscript, lol. :) I know what you mean though, I had played around with C++ a little bit too a while back so I was somewhat familiar with the essential concepts, just a matter of getting everything written properly for the language.


If you expand the matrices for all of the objects except the one you want to rotate, that should lock them into place I think. It will in tS at least, I don't know if it will stay that way when exported into tP, but I would guess that it should. I think having a node to rotate the piece would probably make it clearer for the user as to what they should do though as it will pop right up at them.


Anyway, here's the script. :)

Post by frootee // Aug 29, 2006, 2:40pm

frootee
Total Posts: 2667
pic
cool! Thanks;

here's the link to my web page with the trueplay file if anyone wants to play with it. Select the trueplay file.

http://home.comcast.net/~frootee/index.html

Thank You Dele! I will take a look at that tonight;

If you download the trueplay file, click the thumbnail tab that juts out; you can then select the red rotation widget (for now; at least until I implement your script)
Thanks

maybe for the file, I could use a 0D joint for each object; maybe that will lock them in place also?
so much again!

Frootee

Post by frootee // Aug 31, 2006, 10:40am

frootee
Total Posts: 2667
pic
Okay, I followed trueblue's quick tutorial. I updated the 40 year Calendar ; it now has a slider control to rotate the month/day indicator. It is available as a trueplay file and is available at:


http://home.comcast.net/~frootee/index.html


The trueplay file is the file: Trueplay file: 40 Year Calendar


How it works:


Use the slider to rotate the month/day indicator. Line up the month with the year you want.


When you do that, the dates of the month and days of the week line up.


Comments, questions, and critiques are most welcome. :jumpy:


Thanks,


Frootee

Post by Steinie // Aug 31, 2006, 1:00pm

Steinie
Total Posts: 3667
pic
Yes you did a fine job with this one and it works as advertised. Pretty cool how it works with truePlay too.

Now I can take it with me camping!!!.....or maybe keep it over there with the sundial I bought for the solar eclipse.....;)

Post by frootee // Aug 31, 2006, 1:23pm

frootee
Total Posts: 2667
pic
Cool, Thanks Steinie! I'm glad it works. I got this back in 1990 from my aunt and uncle. That's why it does not start with 2006.


And thanks to Splinters, Dele, and trueblue for their suggestions!


I have a bit more to do with it; I need to finish adding those black bars which make it easier to line things up, then I think I'll wrap it.


Frootee

Post by trueBlue // Aug 31, 2006, 1:40pm

trueBlue
Total Posts: 1761
pic
Looking good Frootee looks like a lot of work went into this.
You may what to expand the matrix of the outside container so that a user would not be able to move, rotate, scale it. From here on my PC it looks like some numbers are missing.
Ideas:
1.) Change the Slider to a Scrubber and set the number of steps so that it steps to each year exactly.
2.) Instead of controling the top dial, hook up to the underlying dial so that the Title "For40Yrs" (<-Sounds like your Nickname) always faces the user.
3.) A script that sets the date automatically when it loads.
4.) Name your "ctrl panel" to 40 Year Calendar or something.
5.) Maybe add some simple instructions/information on your Label.
6.) Add a nice textured floor.

Post by frootee // Aug 31, 2006, 2:15pm

frootee
Total Posts: 2667
pic
Thanks TrueBlue! Dangit, you're right. There are some numbers missing and the red numbers are too dark. I think the red shows up better in the still image. I used one of the light setups that came with truespace for that. I will see if I can lighten the red without making it garish, and adjust the real time lighting in the player. I did most of the work in the Modeller, simply because most of the tools I needed were over there, and with the bridge on, and using lots of text, it got awefully slow.


So expanding the matrix actually acts as a way to bolt the object into place? That's really neat. I saw that happen for myself, but I had trouble associating the term "Expand" with immobilizing the object. Cool!


I will add a scrubber; that should be pretty easy to manage since there are 21 years on the outer rim (that's a big modelling tip for this btw... ! ) That amounts to 17.143 degrees for each year. Now I just need to make sure the years and increments are aligned correctly.


The script sounds really fun to do. As for the For40Yrs, that is on the top cylinder, and on the real thing, the top cylinder is rotated to get the date. What I can do is split that top cylinder into two cylinders; and make the center one stationary. This is where the 40Yrs text is.


I will add a ground as well, and move all the stuff upwards, because part of the model is buried under the ground at this point.


I plan to setup a text-based tutorial on how I did this.


Thanks trueblue!


Frootee
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn