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 to automatic the process without using blender #23

Closed
enor2017 opened this issue Jul 17, 2023 · 3 comments
Closed

How to automatic the process without using blender #23

enor2017 opened this issue Jul 17, 2023 · 3 comments

Comments

@enor2017
Copy link

Thank you for the wonderful work!

Now since the addon only works inside Blender, I have to manually open a 3D model, set parameters, and run the script. May I know whether I can automate this process by executing a Python script?

Thank you so much again!

@maximeraafat
Copy link
Owner

Hi @enor2017, thanks a lot for your interest in BlenderNeRF!

The plugin is designed to be used with a simple user interface within Blender, you could however write a python script utilising the tools from BlenderNeRF to automate the capturing process. Though in this case, you might want to have a look the original script written by the authors behind NeRF (the link to their script is provided in this issue).

The authors' script provides a simplified scenario of the Camera on Sphere method. If you need more control over what to render and export, feel free to copy some of the methods in my code. The most important ones are get_camera_intrinsics and get_camera_extrinsics in the blender_nerf_operator.py file, and you can checkout the sof/ttc/cos_operator.py scripts to see how these functions are being called for each respective method.

Let me know whether you run into any issues with writing such a script, or whether you struggle with understanding some code parts of the plugin.

@enor2017
Copy link
Author

Hi @enor2017, thanks a lot for your interest in BlenderNeRF!

The plugin is designed to be used with a simple user interface within Blender, you could however write a python script utilising the tools from BlenderNeRF to automate the capturing process. Though in this case, you might want to have a look the original script written by the authors behind NeRF (the link to their script is provided in this issue).

The authors' script provides a simplified scenario of the Camera on Sphere method. If you need more control over what to render and export, feel free to copy some of the methods in my code. The most important ones are get_camera_intrinsics and get_camera_extrinsics in the blender_nerf_operator.py file, and you can checkout the sof/ttc/cos_operator.py scripts to see how these functions are being called for each respective method.

Let me know whether you run into any issues with writing such a script, or whether you struggle with understanding some code parts of the plugin.

Hi @maximeraafat , thank you so much for your patient instructions; it works very well and your works are wonderful!

@maximeraafat
Copy link
Owner

Hi @enor2017, thank you so much for your kind words and I'm glad I was of help! :)

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

No branches or pull requests

2 participants