Re: Graphic Rotation
Sun, 22 Feb 2004 15:59:13 -0600 Christopher Mitchell wrote: > >> It is true that the polygon needs to be regular, > which really leaves a > >> lot to be desired... you can't rotate non-regular > vector art, and you > >> can't rotate groups of art regular or not. so > the things you're > >> rotating are pretty limited. In RunRev, look at the function: "revRotatePoly". Different programmers has posted to this list (and Metacard list) handlers to rotate poligon graphics. In my website (look the direction at the foot of this post) you could find a stack named graphic transformations, that shows the use of matrices to scale, rotate and skew poligon graphics. al = Visit my site: http://www.geocities.com/capellan2000/ Search the mail list: http://mindlube.com/cgi-bin/search-use-rev.cgi __ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Graphic Rotation
Scott, The tmpanel loaded and is very nicely designed, but the contents come up with a lot of html tags and the only live url is for the first demo. looks like some great stuff in here hiding among the tags. Yours, Chris On Feb 22, 2004, at 12:28 PM, Scott Rossi wrote: Chris, This issue has been on the list before. The following script may be helpful. It will rotate an arbitrary set of graphic points through an arbitrary angle. A number of people contributed to it. I have used a button name "Pivot", with a grab me handler, to use as the point of rotation. On mouseUP --Rotate a polygon "myPoly" about a button "Pivot" by 45 degrees rotatePoly "myPoly",the loc of button "Pivot", 45 end mouseUP On rotatePoly theGraphic, thePivot, theAngle put the points of graphic theGraphic into tPoints put item 1 of thePivot into xPivot put item 2 of thePivot into yPivot put empty into newPointList --Set points relative to pivot repeat for each line tLine in tPoints put (item 1 of tLine)- xPivot & "," & (item 2 of tLine)- yPivot & return after tRelPoints end repeat put sin(theAngle* pi/180) into S put cos(theAngle * pi/180) into C --Rotate coordinate axes repeat for each line tLine in tRelPoints put round(C*(item 1 of tLine)+ S*(item 2 of tLine) + xPivot)& comma after rotPtlist put round(-S*(item 1 of tLine) + C*(item 2 of tLine)+ yPivot)after rotPtlist put return after rotPtList end repeat set the points of graphic theGraphic to rotPtlist end rotatePoly Jim ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Graphic Rotation
If by this you mean non-standalones would be more impressive, he doesn't have the runtime environment on his machine . Yours, Chris On Feb 22, 2004, at 4:28 PM, Scott Rossi wrote: I think some standalone demos of these would better impress upon my java friend that RunRev is not a toy gui maker. In fact, the reverse may be more accurate. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Graphic Rotation
Recently, Christopher Mitchell wrote: > I think some of the math routines could be replaced by native functions > now in rev (like atan) but it's really neat! Was this imported from > HC, or are all the little cards that each hold one image (regular hc/mc > icons) part of the optionally included graphics in the app builder? As you surmised, this was originally an HC stack originally created by Carl (I think it was '97), which was modified to work with MC/Rev (importing of HC stacks is rarely straightforward). It could probably be adapted to rotate almost any object using the functions included in the stack script. Just need the correct math. > I think some > standalone demos of these would better impress upon my java friend that > RunRev is not a toy gui maker. In fact, the reverse may be more accurate. Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design Email: [EMAIL PROTECTED] Web: www.tactilemedia.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Graphic Rotation
I got it to work with an internal reload of the demos channel. rev 2.1.2 . This is some very interesting stuff in here all right. I think some of the math routines could be replaced by native functions now in rev (like atan) but it's really neat! Was this imported from HC, or are all the little cards that each hold one image (regular hc/mc icons) part of the optionally included graphics in the app builder? very cool stuff, all of it. This is a totally different application of the environment than I'd seen up until this point and I think some standalone demos of these would better impress upon my java friend that RunRev is not a toy gui maker. Yours, Chris On Feb 22, 2004, at 4:08 PM, Scott Rossi wrote: Recently, Christopher Mitchell wrote: The tmpanel loaded and is very nicely designed, but the contents come up with a lot of html tags and the only live url is for the first demo. looks like some great stuff in here hiding among the tags. Works fine here. What version of Rev are you using? Alternatively, you can try this: go url "http://www.tactilemedia.com/download/tangram.rev"; Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design Email: [EMAIL PROTECTED] Web: www.tactilemedia.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Graphic Rotation
Recently, Christopher Mitchell wrote: > The tmpanel loaded and is very nicely designed, but the contents come > up with a lot of html tags and the only live url is for the first demo. > looks like some great stuff in here hiding among the tags. Works fine here. What version of Rev are you using? Alternatively, you can try this: go url "http://www.tactilemedia.com/download/tangram.rev"; Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design Email: [EMAIL PROTECTED] Web: www.tactilemedia.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Graphic Rotation
and clicking on the demo stacks channel button a second time reloaded it and it is working smoothly. must have been a glitch the first time. Yours, Chris On Feb 22, 2004, at 12:28 PM, Scott Rossi wrote: Recently, Christopher Mitchell wrote: It is true that the polygon needs to be regular, which really leaves a lot to be desired... you can't rotate non-regular vector art, and you can't rotate groups of art regular or not. so the things you're rotating are pretty limited. You might want to look at our Tangram demo stack -- you may be able to adapt something there to your needs (math routines developed by Carl Manaster). Enter the following in your message box and scroll to the bottom of the list: go url "http://www.tactilemedia.com/tmpanel.rev"; Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design Email: [EMAIL PROTECTED] Web: www.tactilemedia.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Graphic Rotation
Scott, The tmpanel loaded and is very nicely designed, but the contents come up with a lot of html tags and the only live url is for the first demo. looks like some great stuff in here hiding among the tags. Yours, Chris On Feb 22, 2004, at 12:28 PM, Scott Rossi wrote: Recently, Christopher Mitchell wrote: It is true that the polygon needs to be regular, which really leaves a lot to be desired... you can't rotate non-regular vector art, and you can't rotate groups of art regular or not. so the things you're rotating are pretty limited. You might want to look at our Tangram demo stack -- you may be able to adapt something there to your needs (math routines developed by Carl Manaster). Enter the following in your message box and scroll to the bottom of the list: go url "http://www.tactilemedia.com/tmpanel.rev"; Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design Email: [EMAIL PROTECTED] Web: www.tactilemedia.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Graphic Rotation
Recently, Christopher Mitchell wrote: > It is true that the polygon needs to be regular, which really leaves a > lot to be desired... you can't rotate non-regular vector art, and you > can't rotate groups of art regular or not. so the things you're > rotating are pretty limited. You might want to look at our Tangram demo stack -- you may be able to adapt something there to your needs (math routines developed by Carl Manaster). Enter the following in your message box and scroll to the bottom of the list: go url "http://www.tactilemedia.com/tmpanel.rev"; Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design Email: [EMAIL PROTECTED] Web: www.tactilemedia.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution