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

Model reference other model #336

Closed
StasJ opened this issue Jul 10, 2019 · 3 comments
Closed

Model reference other model #336

StasJ opened this issue Jul 10, 2019 · 3 comments

Comments

@StasJ
Copy link

StasJ commented Jul 10, 2019

The documentation states:

Models are a container of scene data. They can hold the different geometries and volumes as well as references to (and instances of) other models.

However it does not appear possible to add a model to another. Instancing appears to be a workaround but I cannot get it to work.

@johguenther
Copy link
Contributor

You need to wrap the model into a geometry with ospNewInstance first, then you can add that geometry to another model.

@StasJ
Copy link
Author

StasJ commented Jul 12, 2019

I tried that and it does not work.

World Model -> Instance -> Model -> Volume: Nothing rendered
World Model -> Volume: Renders volume

@johguenther
Copy link
Contributor

Ah, you want to instance Volumes and not Geometries? Then unfortunately you need to wait for the next release (v2.0), because this is not supported in v1.8.

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

3 participants