Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8217601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:30:53+00:00 2026-06-07T12:30:53+00:00

The default universe bounds are x=[-1 meter,1 meter], y=[-1,1] and z=[-1,1]. When objects intersect

  • 0

The default universe bounds are x=[-1 meter,1 meter], y=[-1,1] and z=[-1,1]. When objects intersect these bounds they are rendered only partially. How can I set another universe size?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T12:30:55+00:00Added an answer on June 7, 2026 at 12:30 pm

    Well actually, the Default Universe technically is unlimited, it is a virtual universe after all.

    This is how the Java3D universe works:

    enter image description here

    Source:

    • http://java.sun.com/developer/onlineTraining/java3d/j3d_tutorial_ch1.pdf (Page 1-11)

    So the universe is not too small, your object is just simply too big for the view you are trying to get. Image standing right next to a massive building, theres no way you can see the whole thing at once, but if you step back you can all of it from a distance and it appears smaller. So, you either need to move the object or move your view. Here is how you would move your object:

    TransformGroup moveGroup = new TransformGroup();
    Transform3D move = new Transform3D();
    move.setTranslation(new Vector3f(0.0f, 0.0f, -10.0f));
    //^^ set the Vector3f to where you want the object to be
    moveGroup.setTransform(move);
    moveGroup.addChild(YOUR_OBJECT);
    

    You can also change where your viewing platform is viewing from. Here is how you would do that:

    public class MoveEye extends Applet
    {
        public MoveEye()
        {
            setLayout(new BorderLayout());
            GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
            Canvas3D canvas = new Canvas3D(config);
            add("Center", canvas);
    
            BranchGroup content = getScene();
            content.compile();
    
            SimpleUniverse universe = new SimpleUniverse(canvas);
            Transform3D move = lookTowardsOriginFrom(new Point3d(0, 0, -3));
            universe.getViewingPlatform().getViewPlatformTransform().setTransform(move);
            universe.addBranchGraph(content);
        }
    
        public BranchGroup getScene()
        {
            BranchGroup group = new BranchGroup();
    
            group.addChild(new ColorCube(.5));
    
            return group;
        }
    
        public Transform3D lookTowardsOriginFrom(Point3d point)
        {
            Transform3D move = new Transform3D();
            Vector3d up = new Vector3d(point.x, point.y + 1, point.z);
            move.lookAt(point, new Point3d(0.0d, 0.0d, 0.0d), up);
    
            return move;
        }
    
        public static void main(String args[])
        {
            Frame frame = new MainFrame(new MoveEye(), 256, 256);
        }
    }
    

    It’s probably good practice to just move the View instead of moving the object but in this case you can do either i suppose, i hope this helped!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

By default, an unstyled set of nested <ul> lists looks like this (in Chrome,
'Default UITableViewCell styles from Apple should not be used' Can somebody tell me what
By default Flask ends a session when the user closes the browser. How can
By default, properties defined on the NAnt command line are read-only, even ignoring the
Default, Windows controls don't have DoubleBuffer. When I use it, I can reduce flicker.
The default port is 1433, but somebody changed it in my hosting, how can
the default hint of the editView at the left of editView,can i put at
By default, emacs 22.1.1 only shows the top of the compilation buffer when you
The default 64 MB max heap memory can be small for a large Java
Default programs for launching a specific type of file can be configured in windows.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.