-
-
Notifications
You must be signed in to change notification settings - Fork 981
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
Remove improper "active" attribute from skyBox in DotSceneLoader #3082
Conversation
I think we should rather remove it from DotScene |
Its strange the way it is done, on one hand ogre/PlugIns/DotScene/src/DotSceneLoader.cpp Lines 779 to 789 in 6bcf1d7
|
the current code comes from ogitor, so this might have been driven by some ogitor specific needs. I would rather think about the use-case. Why would someone want to export a disabled skyBox? And is this a common enough usage to force handling of it to all importers/ exporters out there? (as they would have to follow the DTD) |
I guess if you have a SkyBox in your scene you want to have it enabled 😂. The issue is that enabled/disabled is an actual parameter of So one might argue that people would want to choose from the xml if the skybox is enabled or not. I'm not sure what the use case would be to be honest. |
this parameter is there so you can call |
Perhaps someone would want to set the SkyBox but have it disabled, and then call I think that the "active" or "enable" option should be in the DTD and also the behaviour of DotSceneLoader should also be changed so that it passes this option to the That way the DTD reflects better the OGRE API... |
I dont think that this should be a goal of the file format. For one, I am not really happy with the current "sky" API. ogre/OgreMain/src/OgreSceneManager.cpp Lines 1190 to 1195 in a98c9ee
However I do not find them convenient enough to break the old API. But when it comes to it, it is much easier to break API then changing the file format. Furthermore, .scene is also used by the jMonkey engine, so it should not be specific to the current Ogre API: |
But the other point still remains. I think that there is a use case for having the SkyBox disabled in the .scene and enabling it later. |
this can be handled by disabling the skybox immediately after loading. No need to extend the file format for that. As I said, removing stuff from a file format is really hard, so I prefer to keep things minimal here. |
This option is being used in
DotSceneLoader.cpp
but is absent in the DTD.