|
Nel Shan
Registered User
Join date: 23 Mar 2007
Posts: 4
|
06-09-2007 05:17
Is there a script for generating an exact reflection of a linked set of prims?
And on a side note, is there a script for taking an unattached object carefully lined up on a avi and attaching it that selfsame spot?
My current method for (1) involves a lot of note-taking, and for (2), a lot of swearing and muttering.
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
06-09-2007 07:45
Don't know if they already exist, but I think (2) is a lot simpler than (1).
For (2), the script would just have to record the region coordinates, and on attach() it would get its (global) pos & rot, calculate and apply the (local) pos & rot changes to put it back where it belongs, and remove itself.
To be general, (1) seems nightmarishly complex; wouldn't it would have to understand how to invert all kindsa stuff including tapers, twists, shears, radius offsets, and even texture rotations and offsets--all about an arbitrary plane possibly intersecting the object itself? Maybe it's simpler than I think, but it sure *feels* scary.
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
06-09-2007 15:02
this works on individual prims /15/9a/38165/1.html
|
|
Nel Shan
Registered User
Join date: 23 Mar 2007
Posts: 4
|
06-09-2007 17:25
From: Qie Niangao Don't know if they already exist, but I think (2) is a lot simpler than (1).
For (2), the script would just have to record the region coordinates, and on attach() it would get its (global) pos & rot, calculate and apply the (local) pos & rot changes to put it back where it belongs, and remove itself.
To be general, (1) seems nightmarishly complex; wouldn't it would have to understand how to invert all kindsa stuff including tapers, twists, shears, radius offsets, and even texture rotations and offsets--all about an arbitrary plane possibly intersecting the object itself? Maybe it's simpler than I think, but it sure *feels* scary. You make (1) sound easy, Qie. OTOH, I think you're giving yourself the heeby-jeebies with (2). The script itself wouldn't have to understand anything, just the writer; to understand when to take B from 100 and put it in E and vice-versa, for example. To make things easier, the user might have to specify a plane from world X-Y, Y-Z, X-Z. It'll be easier to move the object to get the required reflection than to mess around with arbitrary planes. Hell, I wouldn't care if it broke on some tortured prims, as long as it could handle the scutwork of creating a mirrored shoe or shoulder pad, forex.
|
|
Nectere Niven
Gadget Junky
Join date: 12 Jan 2007
Posts: 211
|
06-09-2007 21:46
I have had good sucess with the prim mirror /15/9a/38165/1.html
|