3d Appearing Distance

This forum is currently in read-only mode.
From the Asset Store
3D Car Pack 1
$2.99 USD
3D models + Rendered Low-Poly Cars in isometric, top-down, and side angles.
  • Can you set the distance that objects appear at in 3D? If so how?

  • For a 3Dbox:

    1, Goto the object properties.

    2, Change the 'z' depth setting (the one underneath 'Depth')

    3, Enter negative settings to move the object away from the camera.

  • I actually meant that at a certain distance away from the camera the boxes disappear. Is there a way to change that distance?

  • The box will disappear if it is too far away from the camera? Thats Normal.

    Try this cap

    <img src="http://dl.dropbox.com/u/22173473/3dzdepth.png">


  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I think he is asking about something that in 3D apps is called the "clipping distance"- the distance range away from the camera location in which objects are rendered or not, so they are clipped if too close or too far from the camera.

    As far as I know construct doesn't have any option to specify that distance.

  • The near clipping distance is defined by the Window Property Eye Distance (3d) which is by default 500.

    The far clipping distance is the near clipping distance minus 10000, or -9500 by default.

  • CC 1 is a 2D game creation system, after all. It never pretended to be a 3D system, so it's implementation is very limited. It may change in C2 hopefully.

  • The eye distance doesn't actually change the clipping distance it just changes how far away objects appear to be. Assume you have a model in which ten pixels represent a foot. You create a box that has a height of 50 a width of 50 and a depth of 50. If you half the eye distance and make it 250 then your box will appear to have a height of 50 a width of 50 and a depth of 100. When you changed the eye distance you changed your model along only the z axis to be five pixels per foot. This changes your box to be rectangular. You can get around this by halving your depth. By changing the eye distance you can make objects look like they are disappearing\appearing farther away but they disappear\appear the same number of pixels away. This works fine unless you are concerned about the resolution of your game which I am. There is a similar property in each 3D box you create called Rise Scale. "Effects how the Z units are scaled. eg: A depth of 20 will actually be sixty four if the scale is 3.2." If you look at the bottom of your properties bar with Rise Scale selected this is the message you will see. I had the idea to use both eye distance and rise scale combined to make them appear to be farther away when they disappeared without losing any resolution but was not able to get it to work. I then experimented with Rise Scale alone and found it did not distort the proportions of the box but only the placement. I saw that with several boxes with different rise scale settings they all disappeared the same distance away from the screen. ie. They were all the same width on the screen when they disappeared. If any one knows how to change the actual clipping distance or how to use eye distance to make the clipping distance look farther away without losing resolution then please tell me.


    Edit: I went and messed around with the eye distance some more and found that it does change the number of pixels from the screen that objects disappear but I couldn't get the distance to be more than eleven thousand pixels. If you are doing 20 pixels per foot that is only five hundred feet away. This means if you have something in your game around thirty feet tall or so it will disappear while still quite large on the screen. Changing the eye distance does affect objects like I said earlier so I still have a problem with resolution.

  • Well, you can fake it by changing the scale of the objects based on the Z position, so all the objects disappear (have scale 0) at the maximum allowed clipping depth, this decreases Z positioning resolution though.

    example (based on chrisbrobs .cap):


    Edit: Ok, I realized that the distance between objects were getting messed up when you only scale them, so I also applied the scale to the positions in order to fix it. Link above is updated with these changes.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)