Zooming in on objects

I've read a few posts regarding the question of how to make sure objects don't disappear when zooming in. The suggestion is that a low front clip distance (i.e., setFrontClipDistance()) will make that happen. I have played around with that with some improvement, but I still get some objects to disappear.
My zooming is done by resetting the scale...is there something I should or should not be doing here? For what it's worth, here are some relevant snippets of code.
In my method for creating the universe
universe = new VirtualUniverse();
parentLocale = new Locale( universe );
viewplatform = new ViewPlatform();
viewplatform.setActivationRadius( 5000.0f );
// sceneGraph.addChild(viewplatform);
view = new View();
view.setVisibilityPolicy( View.VISIBILITY_DRAW_VISIBLE );
PhysicalBody physicalbody = new PhysicalBody();
PhysicalEnvironment physicalenvironment = new PhysicalEnvironment();
view.setPhysicalBody( physicalbody );
view.setPhysicalEnvironment( physicalenvironment );
view.addCanvas3D( canvas );
view.attachViewPlatform( viewplatform );
viewGraph = new BranchGroup();
...a VisTransformGroup extends TransformGroup
viewTransform = new VisTransformGroup( "Global Transform" );
viewTransform.setScreenCenter(new Vector3d(0.,0.,0.));
viewGraph.addChild( viewTransform );
viewTransform.addLast( viewplatform );
view.setFrontClipPolicy( view.VIRTUAL_SCREEN );
view.setBackClipPolicy( view.VIRTUAL_SCREEN );
view.setBackClipDistance( 3000.0 );
view.setFrontClipDistance( -30.0 );
viewGraph.setCapability( Node.ALLOW_AUTO_COMPUTE_BOUNDS_READ );
...I create a global TransformGroup, called scaleTG
// Scale
Transform3D scale = new Transform3D();
scaleTG = new TransformGroup(scale);
the zoom method modifies the scale transformation...
public void zoom(int value) {
      Transform3D rotTrans = new Transform3D();
      rotateTG.getTransform(rotTrans);
      Transform3D translation1 = new Transform3D();
      translation1.setTranslation(screenCenter);
      double sfactor = 1.0 + Math.abs(value) / 200.0;
      if (value > 0) {
         sfactor = 1.0 / sfactor;
      Transform3D scale = new Transform3D();
      scale.setScale(sfactor);
      Transform3D translation2 = new Transform3D();
      screenCenter.negate();
      translation2.setTranslation(screenCenter);
      screenCenter.negate();
      Transform3D lastTransform = new Transform3D();
      scaleTG.getTransform(lastTransform);
      VisTransform3D curTransform = new VisTransform3D(
            "CurrentWorkingTransform");
      curTransform.mulInverse(rotTrans);
      curTransform.mul(translation1);
      curTransform.mul(scale);
      curTransform.mul(translation2);
      curTransform.mul(rotTrans);
      curTransform.mul(lastTransform);
      scaleTG.setTransform(curTransform);
      Vector3d vScale = new Vector3d( );
      curTransform.getScale( vScale );
      onScale( vScale );
   }

Your objects will disappear regardless if your view platform is moved between them and the center point. One thing you can do is move the center point to the region of interest.

Similar Messages

  • Is there a way to zoom into selected objects in Pages?

    Working in the page layout mode in Pages and I note that there is no way to zoom into a particular object or selected objects. This is really a pain if you are working on a poster much larger than the screen and you want to zoom right to a particular object. Zooming only seems to go to upper left corner and you have to scrool around to find the object you were working on.
    Has anyone figured out some magical way to zoom into an object on a page?

    This may not be the perfect answer, but it's pretty good in some situations. Smart Scroll has a grab hand fetaure that you may like.
    http://download.cnet.com/Smart-Scroll/3000-18487_4-10003983.html
    Walt

  • Auto-zoom to selected object?

    I have a mystery ghost path that I can't find. It shows up in the layer palette. But I can't see it on my artboard. I have Show Bounding Box and Show Edges turned on. I alt/option click the layer to select everything. But there's nothing selected on my artboard. (And my artboard is sized to fit artwork bounds).
    Are there any scripts to auto-zoom/scroll the canvas to a selected object? Most 3D apps have a "Frame Object" command that moves and zooms the camera to make the selected object centered on the screen. Is there something like that for Illustrator?

    I don't think so. Just lock down anything you want to keep, Select All, and hit delete. The phantom guide should go away.

  • Zoom in shape object

    Hello, I am trying to zoom on a shape object with the AffineTransform class, and would like to know how to zoom from the center of my object graph, and this graphic object can be a circle, rectangle, polygon, etc. .. .
    I'm lost in logic to perform the transformation.
    Thanks.

    Is there a question? Are you asking me to run your partial code snippet for you?
    user2307826 wrote:
    Here's part of my code, entered the getScaleInstance now as I could zoom in from the center of my object, assuming for example that my object is a rectangle?
    thanks
    @Override
    public void paint(Graphics g) {
    super.paint(g);
    Graphics2D g2 = (Graphics2D) g;
    g2.setColor(Color.RED);
    AffineTransform tx = AffineTransform.getScaleInstance(scale, scale);
    g2.draw(tx.createTransformedShape(rect1));

  • Zoom and centralize object

    Hello everybody, I am developing an application which will be necessary to implement the zoom on a particular map.
    The Zoom I could implement using the AffineTransform class, but I would like the location where the user clicked the mouse to perform the zoom is centered on the screen.
    How could I perform the calculation of the translation of the site click so it can be centered on the screen.
    Thank you.
    Vinícius

    The Zoom I could implement using the AffineTransform classUse the same AffineTransform. It has
    public void translate(double tx, double ty)method. JUst pass proper values for the center point.

  • Hairline white gap appearing between objects

    Hi,
    I've constructed a logo that consists of several shapes that but up against each other. The sides that touch one another are completely flat. When I zoom in, the objects are touching, if not overlapping in some cases. This is okay as it is very small.
    However when I save it as a pdf document to sent to a client, those thin lines between the shapes appear much more pronounced. It looks as if I have intentionally put a .5 stroke line between each object. Why does this occur and is there a way to fix this problem?

    Bayne,
    It sounds as if it is a PDF rendering issue.
    What happens if you zoom into the PDF?
    And how is it when you print the PDF?

  • Rotated image at 120% zoom

    Hi Framers,
    I use Frame 7.1p116 and have some small graphics of arrows in my text. These are imported by reference, Anchored Frame, At Insertion Point.
    When I display at 100% ot 140% (or other values) the display is just fine. But at 120% one of the arrows is suddenly changed from a Left arrow (correct) into an Up arrow. The printed PDF is just fine.
    It's not a big deal, although it cost me a few minutes when I thought I had imported the wrong image. Has anyone seen anything like it before?
    Here are the three zooms and the Object Properties. They are straight screen grabs, cropped and with a red circle added afterwards.
    Any ideas?
    --- Derek

    Thanks Sheila and Arnis,
    Today I opened the project to try different zoom settings and the problem has vanished; I get the correct arrow at zooms of 100, 120 and 140%.
    Likely a bug somewhere deep in Frame's innards. Anyway we've ordered TCS3 so soon I'll be using FM10. Thanks anyway.
    --- Derek

  • How to make shape objects clickable/selectable in transformgroups in java 3

    I am building a visualizer program that has Java 3D components inside Swing components. I have a branchgroup inside a canvas3d inside a simpleuniverse, which is added to a JTabbedPane. Inside the branchgroup I have multiple transformgroups each with one shape in them (box, cone, sphere, cylinder). Each transformgroup has the ability to rotate, zoom, and tranlate objects because I have incorperated a MouseZoom, MouseRotate, and MouseTranslate object as from the Java 3D library functions (these are applied to each transformgroup every time one is created and added to the branchgroup). My problem is that I am trying to make these shapes clickable/sectable/dragable/dropable on the screen - currently when I try to translate ONE object all the shapes move on the screen and I cannot get just one shape to move (all shapes move when I only want one to). How do I make only one shape move when it is clicked?
    I know the question is kind of out there and specific so if anyone knows how to generically give transformgroups/shapes drag and drop properties that would also help a great deal. Does anyone know how to to this? Thanks a ton.

    shape uses the contains and intersects methods, is that what you need? Without code it is hard to guess what is required.

  • Smart guides. They cease to work at 800% zoom level.

    Any reason for that?

    Lewis when you you zoomed in you some how got the direct select too active you were reshaping the rectangle not moving it.
    <br />
    <br />Here is a screen capture of your last frame of the video.
    <br />
    <br />
    <a href="http://www.pixentral.com/show.php?picture=14NAuH3o8pLjDDLbF0RWCkwzeCpNg1" /></a>
    <img alt="Picture hosted by Pixentral" src="http://www.pixentral.com/hosted/14NAuH3o8pLjDDLbF0RWCkwzeCpNg1_thumb.png" border="0" />
    <br />
    <br />I was wrong but it is good because I know what manifests the bug and you are correct it is a bug, I apologize for judging so soon.
    <br />
    <br />Try this odd one for size. deselect both objects then zoom in to say 1600%. Now select one of the objects and move it over the other no smart guides! correct?
    <br />
    <br />Now zoom back out so you can see the two rectangles and select one of the objects now zoom in to say 1600% deselect the selected rectangle, then select it again and move it over the other rectangle, you got smart guides.
    <br />
    <br />I will log it in as a bug. you should as well.
    <br />
    <br />There also appears to be other factors, Like I think that originally before zooming the two objects might have to aligned as this doe not always happens as I prescribe.

  • Zoom to selection possible?

    Hi! Is there any way in Illustrator to zoom to selected object (I want to maximize the selected object to the window)? There is the FitArtboard and the FitAll, but a ZoomToSelected would be great.
    Regards / Jimmy

    There is sort of very inconvenient work around that might actually impact the feasibility of this as a practical future feature addition to the zoom tool.
    Here goes:  (it is over the top)
    draw an artboard slightly larger or smaller than the art
    use the command from the artbard option dialog to fit to artwork bounds or fit to selected art
    Set the artboard and hit command 0.
    It might be possible to script this or write code as a feature
    The problem is right now there is no way to hide an artboard, make it invisible or select it zoom and them hide it once zoomed.
    Also no way to assign a keyboard short cut to a script or use a script in an action and then you would be able to assign a keyboard shortcut.
    This should now be possible and very handy.
    Being able to assign per document  keyboard shortcut to zoom into particular artwork on the document level would be even more helpful.
    Especially on complex work.

  • Creating 3ds max 3D objects for Flash?

    Hi team,
    Is there a way to utilise 3D objects in Flash for users to manipulate?  I can see how I can export an image sequence and fake it but is there any way that Flash can acutally use the 3D object?
    i would really like to make a 3D interactive object for a Google sites website, is there any way that you can point me towards to do this?
    Just a basic revolve/rotate would be a good start.
    Cheers
    sub

    Yes. Very easy actually, except for texturing. Stage3D lets you do realtime 3D on mobile devices, the web, desktop, etc.
    I use a framework called Flare3D mostly. It comes with a 3dsmax 3d plugin. It installs custom materials in 3dsmax (2010 and above) and you need to texture your object using them (I find) as the built in standard material converter doesn't work too well. It also adds a menu item to 3dsmax that lets you export your object in a format called f3d.
    http://flare3d.com/
    Grab the YellowPlanet tutorial (Flash Builder) to see how easy it is to use. After you set up a basic scene, the default nature is just to show the 3d object and allow you to rotate/zoom around the object without you coding it at all.

  • Motion 3.0.2 bugs found from APTS Motion 3 book

    Hello, I'm going through the Apple Pro Training Book for Motion 3 (great resource like all the other APTS books).
    As a result, I have found some bugs/issues in Motion 3. Besides sending reports to Apple, I think I'll start this thread and keep a running list of ones I find as I go. Please add on if you find some from going through the APTS book.

    +(sorry this is so long, but without seeing it, it's difficult to describe with few words)+
    Chapter 4 has you working with 3D Overlays and the Compass/3D View Selector and 3D Scene Icons to see a wireframed camera and its relationship to an object as it shows the camera's field of view. You then use the 3D View tools to pan, orbit, and zoom the camera/object relationship around to change the perspective.
    *Here's my buggy problem:* when I orbit the camera-object perspective around (that is, move the camera wireframe around a sphere pattern while the image is anchored to a canvas point) so that the camera icon is close to the left or right hand sides of the Canvas and the object's image plane is on a perpendicular with the monitor so that you can't see the object, then the object will flip incorrectly to a mirror image in relation to the wireframe camera even though the camera and object retain their correct spatial orientation in the wireframe, as well as the object's XYZ arrows.
    In other words, Motion seems to get confused with the object's visual orientation even though it keeps the object's correct wireframed relationship to the camera including its XYZ arrows (the arrows continue to point in the correct orientation in relation to the camera, they don't flip with the visual image).
    You can correct this by continuing to move the camera's orbit around the edges. It doesn't take wild orbit swings around to create this buggy behavior, just get the wireframe camera close to the left or right edges of the canvas and nudge the mouse back and forth. It will sporadically flip the object image between normal and mirror and back to normal.

  • Change report manager HTML rendering view %

    Hi All,
    I can change the default HTML Zoom % in report server reports accessed via URL. Add "&rc:Zoom=75 " to the URL and it works. However I cannot change the zoom for report manager reports. Is there any workaround to this? or better idea to change
    HTML rendering?
    Thanks

    Hi sonnyA,
    According to your description, you want to set the default zoom level when accessing reports in Report Manager. Right?
    In Reporting Services, the Zoom is already a deprecated property in HTML Device Information Settings. Change the <Zoom> tab in rsreportserver.config will not work. In this scenario, we can embed javascript in Report.aspx page to get the zoom
    selection box object and set the zoom level. Please follow the steps below:
    1. Go to Report.aspx, this file locates at C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportManager\Pages,
    embed the code below:
    <script>
    function pageLoad() {
            var cuInternalViewer = $find('ctl32_ctl03');
                cuInternalViewer.set_zoomLevel(75);
    </script>
    2. The result looks like below:
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Screen display density variations between files

    I have several files linked together as a book. For some reason the density of lineweight and fonts in one of the files "appears" lighter than the others on my monitor. With the other (7) files the lines and fonts definitely "look" heavier...
    I've checked everythg I can thk of: same zoom level, both on high qual display, Normal screen modes, Display Black Accuracy is set the same in Pref, swatch colors match, lineweight same, text/font settings same... But at all (matching) zoom levels both object lines and text appear differently. The problem file looks as if the lines and text are lighter.
    Proof prints in the office seem the same, but not sure if this is going to be critical for high res publication, so I hesitate continuing to work with this file even tho I have a lot of work in it.
    Can anyone help me understd what the difference is in the files?
    Thank you.
    /Dennis

    >At any rate, problem solved.
    Actually not. You only have a work around.
    The transparency on the problem pages may be due to the existence of one or more stray points that were orphaned when one or more line segments were deleted. I recently encountered such a case.
    Proceed this way: working on a copy of the file, delete objects one by one from the problem page(s) until there seems to be nothing on the page or spread. If you still have the transparency icon for that page in the pages palette, do a select all to see if some stray points become selected, and delete them. In the case I encountered, the transparency icon immediately disappeared. upon deleting the stray points.
    If that's not it, some one else step up to the plate.
    Al

  • White box syndrome!

    Hi all. I am working with InDesign 2014 CC. Lately, I have had trouble with my display. When zoomed out, all objects appear in place, like they should be.
    However, when zooming in to at least 50%, the document just displays white boxes where the objects and text should be.
    This has never happened to me before, and I've been working with InDesign for quite some time. I have tried resetting my preferences, but to no avail. Anyone have any ideas as to how to fix this annoying bug? Another thing of note, when I recreate the document, and drag in the objects and text boxes, or copy them from the weird buggy document to a fresh new one, everything displays as it should.

    Hi Ryan,
    If the problem only occurs in one particular document, and elements copied into a new document display OK, then surely it is the original document that is corrupted. Have you tried exporting to IDML to clear the corruption?
    Regards,
    Malcolm

Maybe you are looking for

  • How do I get my iPhone to stop turning on cellular data for apps on its own?

    I have tried resetting on the iphone and resetting all settings. Nothing seems to be working. So far the only improvement is that my iphone stopped turning on cellular data for other apps but now, interestingly, it's turning on cellular data for all

  • Seeking Advice on Preset Choice in Premiere Pro 2.0, Using Creative Vado HD

    Hello Adobe Premiere Forum Users, I'm new to the forum and I wondered if you could help me. I've just got a new Pocket Camcorder, the Creative Vado HD. I wanted to see if I could edit the footage that the camera produces using the version of Premiere

  • What browser works with iphone?

    Safari will not allow me to sign in to my comcast account, but I do have access to my email.  Safari will not accept my password.  Firefox says Apple restrictions prevent it from being available on iphone. 

  • Ipad2 to the new ipad

    Is it worth upgrading from Ipad2 to the new Ipad?

  • Bitwise in SQL Question

    I need to run a query that returns 3 values. 1.     All numbers between 0 and 65535 where the Most Significant Byte (MSB) is Greater then the Least Significant Byte (LSB). As AAA 2.     MSB * LSB as BBB 3.     Dense Rank order by BBB, AAA Any help on