I want point (which is not at center) to make it center using CenterView() command by ZoomIn() . Not just in one step.
Point "A" is always inside the windows and the coordinates can shift very fast.
The movement from the edge to the centre takes place with negative acceleration.
The zoom of the graphic is not changed automatically, but is not fixed and can be changed manually.
The program focus is on the maximum possible synchronization speed between the slider and the axis coordinates.
How to script CenterView(ZoomIn()) or ZoomIn(CenterView()) command at the same time. So i need moving point keeping center by ZoomIn.
centerview in one line
zoomin() in a second line
I did the same thing but centerview set point in center in one flash not by zoomin.
I also applied " zoomout(1.5,(0,0)) or ZoomOut(1.5,(S)) where S is point" command at moving point but it as slider stop it change view to default position. I want view to final position where my point moved.
For me it is not at all of interest how or with which means you want to achieve something. For an adequate answer it would be important to know WHAT the user of the app should see.
And this as precisely as possible. For example and only sketchy:
Or in other words: the point is that you describe very accurate the 3 movements (point, center and zoom) relative to each other over the whole animation period (not technically), so that nobody (not even you) has to guess.
AND It is also very important to know the overall purpose (e.g. simulation of a drone chasing a person or automatic tracking of racing cars with a camera from a captive balloon at a fix height [both only in 2D])
Hello rami. Good to see you. Can you pls share attachment for my project and i am also interested in example of attachment which shows every point as you mentioned.
User see point move slowly at some distance also slowly ZoomIn view to the point and make point center until slider1 stop.
Then slider2 start ZoomIn, viewing angle change and center point until slider2 stop.
Then slider3 start and point moving very fast 100*slider3 along x-axis. during slider3 low scale factor ZoomOut running keeping point center so that x-y axis shows. because in zoom and centerview x-y axes goes at corners this is also the problem.
I don't know what you want and I don't know what/for what your project is.
My examples are examples and very sketchy. And I'm not clairvoyant and I don't know what you want what for.
rami Can you pls share any attachment which contain all the things you mentioned. Like viewing angle change , ZoomIn , centerview with zoomin.
Also i used zoomin, centerview and pan command it make x-y axes at corner is it possible to keep it at corner but lines of x-y axes visible?
If you not learn to descibe something you never can create or think something new and no one will understand you.
Try it! (And start with the over all view!)
How can i change viewing angle (any command?)
I want point as center as i used centerview command but with zoomin not just in one flash.
i want whenever i use zoomin , centerview and pan command x-y axes lines must show at corner. because when i used these command it goes at corner/border and not visible.
When a 7-year-old kid asks you, "what are you doing with Geogebra?" or even "what do you want to do with Geogebra?"
What is your answer?
How to translate x and y axes graphics view?
try with attached
How to make point centerview by zoomin,
Centerview command make point center in one flash.
If point is at any corner , i want this point centerview by zoomin as much slider moves.
Pls suggest suotion.
Hello alfabeta thanks for your efforts. Pls see attachment. Make this point centerview by zoomin like camera getting closer to the point using slider or button. If button is used every time i hit the button it make point center and closer (ZoomIn) to the point
I don't understand.
maybe something like the attachment:
No. Pls make my above attachment point center by zoomin getting closer to the point.
Hello Team Thanks for all your support.
Pls have a look and give solution for zoomin point along with centerview.like softzoom.
I have tried but both command conflict centerview trying to center point in one flash and zoomin trying to zooming the point.
For what / why do you want to use the ZoomIn in addition to CenterView?
What do you want to achieve.
If you have an answer without technical specifications (for example something with Zoom), then I might have a solution for what you want archive.
Thanks rami once again to handle the issue also thanks all the GGB TEAM. Hope this time i can have better solution than i think,
There are few reasons i want my point keep center of the screen. In my project POINT is the main object.
1. Sometimes my point moving very fast. I want to keep it center of the screen.
2. In some cases i need to ZoomIn my point very fast and it goes off the screen when zoomin. Although my target to zooming in to focus my point but it goes off screen.
3. In some case ZoomOut required once again point is not at the center of the screen.
Most importantly it is not always necessary initially my point is at the center also it is far in coordinates. Firstly I need to focus my point by zoomin with center the point.
In addition , If possible it would be better and looking immersive solution. if in case point not at center of the screen ZoomIn Point Coordinates /POINT to make point center by SOFTZOOM and further zoomin as long as slider run.
It looks camera focusing the point and zooming the object.
Sorry, I'm not interested in a new question.
I need only the answer to my last post.
rami i have given the answer to your question in my second last comment. where i described the complete situation, requirement and problem to center the point when zooming is running.
If any thing else needed pls let me know.
Sorry: my mistake. I didn't notice that you sent two posts in series.
I'll call back later. At the moment I have only one possible solution, if the point is moved manually by mouse. This does not seem to be the case.
One solution could be that once the dot leaves the window, the center is set so quickly (as GGB allows with a script) that the dot is visible again at the edge of the window. Only then would the soft movement towards the center of the window begin.
Question: could this possibly be good enough?
update post before
Rami can you please share the attachment. So I can see actual result.
Note : point is moving with slider not manually also the major problem of center the point during zoomin.
Sorry I have no solution with zoomIn/Out (possibly it is not solvable in combination with Center ).
Please read my last Post again:
Question: is this good enough? And if no: what is the Problem.
Is there any other way to keep point center or within the screen during zoomin
Like I tried to script with slider few time for zoomin then center then again zoomin and center. But still this idea not worked properly.
Question : is this good enough.
Ans. Pls share your attached solution.
Thank you so much rami . I am checking this. It looks very helpful and solves the problem.
I think you made it and found the solution.
Looking for GGB-7 Hope which can have slide show features and solution to the camera features. :smile: 8->
Hello rami, Just need one think in your last attachment . Pls make this centering point allow enable and disable.
Because initially i want it disable. then after that i need enable. So i can play around situations freely.
The script in BW onUpdate has StartAnimation(tC,true) as its last command.
This command shall now be executed under the condition that GoCenter=true.
Of course the object GoCenter=true still has to be created.
The effect will be that as you move the slider, A will move to the edge
from there the coordinates under A will move.
Note: I would be interested to know what secret project I am "working on".
Thanks rami. i have seen script in your attachment but it is very difficult for me to understand completely.
If possible pls explain your attachment commands and script.
1. pixX , pixY (this is related to pixel)
2. Win , AW , AWC , BW
1. pixX , pixY (this is related to pixel)
The actual length of 1 pixel in GGB-units
is needed to create a distance to the graphic border for Win that is independent of the zoom
2. Win , AW , AWC , BW
Win the window, which A is not allowed to leave
AW The point where the ray(C,A) intersects the window Win
Required for AWC
AWC the vector from edge to center. is needed to move the center to the edge (in script of BW)
1. BW (Point)
brings A to the edge (if A is outside the window)Starts tC to smoothly move A to the center
2. tC (slider)
With each step of the slider, "A" approaches the center (increasingly slowly)
The distance between the current location from "A" to the centre is shortened by a constant factor.
Note: all the above movements of "A" are relative to Windows. In reality the coordinates move and A stands still.
Pls delete additional unnecessary posts.
Please, I want see the actual state of your project.
Do i need to explain my project state or share my project as an attached?
please both (only insofar as it already exists)
There is some problem in attaching of project. Is there any way to share my project privately with you.
OK. Then I'll pass. No problem.
I like to share my project with you. If there is any other way pls let me know .
I am attaching the project it shows some problem. you can see the problem in attachment.
Hello rami, Pls see attached.
I have added ZoomIn with your attached. When Zooming is running its unclear what happening in visualization point flashing coordinates smoothness problem look static and sometime moving.
If it can be solved by your expertise it is very helpful for me. Otherwise you can pass because you have already spent a lot of time and effort in this project.
Many thanks for all your efforts.
Close the Algebra-View (need a lot CPU, when run)
If it is still not good enough: Set step from X to 2 or 5 or 10
And/Or reduce the speed (0.5, 0.2 or 0.1)
only maybe: set in properties Grafic1 the distance of xAxis to 10
Thanks for the reply,
I have checked with optimal conditions.
X : Step =10 , Speed = 0.1 ,
Graphics 1 setup
Algebra View Closed
Set ZoomIn Minimal = 1.02
But still point fluctuating. I think it can not be solved further. Any way once again thank you so much for your time , efforts and sharing your expertise.
Maybe your PC is not powerfull enough.
Maybe the browser ist not powerfull enough
Maybe not enough Memory (swapping) Or something run parallel (close all other Windows or tabs)
Or in Bios or Windows the speed is reduce (need less Power)
or or or
Here with only close the Algebra-View the picture is stable in GGB5 and GGB6web (Win10 64Bit, Pentium5 3.2Mhz, 8 GB RAM, SSD, age of the PC about 5 years. To day this is a normal desktop for office)
But your project is very helpful.
Quote: "....Pls make this centering point allow enable and disable....."
Quote: "...a cannonball hits a sandbag..."
An alternative, more flexible, simply, more powerful.
The position of the central point within the graphics window is defined by a curve.
(from -1 is left, to 0 is middle, to +1 is right)
Comments have been locked on this page!