Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Filter: Sculptie Table A

Abu Nasu
Code Monkey
Join date: 17 Jun 2006
Posts: 476
04-27-2008 06:51
Taking a break from my other coding project and decided to finally toss this one out. It's been sitting in my thing ever since that other thing. So, to take a break from my other project, I pulled this out and cleaned it up a tad.

This is a proof of concept that I did once I finally had a way to see sculpties in an array and arrange the pixels. Goes back to Sculptie Mosaic and uses the same method for output.

It takes a sculptie plane and folds it into a table template. It has a top and four legs. Then I tossed in a few controls for some of the various attributes. I guess it's a parametric sculptie table thingie.

For folding, I decided on something that is a bit more LOD friendly. On LOD17, it breaks only just a tad. Because of this, it doesn't make uber efficent use of all of the quads available at LOD33. It's a trade off.

Now, the controls are absolute. RGB values have a range of (0-255), so that is what the controls use. I thought about making it relative for scaling purposes, but I wasn't in the mood to code a bunch of line factoring and vectors and things. Absolute is much easier on the code, but a bit harder for output with easy scale values.

Height Tweaks
- Top Height: This is the thickness of the top of the table. The higher the value, the thicker the top is.
- Bottom Boost: This will lift the bottom of the legs off of the bounding box.

Range=(0,255)
Top Height = 50
This will leave 255-50 = 205 for the legs.
If Bottom Height = 10, then the legs will have a height of 205 - 10 = 195.

X Legs
- In: This is how much to move the legs in from the edge of the table in the X direction.
- Width: How thick to make the make the legs in the X direction.

Y Legs
- Same as X Legs, but in the Y direction

If both X Legs sliders are twice the values of the Y Legs sliders, then the resulting table will look good when scaled X/Y : 1/2. Or is it X/Y : 2/1? Something like that.

Now for the suck part.

I did not put in any error checking when it comes to document size. If you use any non-square or non-power of 2 dimensions, the output will be ugh. It will try to work, but it will get confused and do funky things.

Document sizes? Please use square powers of two.
- 64x64
- 128x128
- 256x256
- 512x512
- 1024x1024

I have tested it with all of those dimensions - all with good results. I was very happy that it did good with 64x64. w00t

Feel free to ignore the Preview. If it's not at 100%, the Preview will not be accurate. Another thing that I didn't feel like hacking, but the final output will be good.

I have tested it with LOD hax, and I did get it down to 25% of the original with good results. I didn't test any lower than that.

Feel free to do whatever you want to do with the output. Poke it, prod it, sell it... whatever. If you use it for in-world stuff, credit would be cool, but not necessary. If you feel the need to toss an L$ donation my way, that would be cool, too; but, again, not necessary.

PC/Win only
RGB 8-bit
TS_sculptietablea.8bf
Filter > Tech Slop > Sculptie Table A
Tested with CS2, but should work with any host.

Enjoy.
Tarina Sewell
Just Browsing Thank you
Join date: 20 Jul 2007
Posts: 2,180
04-27-2008 15:19
this is why I will never understand sculpties.. omg my head hurts.