October 5 2022 build

From Skyscraper Wiki
Revision as of 11:34, 22 July 2023 by Elevator1512 (talk | contribs) (Created page with "This build mainly features fixes for lighting, but has a number of other things and even has a new FPS indicator on the top right of the screen (from the Ogre engine), which you can change to advanced mode or turn off by pressing F9. If you want to try out lighting, you can turn it on in the INI file. '''Update:''' Make sure you only use the OpenGL3+ renderer if you want to use lighting, because the lighting won't look right in the regular OpenGL renderer. You can choose...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This build mainly features fixes for lighting, but has a number of other things and even has a new FPS indicator on the top right of the screen (from the Ogre engine), which you can change to advanced mode or turn off by pressing F9. If you want to try out lighting, you can turn it on in the INI file. Update: Make sure you only use the OpenGL3+ renderer if you want to use lighting, because the lighting won't look right in the regular OpenGL renderer. You can choose renderers by deleting the ogre.cfg file and starting Skyscraper again.

On Linux, when exiting a building, memory usage will finally go down due to the use of the malloc_trim() function, previously it stayed the same.

This build has the first-ever contribution from a third party, it was a GitHub pull request from NoNoTeal. I cleaned up the changes they made and committed the code to Skyscraper. Their changes fixed an issue with Skyscraper on Macs with Retina displays.

I cleaned up the PolyMesh geometry system to get rid of the "polygon sets" feature, since it made it messy and complicated.

Textures now report on startup.

I finally fixed lighting somewhat, by calculating normals properly.

Shadows now work somewhat, you can turn them on in the INI file, currently they only seem to work for models for some reason.

As usual, let me know how this build is working, and help me fix any issues with it.

Changes:

  1. Added an INI option for shadows, and disabled by default
  2. Shadows are now working, but have a render error on startup
  3. Added an Ogre frame statistics bar
  4. Disable dynamic lighting on lit textures, in order to retain the lighting effect such as on indicators
  5. Simplified light functions
  6. Added SetDirection and LookAt scenenode functions, these need to be tested
  7. Properly compute normals for 3D geometry, this partially fixes lighting issues.
  8. Report loaded textures, no need for it to only be in verbose mode
  9. Cleaned up the PolyMesh geometry system, mostly to remove the double-vector (multi-polygon) structures
  10. Removed Console's ability to hold positions, due to problems. Fixed the text display, and removed the "Fix Scroll" button.
  11. Changes for macOS (#8) (this was the first 3rd-party contribution to Skyscraper ever, I modified their changes and committed), this mainly fixes an issue with Retina displays.
  12. Reset view mode on SBS shutdown
  13. Added a test light for the first floor, and one for each elevator
  14. Fix for a crash that would happen when Caelum fails to load, the user exits to the main menu and loads another building. In this, the default skybox will be loaded on that restart situation.
  15. Run malloc_trim to free memory to OS on individual sim engine shutdown also
  16. Free unused hardware buffers in UnloadSim()
  17. On Linux, release as much free memory as possible when exiting to the main menu, using malloc_trim()

See also

External links