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

rooms definitions: add "room remove" command #26

Open
meszaros-lajos-gyorgy opened this issue Oct 1, 2024 · 0 comments
Open

rooms definitions: add "room remove" command #26

meszaros-lajos-gyorgy opened this issue Oct 1, 2024 · 0 comments
Labels
room definitions Ticket about rooms files

Comments

@meszaros-lajos-gyorgy
Copy link
Collaborator

Columns in a large room are currently have to be built in a way that is basically just placing smaller rooms around a gap:
image

It should also simplify adding lights to a large room.

This could be simplified with the introduction of "room remove":

# add large room with 'cave' texture
room add 700 300 700 cave

# remove polygons from the center and cover up the hole with 'column' texture
room remove 100 300 100 column y-

It should work the following way:

  1. remove polygons from previous rooms when intersecting
  2. add its own polygons with faces pointing inside out (the opposite of room add)

Caveats / Problematic parts: need to make sure that polygons which are out of bounds won't get introduced. For example a pillar that goes all the way from floor to ceiling doesn't need its own top and bottom polygons as they won't be seen. Maybe that's an optimization that can be done later.

An example on where this would be useful: pillars in the pool room
image

@meszaros-lajos-gyorgy meszaros-lajos-gyorgy added the room definitions Ticket about rooms files label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
room definitions Ticket about rooms files
Projects
None yet
Development

No branches or pull requests

1 participant