How to import volume and assign material in LOPs?

   6322   13   1
User Avatar
Member
28 posts
Joined: 9月 2008
Offline
I exported a volume in USD format. I creating the pyro material in the material library and assigning the material. Nothing shows up in the viewport. Even without assigning the material I don't see any volume or even a bounding box. What can be done here to see volume primitives in LOPs?

Attachments:
Capture.JPG (19.9 KB)

www.earthfixed.com
User Avatar
Member
8043 posts
Joined: 9月 2011
Offline
Volumes are working fine for me. Have you checked that your volume has reasonable data?

Does my scene work for you?

Attachments:
volume_example.zip (2.3 MB)

User Avatar
Member
28 posts
Joined: 9月 2008
Offline
Your setup does work for me, however when I use my own file(a bgeo containing multiple fields), it does not work. In this setup I just replaced your file with mine, and set the fields parameter to density. When the material gets assigned the volume no longer appears in the viewport.

Thanks for your help

Attachments:
Capture.JPG (246.4 KB)

www.earthfixed.com
User Avatar
Member
2129 posts
Joined: 9月 2015
Offline
I don't have issue importing my own vdb bgeo file.

I think it's as jsmack said -
Have you checked that your volume has reasonable data?

Maybe post that file or screen shot an info panel on your vdb.bgeo on a file import node or something like that.
User Avatar
Member
28 posts
Joined: 9月 2008
Offline
The data is all correct, it appears in the viewport up until I assign the material. Once the material gets assigned it is black. This doesnt happen if I use the VDB that jsmack provided.

Attachments:
Capture.JPG (162.8 KB)

www.earthfixed.com
User Avatar
Member
28 posts
Joined: 9月 2008
Offline
Attaching the bgeo file here with a section of the volume.

Attachments:
test_volume.bgeo (5.2 MB)

www.earthfixed.com
User Avatar
Member
2129 posts
Joined: 9月 2015
Offline
Just throwing darts here…On your volume Lop in your fields parameter do you get anything if you also put in vel, heat and fuel?

How about also increasing the density scale on the shader itself.
Edited by BabaJ - 2020年1月15日 17:43:35
User Avatar
Member
2129 posts
Joined: 9月 2015
Offline
I think it's was just a matter of resetting the material assignment node.

When I initialy referenced your bgeo file you posted, I got nothing once on the material assignment node flagged to visible.

If I cleared the assignment and re-entered, it came up and rendered.
User Avatar
Member
28 posts
Joined: 9月 2008
Offline
Interesting, are you rendering with Karma? Maybe that's my issue? I can see the volume in Houdini GL but doesn't look shaded correctly according to the pyro settings. Attaching hip file. The output node is in sops under /obj/pyro_import/import_pyrofields save to file.

Attachments:
lops_test.hip (1.5 MB)

www.earthfixed.com
User Avatar
Member
2129 posts
Joined: 9月 2015
Offline
I got it to work by resampling your voxel size.

So, as jsmack originally said it's a matter of having the right data.

Attachments:
Lops_Volume_Shading_Test.hiplc (13.7 MB)

User Avatar
Member
28 posts
Joined: 9月 2008
Offline
Hey BabaJ,
I really appreciate your help, I do see the volume rendering now, but it looks like only density is taken into account. Here is the mantra equivalent using the file you send, but swapping the sop import node to be the pyro fields node. Notice how the temperature and heat fields are not rendering correctly in the karma example.

Attachments:
karma.JPG (437.3 KB)
mantra.JPG (44.0 KB)

www.earthfixed.com
User Avatar
Member
28 posts
Joined: 9月 2008
Offline
Also I don't believe the color is working either, because I had smoke color set to green in that file and it still renders as greyscale.
www.earthfixed.com
User Avatar
Member
2129 posts
Joined: 9月 2015
Offline
That's probably because in the file I posted I had in the material assignment:

/volume1/sopimport1/materials/

once I specified the actual shader:

/volume1/sopimport1/materials/fireball

Things seem to be ok then.
User Avatar
Member
28 posts
Joined: 9月 2008
Offline
Holy toledo! That worked out thank you so much BabaJ!

Attachments:
pyro.JPG (135.8 KB)

www.earthfixed.com
  • Quick Links