Wednesday, May 14, 2008

Codex the second Chapter...

So where were we before I got my car wrecked and life happened? O yes, telescopes... Up above you can see what I finally ended up with. I had discovered that making the telescope actually take over the client viewer wasn't going to be very workable, possible, but not workable. So I kept looking. For inspiration I was looking at Hubble Telescope images and I thought, wouldn't it be cool if this is what you saw when looking through the scope? So I set out to discover a scripted way of making the pictures on a prim cycle. I'd seen this done before so I knew it was possible. This is when I discovered the lsl wiki.

What'dya know, there's a script funtion that does exactly that called llSetTexture. The example in the wiki does all sides of the object, well, that won't work because I don't want the back of the cylinder inside the telescope to show the stars, I want it mostly transparent so that if someone is being silly and looking through the wrong end they can see who's looking up at the stars. So, since ALL_SIDES is the variable that obviously controls that, let's try telling it which side to rotate textures on... trial and error time.

I finally figured it out and created a workable slide show frame! I put that in my back pocket and I sell it in my shop as a photo frame. It takes the inventory of the object and cycles through the textures. I uploaded a bunch of images from NASA that are in the public domain and built the 'lens' of my scope. After that it was just a matter of building a cool looking telescope around the frame. I used textures I really like, made em shiny and had a working telescope. Time to put it in a dome for the building. Which I did with the 'small scope' first. Well, yeah, that worked... but I really want a scope that rotates, so that it would look cooler.... how do I go about that? I think I saw a merry go round.....

Next time: no carousel horses for me... Who names a horse Tom?

0 comments:

Post a Comment

Subscribe | Contact Us | © 2007 Ingmann Design Group (IDG)