These forums are CLOSED. Please visit the new forums HERE
Create a Mirror Image Prim |
|
Amaranthim Talon
Voyager, Seeker, Curious
![]() Join date: 14 Nov 2006
Posts: 12,032
|
10-01-2008 09:53
I created a cylindrical prim with a twist- begin -180 end 180. Copied that and changed the second one to begin 180 and end -180. They look as if same and mirrored but I need to determine how to set the Rotation so that the two prims align in a mirrored fashion as well. Can any one direct me to a tut or other info that gives clear information on how rotation works and how to apply it to this particular issue? I have been eyeballing most rotational issues to now with good results. Thank you all.
_____________________
"Yield to temptation. It may not pass your way again. "
Robert A. Heinlein ![]() http://talonfaire.blogspot.com/ Visit Talon Faire Main: http://slurl.com/secondlife/Misto%20Presto/216/21/155- Main Store XStreets: http://tinyurl.com/6r7ayn |
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
|
10-01-2008 10:01
If you want to do it by hand, it's a matter of relatively simple mathematics. "Simple" doesn't mean "not tedious", though. It can be kind of a pain.
I usually use Jeffrey Gomez's Prim Mirror script for this sort of thing. You can find it at /15/9a/38165/1.html |
Amaranthim Talon
Voyager, Seeker, Curious
![]() Join date: 14 Nov 2006
Posts: 12,032
|
10-01-2008 10:04
If you want to do it by hand, it's a matter of relatively simple mathematics. "Simple" doesn't mean "not tedious", though. It can be kind of a pain. I usually use Jeffrey Gomez's Prim Mirror script for this sort of thing. You can find it at /15/9a/38165/1.html Thank you muchly Chosen- although I would like to at least read the tedious version, to be honest I don't have much of a head for math I am more visually geared. Following your link now- thanks again. _____________________
"Yield to temptation. It may not pass your way again. "
Robert A. Heinlein ![]() http://talonfaire.blogspot.com/ Visit Talon Faire Main: http://slurl.com/secondlife/Misto%20Presto/216/21/155- Main Store XStreets: http://tinyurl.com/6r7ayn |
MoxZ Mokeev
Invisible Alpha Texture
Join date: 10 Jan 2008
Posts: 870
|
10-01-2008 10:22
Wewtie! This Rocks! Thank s for asking Amaran and thanks for answering Chosen!
/me the mathmatically illiterate dances happily _____________________
![]() |
Amaranthim Talon
Voyager, Seeker, Curious
![]() Join date: 14 Nov 2006
Posts: 12,032
|
10-01-2008 10:25
Well I have been looking at it Mox- and I do not understand what one is supposed to do with the script to be honest- is it one huge long script? Are there things I will need to change within it? If so, I am defeated from the start because I don't have the slightest understanding of scripting and wd not know what to change. I am sure I will need to "read" it several times- but frankly not even sure what part is instruction and what part is the script... Clueless- sorry
_____________________
"Yield to temptation. It may not pass your way again. "
Robert A. Heinlein ![]() http://talonfaire.blogspot.com/ Visit Talon Faire Main: http://slurl.com/secondlife/Misto%20Presto/216/21/155- Main Store XStreets: http://tinyurl.com/6r7ayn |
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
10-01-2008 11:47
It's two scripts...... The main script (to be placed in the prim you want to flip) that does all the work and a tiny script (at the end of the listing) that simply identifies a second, nearby prim as the mirror. So, (1) you unlink the prim you want to flip (if it was part of a linkset), (2) rez a second prim nearby and drop the tiny script in it, then (3) drop the main mirror script in your prim-to-be-flipped. The main script does all of its work relative to the second prim, so you can get different results by messing with the orientation of that second prim. The main script deletes itself when it finishes.
The script is very well documented. As in any LSL script, comments are all preceded by a double stroke (//). Before you use the scripts, be sure that you haven't copied the CODE andtags around it that are simply there to tell you where a listed script begins and ends. Cut and paste a script into a "New Script," replacing the default "Hello Avatar" script that SL generates, then hit Save. You should get a message saying that the script compiled properly and was saved in your inventory. If not, then you screwed up somewhere and need to try again. |
Amaranthim Talon
Voyager, Seeker, Curious
![]() Join date: 14 Nov 2006
Posts: 12,032
|
10-01-2008 12:55
Thanks- I was aware of the // btu had not realized the two script thing in that. Thankyou I will try it tonight.
_____________________
"Yield to temptation. It may not pass your way again. "
Robert A. Heinlein ![]() http://talonfaire.blogspot.com/ Visit Talon Faire Main: http://slurl.com/secondlife/Misto%20Presto/216/21/155- Main Store XStreets: http://tinyurl.com/6r7ayn |
Jeffrey Gomez
Cubed™
![]() Join date: 11 Jun 2004
Posts: 3,522
|
10-04-2008 17:00
Ask and ye shall receive.
![]() I've distributed a few built copies to those asking. Coincidentally, I just noticed Qarl's kindly given us sculpty mirroring support like he said he would. Expect a new release in the not-too-distant future with that integrated in. ![]() _____________________
---
|