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

In 3d displays the default camera is not #default #3811

Closed
lesquoyb opened this issue May 9, 2023 · 0 comments
Closed

In 3d displays the default camera is not #default #3811

lesquoyb opened this issue May 9, 2023 · 0 comments
Labels
😱 Bug The issue reveals a bug in GAMA 🖥 Display OpenGL This issue or request concerns only OpenGL displays 👍 Fix to be tested

Comments

@lesquoyb
Copy link
Collaborator

lesquoyb commented May 9, 2023

Describe the bug
If we set explicitly in a 3d display the camera to #default we observe a different rendering than what we have if we do nothing. This could explain why 3d displays tend to not fill the available space (as mentioned in #3557) as the #default camera fills the whole space.
However it seems like the default one is also faulty as it's lacking a part of the world (depending on your model), as you can see here:

/**
* Name: casts
* Based on the internal empty template. 
* Author: baptiste
* Tags: 
*/


model casts

global{
	init {
	}
}

species dummy;

experiment name type: gui {
output{
	display plop type:3d axes:true{
		camera #default;
	species dummy;	
	}
}
}

on my computer this model produces this:
image
you can see that it's missing the top and bottom of the world. On some other models I'm missing some of the left and right parts.
Going further, if you don't set a camera in gaml but switch camera on the fly with the toolbar you will never be able to go back to the initial camera.

To Reproduce
Steps to reproduce the behavior:

  1. copy paste the previous model
  2. Run it and observe that the world doesn't fit the display
  3. remove the camera #default statement
  4. Run again and observe that the world fits the display

Expected behavior
The default camera is the same as #default, and it shows the whole world

@lesquoyb lesquoyb added 😱 Bug The issue reveals a bug in GAMA 🖥 Display OpenGL This issue or request concerns only OpenGL displays labels May 9, 2023
AlexisDrogoul added a commit that referenced this issue May 22, 2023
(note that the "default" camera can be fixed in the preferences)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
😱 Bug The issue reveals a bug in GAMA 🖥 Display OpenGL This issue or request concerns only OpenGL displays 👍 Fix to be tested
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants