Why the background image is not visible in the refraction!

   548   7   1
User Avatar
Member
407 posts
Joined: Aug. 2015
Offline
Hi guys,

I want the background image be visible in the object's refraction, so I add my desired image to a "Background Plate" LOP, and to my camera background Image file tab too, but it doesn't work!

How can I fix it?

Thanks for helping.

Attachments:
Karma BG in refraction.jpg (285.3 KB)

Masoud Saadatmand (MSDVFX)
User Avatar
Member
2537 posts
Joined: June 2008
Offline
You can try the old trick of parenting a grid with the image to your camera. Then the background plate will be a "real" object in the scene which can reflect rays.
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
225 posts
Joined: Feb. 2016
Offline
Masoud
Hi guys,

I want the background image be visible in the object's refraction, so I add my desired image to a "Background Plate" LOP, and to my camera background Image file tab too, but it doesn't work!

How can I fix it?

Thanks for helping.

Is this karma xpu or karma cpu? the background plate lop doesn't work with karma xpu. It was supposed to work in houdini 20 but it does not. The background plate lop has a vex based material and vex based materials only work with karma CPU. There is supposed to be a materialX material in the background plate lop for xpu, but it isn't there. Sidefx logged this as a bug when I reported it a few months ago.
Edited by evanrudefx - April 16, 2024 10:51:42
Thanks,

Evan
User Avatar
Member
407 posts
Joined: Aug. 2015
Offline
@Enivob
Hi Enivob, I know that trick but I want to find the right way to use Karma features.
Masoud Saadatmand (MSDVFX)
User Avatar
Member
407 posts
Joined: Aug. 2015
Offline
@evanrudefx
Hi there, I tried both XPU and CPU, but the same results.
Masoud Saadatmand (MSDVFX)
User Avatar
Member
225 posts
Joined: Feb. 2016
Offline
Masoud
@evanrudefx
Hi there, I tried both XPU and CPU, but the same results.

I see the reason it isnt working from your photo. You have to plug in the second wire and turn on import render vars from second input on the karma render settings.
Edited by evanrudefx - April 17, 2024 09:34:11

Attachments:
fix2.PNG (132.5 KB)

Thanks,

Evan
User Avatar
Member
407 posts
Joined: Aug. 2015
Offline
Hi @evanrudefx, no it doesn't fix the problem.
Masoud Saadatmand (MSDVFX)
User Avatar
Member
225 posts
Joined: Feb. 2016
Offline
Masoud
Hi @evanrudefx, no it doesn't fix the problem.
You should post the hip file so I can see what you are doing wrong. Even if that didn't fix it those changes needed to be made.

edit: I see the other issue. In your photo you dont have a primitive to use as a holdout. You need to place a grid or some type of geometry behind the sphere and assign it as the primitive to use in the background plate lop.
Edited by evanrudefx - April 18, 2024 10:01:24
Thanks,

Evan
  • Quick Links