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

How do I generate indoor scenes with open doors and open windows? Also, some rooms look like they are not accessible from other rooms. Is there a way to make sure all rooms are connected? #352

Open
andytriboletti opened this issue Oct 12, 2024 · 5 comments
Labels
question Further information is requested

Comments

@andytriboletti
Copy link

andytriboletti commented Oct 12, 2024

I was able to generate an indoor scene, decimate via a blender script, and export to usd so my model was around 30 megs, and I loaded it in unreal engine. It works great. If you're interested in the decimate script, let me know. I used the default commands on a ubuntu wsl windows pc and it ran without problems. Even though I have a 16gb vram card and cuda setup, I couldn't use the GPU, only CPU. It took about half a day to generate.

I have a question: how do I change my configuration or code to allow for all doors being open and all windows being open? I looked at https://github.com/princeton-vl/infinigen/blob/main/infinigen_examples/generate_indoors.py and didn't see it.

Is this possible? Even just skipping over the door and window generation code would work for me. Just leave empty space.

Also, some rooms look like they are not accessible from other rooms. Is there a way to make sure all rooms are connected?

Thank you.

@andytriboletti andytriboletti added the question Further information is requested label Oct 12, 2024
@andytriboletti andytriboletti changed the title How do I generate indoor scenes with open doors and open windows? How do I generate indoor scenes with open doors and open windows? Also, some rooms look like they are not accessible from other rooms. Is there a way to make sure all rooms are connected? Oct 12, 2024
@andytriboletti
Copy link
Author

Here's a video of the Hello Room Infinigen run and export to usd, that I reduced the size of with a python script, and loaded in Unreal Engine:

https://www.youtube.com/watch?v=BKwWVibWPiU

@andytriboletti
Copy link
Author

I was able to just hide them in unity by unselecting mesh render for these subparts.

@andytriboletti
Copy link
Author

here's the decimate script - someone emailed me for it.

https://gist.github.com/andytriboletti/4053fbdae8612523d320cf27615cd9bf

@GCChen97
Copy link
Contributor

Hi, I am also learning to use infinigen.

For the first question, you can check the params of the WindowFactory and DoorFactory of the source code. I am sure that there are parameters for controlling the angles of the window panels.

For the second question, maybe it is the bug of the FloorPlanSolver because I didn't find any constraints for the connectivities of rooms.

@GCChen97
Copy link
Contributor

GCChen97 commented Nov 10, 2024

I just found that I misunderstood the second question. Sorry for that.

The room accessibility can be customized through home_room_constraints in infinigen_examples/constraints/home.py. In the room constraints, the living room is defined to be connected with other rooms, to which you can refer for creating your own house layout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants