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

Convert intangible decor objects to static geometry #71

Open
mwpenny opened this issue May 31, 2024 · 0 comments
Open

Convert intangible decor objects to static geometry #71

mwpenny opened this issue May 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mwpenny
Copy link
Owner

mwpenny commented May 31, 2024

Version of the game

Latest (f35bf3d)

What is the enhancement?

The game has an internal limit for the number of dynamic objects that can exist in a scene (MAX_DYNAMIC_SCENE_OBJECTS). The current maximum is 64. Once the limit is exceeded, calls to dynamicSceneAdd() will have no effect, meaning some objects will not appear. This is prohibitive for larger levels such as chamber 15 (#39).

It is possible to increase the limit, but the are also opportunities to reduce the amount of objects. A large contributor against the dynamic object limit in chamber 15 is decor (i.e., observation room furniture). Chamber 15 currently has 33, with 2 more yet to be modelled/added.

Intangible decor objects do not need the overhead that physics-aware decor does. Such objects should be converted into @static level geometry. This may be as simple as changing the object names in level .blend files. If not, it should be done at build time.

Additional context

  • Dynamic objects are not the same as dynamic collision objects. The latter are just collision, whereas the former are renderable objects with no collision. For example, triggers have dynamic collision but no dynamic object and the energy ball burn marks are the other way around.
@mwpenny mwpenny added the enhancement New feature or request label May 31, 2024
@mwpenny mwpenny changed the title Convert intangible decor objects to static geometry at build time Convert intangible decor objects to static geometry Jun 5, 2024
@mwpenny mwpenny self-assigned this Jun 7, 2024
@mwpenny mwpenny removed their assignment Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant