Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Wanted: Analog Clock script

Vivienne Daguerre
Registered User
Join date: 12 Apr 2004
Posts: 28
09-27-2004 07:01
I wish to build and sell clocks. I am very good with graphics and can make some beautiful clocks. I was hoping to learn how to script. I have looked into it... and I am totally overwhelmed. I would like to make these clocks this year.

Can someone point me to a free analog clock script if there is one that I could use? If not, could you wonderful scripters give me a quote in Linden dollars to make a script for me that I can use on objects that I plan to sell?

Taking bids... You can also send them to my email at [email]lareinefroide@yahoo.ca[/email]. *Note the .ca on the end, not .com, denoting Yahoo Canada*

Thank you :)
Yoshi Platini
Registered User
Join date: 23 Jul 2004
Posts: 111
09-27-2004 09:28
Vivienne,

How are you going to handle the hands, design-wise...are you planning to overlay two centered transparent discs on the clock faces (the most obvious approach)?

Also, do you plan to use a second hand? I haven't tested it yet, but my thought is, that would be a bit of a lag-magnet....

-yoshi
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
09-27-2004 10:36
Francis Chung has a freely distributable clock script.
Vivienne Daguerre
Registered User
Join date: 12 Apr 2004
Posts: 28
09-28-2004 04:45
I don't need a second hand, just an hour and a minute hand. If layering two disks is the best way, I shall do that. I can make my design fit the script.

Thanks for the tip regarding Francis Chung. I will try to reach her in game.
Mike Zidane
Registered User
Join date: 10 Apr 2004
Posts: 255
09-28-2004 06:57
I don't know if this is going to affect you... it's just an FYI. It's caused me some trouble, so here it is:

Overlaying partially transparent objects or textures can cause you some trouble. It seems the rendering code isn't sure which of the transparent things it's supposed to draw first.

Now if we are talkin' about clock hands with an opaque back, it might work out ok. But do keep it in mind.

Also, don't forget that you can fake stuff. Francis Chung has a dynamite set of free clock functions (go buy a watch from him to get it, best watches around anyway). You could use that to keep track of your time and just move the hands accordingly. No one would be the wiser.
Wednesday Grimm
Ex Libris
Join date: 9 Jan 2003
Posts: 934
09-28-2004 07:22
From: someone
Originally posted by Mike Zidane
Overlaying partially transparent objects or textures can cause you some trouble. It seems the rendering code isn't sure which of the transparent things it's supposed to draw first.

This is (sorta) a problem with the texture. It means your tga has an extra channel, or too many bits or something. Someone who knows P-shop better can explain.

(Which is to say this is *also* a bug in SL, but a work around-able one).
_____________________
Sarcasm meter:
0 |-----------------------*-| 10
Rating: Awww Jeeze!
Barbarra Blair
Short Person
Join date: 18 Apr 2004
Posts: 588
09-28-2004 10:00
If anyone knows the solution to the alpha layer problem I'd love to hear it; I have problems with objects seeming to be on the wrong side of walls and so on when both wall and object have an alpha channel.
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
09-28-2004 10:47
This isn't fixable at all. It's the nature of rendering and how transparency is faked. True transparency is only attained by raytracing, not rendering. The way most games deal with this is by not overlapping alpha textures :)
There's a bunch of posts around regarding this issue... they are probably in the feature suggestions forum. IIRC eltee statosky writes the more informative ones :)
Jake Cellardoor
CHM builder
Join date: 27 Mar 2003
Posts: 528
09-28-2004 11:52
Just another data point: while I have seen the rendering problem described, I have seen analog clocks that did not exhibit the problem. Coyote Murphy, who no longer appears to be playing, was the first one to use texture rotation to rotate the hands on an analog clock face, and it looked great.
Francis Chung
This sentence no verb.
Join date: 22 Sep 2003
Posts: 918
09-28-2004 16:15
Hi all,

A few comments:

- I don't have a free-to-copy clock hands script. I usually pass the requests I get for scripted clock hands to Catherine Omega who has also solved this problem

- The watch that I sell - there are two parts to it. The scripts that make it pretty (including the scripted hands), I've left closed. (nomod, nocopy). The parts that are functional (such as date/time conversion functions), I've open-sourced.

- Eggy, you are incorrect in your statements about alpha transparency. There are many rendering algorithms that will properly order drawing of alpha-transparent polygons in an OpenGL-non-raytraced framework. The most popular approach would probably be the use of BSP trees which can be used to enforce a back-to-front rendering order.

edit: typo
_____________________
--
~If you lived here, you would be home by now~
Vivienne Daguerre
Registered User
Join date: 12 Apr 2004
Posts: 28
09-29-2004 04:12
Francis, let's talk. I am good with graphics and can make some lovely antique clocks and grandfather clocks, but I do not have scripting skills. Perhaps we can come to some kind of arrangement?
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
09-29-2004 04:28
From: someone
Originally posted by Francis Chung

- Eggy, you are incorrect in your statements about alpha transparency. There are many rendering algorithms that will properly order drawing of alpha-transparent polygons in an OpenGL-non-raytraced framework. The most popular approach would probably be the use of BSP trees which can be used to enforce a back-to-front rendering order.

Goody. Now tell that to the Lindens. I was just reporting what I had been told. I dont really care either way :)
My computer graphics class covered only the most dull and basic algorithms that I had already figured out on my own while experimenting with QBasic during high school.
Woohoo, "this is how you scale a vector", "this is how you multiply two matrices"! YAY! How utterly informative.
Samhain Broom
Registered User
Join date: 1 Aug 2004
Posts: 298
09-29-2004 08:41
Vivienne,

I'll look you up in world when I get home. I have some clocks with scripts for the hands, and perhaps there is something we can work out.
_____________________
rm -rf /bin/ladden #beware of geeks bearing grifts
Vivienne Daguerre
Registered User
Join date: 12 Apr 2004
Posts: 28
09-29-2004 15:47
That would be wonderful Samhain :)
Alondria LeFay
Registered User
Join date: 2 May 2003
Posts: 725
09-30-2004 00:02
If still needed, I also have an analog clock script laying around.