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

import complete scene, preferably as usd #1029

Closed
freLorbeer opened this issue Dec 13, 2023 · 2 comments · Fixed by #1043
Closed

import complete scene, preferably as usd #1029

freLorbeer opened this issue Dec 13, 2023 · 2 comments · Fixed by #1043
Labels
first answer provided question Question, not yet a bug ;)

Comments

@freLorbeer
Copy link
Contributor

Describe the issue

Hi,

I would like to import an USD scene that comes from nvidia omniverse.
Is there a way to import usd as it is possible in blender?

If not, is there another way to import a complete scene that is modeled in advance instead of "only" placing the objects randomly?

I still wanna use the randomizing functionality of textures, lighting, etc. but as I mentioned I would like to do this in a premodeled scene.

Minimal code example

No response

Files required to run the code

No response

Expected behavior

currently all objects are placed randomly on a flat ground plane.

I would like to load a scene (.usd, .blend or whatever which format but preferably usd) and then use the blenderproc functionalities on top.

BlenderProc version

2.6.1

@freLorbeer freLorbeer added the question Question, not yet a bug ;) label Dec 13, 2023
@cornerfarmer
Copy link
Member

Hey @freLorbeer,

blenderproc does not yet support .usd files, however adding that would be pretty simple. Just add another case to the ObjectLoader here, where you use bpy.ops.wm.usd_import. Feel free to create a PR!

Alternatively, you can already load full scenes, for example as .obj files via bproc.loader.load_obj or as .blend files via bproc.loader.load_blend

@freLorbeer
Copy link
Contributor Author

@cornerfarmer

Alright, I will definetly give it a try and let you know.
But this will maybe have to wait till next year.

freLorbeer added a commit to freLorbeer/BlenderProc that referenced this issue Jan 16, 2024
extension of the load_obj module allows loading .usd/.usdc/.usda files and load it as a scene

closes DLR-RM#1029
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first answer provided question Question, not yet a bug ;)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants