Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - bevy_render2: Make default near plane more sensible at 0.1 #2703

Conversation

superdump
Copy link
Contributor

Objective

The default perspective projection near plane being at 1 unit feels very far away if one considers units to directly map to real world units such as metres. Not being able to see anything that is closer than 1m is unnecessarily limiting. Using a default of 0.1 makes more sense as it is difficult to even focus on things closer than 10cm in the real world.

Solution

  • Changed the default perspective projection near plane to 0.1.

@zarik5
Copy link

zarik5 commented Aug 21, 2021

Using a default of 0.1 makes more sense as it is difficult to even focus on things closer than 10cm in the real world.

I would argue that especially for VR a better default would be 0.01m (1cm). Even if you can't focus that close you would probably notice objects clipping if put near the face.

@cart cart added the A-Rendering Drawing game state to the screen label Aug 23, 2021
@cart
Copy link
Member

cart commented Aug 23, 2021

Yup I buy that. This is an indisputable improvement over the current situation so I think ill just merge it now. But I'm happy to discuss alternative defaults. Its worth looking into what other engines default to as well. Godot defaults to 0.05.

@cart
Copy link
Member

cart commented Aug 23, 2021

bors +

@bors
Copy link
Contributor

bors bot commented Aug 23, 2021

Did you mean "r+"?

@cart
Copy link
Member

cart commented Aug 23, 2021

Yes bors thank you :)

@cart
Copy link
Member

cart commented Aug 23, 2021

bors r+

bors bot pushed a commit that referenced this pull request Aug 23, 2021
# Objective

The default perspective projection near plane being at 1 unit feels very far away if one considers units to directly map to real world units such as metres. Not being able to see anything that is closer than 1m is unnecessarily limiting. Using a default of 0.1 makes more sense as it is difficult to even focus on things closer than 10cm in the real world.

## Solution

- Changed the default perspective projection near plane to 0.1.
@bors
Copy link
Contributor

bors bot commented Aug 23, 2021

@bors bors bot changed the title bevy_render2: Make default near plane more sensible at 0.1 [Merged by Bors] - bevy_render2: Make default near plane more sensible at 0.1 Aug 23, 2021
@bors bors bot closed this Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants