princeton-vl / infinigen

Infinite Photorealistic Worlds using Procedural Generation
https://infinigen.org
BSD 3-Clause "New" or "Revised" License
5.16k stars 432 forks source link

Windows support? #165

Open julscloudops opened 8 months ago

julscloudops commented 8 months ago

Describe the feature you would like to see implemented

Hello!

I am really excited for this project. Any plans for adding Windows support?

I see it's possible to run as a Docker container, would I be able to generate scripts for scenes in there and then port the scripts into my Windows Blender?

araistrick commented 8 months ago

Hello, im interested to add windows support but have no specific timeline or roadmap. Creating .blend files in Docker then opening them in Windows should work great, but transferring any kind of code to Windows wont work unless you can install Infinigen and its dependencies.

In the rc_1.1.1 branch's Installation.md there is a "Infinigen as a Blender-Python script - Minimal Install" version that skips compiling terrain etc and only needs standard python-pip dependencies, and I think could actually already work on windows (albeit with some effort, youd need to manually run pip install /path/to/infinigen using blenders python) if someone wanted to try it out. it would only work to generate individual objects, not run the hello world, however, since it is missing terrain.

The biggest barrier to releasing this version and making it an official option for windows users is writing an installer/documentation for it. The command-line environment on windows seems tricky to work with to me, so the options seem to be to instruct users to install MinGW or similar (which may prove challenging for many), or to provide a Blender addon wrapper for Infinigen, which would take some time.

Itd be great if any windows users would be able to comment how they'd like to be able to download/install Infinigen, and what formats/workflows are familiar to them for installing this type of software. For example, if an executable python-script installer would suffice then I may be able to deliver that far sooner, but I dont know how interacting with that installer & our hello world via solely the command-line would work out.

julscloudops commented 7 months ago

From a user point of view I would be fine with just a executable python script installer or add-on that allows me to use this with Blender on Windows to generate meshes and export them to other 3D applications.

Currently trying to use infinigen with WSL 2 and running through the Hello World.md code. Not sure if I will be able to export the generated meshes at the end and run them on my Windows instance of Blender but things looking good so far!

FelixHSS commented 3 months ago

I used this command in PowerShell. After it is done, I can use Infinigen as Blender Python script to generate assets like corals on Windows.

$env:INFINIGEN_MINIMAL_INSTALL="True"; & Blender/Python/Path -m pip install -e Path/to/Infinigen"

By the way, don't use Blender 4.x. I think the Blender's Python API has been changed. I had to switch to Blender 3.6