YOUR ACCOUNT

Login or Register to post new topics or replies
xirja
Idididoll Forcabbage

Posts: 1698
Filters: 8
Not sure if this problem can only be solved by a script, but I need an arbitrary point to be moved to the origin. Without knowing the initial distance from the center, how to move the point TO the center?

_____________________________________________________

http://web.archive.org/web/2021062908...rjadesign/
_____________________________________________________
  Details E-Mail
xirja
Idididoll Forcabbage

Posts: 1698
Filters: 8
Best attempt attached below

Point to Origin.ffxml
_____________________________________________________

http://web.archive.org/web/2021062908...rjadesign/
_____________________________________________________
  Details E-Mail
xirja
Idididoll Forcabbage

Posts: 1698
Filters: 8
I should have said polygon/ellipse/etc instead of point, but isn't a point really just an area or volume anyway in the real world, 0 dimensional, ha! smile;)
_____________________________________________________

http://web.archive.org/web/2021062908...rjadesign/
_____________________________________________________
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
I would do it like this if radius was known. Twice as complicated if radius is not known, for you have to establish distance from both edges and average the result. (FF4)

Point to Origin.ffxml
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Unknown radius like this. Not very fast a method, but works.

Center Object of Unknown Radius.ffxml
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Better methods very likely exist.
  Details E-Mail
xirja
Idididoll Forcabbage

Posts: 1698
Filters: 8
Oh the glory of the motion blur! Genius. Thank you. smile:) I'll see if I can stumble upon any better way.
_____________________________________________________

http://web.archive.org/web/2021062908...rjadesign/
_____________________________________________________
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
You may wanna try scripting part of it, namely finding the distance fr om the edges after the initial horizontal (or vertical) motion blur and threshold. Might improve the speed, as you would need to do it for just one horizontal row and column of pixels, wh ereas the motion blur is pretty calculation-intensive.

BTW, the same method can be used to remove all white area around the image for an automatic "scale-to-fit", and other things of that nature.
  Details E-Mail
xirja
Idididoll Forcabbage

Posts: 1698
Filters: 8
smile:) Just used this technique for an isometric perspective walk through, and found that 7 is more accurate than 10 for the repeat on the gradient prior to blur. Must be that it is the closest prime number on the low side of 10.
_____________________________________________________

http://web.archive.org/web/2021062908...rjadesign/
_____________________________________________________
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,711 Registered Users
+18 new in 30 days!

153,533 Posts
+38 new in 30 days!

15,348 Topics
+73 new in year!

Create an Account

Online Users Last minute:

22 unregistered users.