Karma Solaris and Karma rop not matching
1708 10 2-
- sheep
- Member
- 29 posts
- Joined: Jan. 2013
- Offline
Im slowlly moving into Solaris Karma, but I have notice I can't get the same "look" in Karma vs Karma Rop or OBJ context viewport vs Solaris viewport, you can see also i have to rotate the envlight in Solaris to actually match the same as the OBJ viewport(is this normal?)
is possible to get a 1 to 1 between Karma rop and Karma Solaris?
is possible to get a 1 to 1 between Karma rop and Karma Solaris?
Edited by sheep - Jan. 17, 2025 19:14:45
-
- robp_sidefx
- Staff
- 582 posts
- Joined: June 2020
- Offline
sheep
is possible to get a 1 to 1 between Karma rop and Karma Solaris?
The Karma ROP is a wrapper around a Solaris context with some Scene Import nodes. So, yes, you should definitely be able to get a 1-1 match by manually setting things up in /stage, but it will require some effort to deal with differences between USD and Objects (you noted, for example, that dome lights have a different orientation - Scene Import handles this for you).
-
- Tanto
- Member
- 538 posts
- Joined: Nov. 2016
- Offline
-
- sheep
- Member
- 29 posts
- Joined: Jan. 2013
- Offline
robp_sidefxsheep
is possible to get a 1 to 1 between Karma rop and Karma Solaris?
The Karma ROP is a wrapper around a Solaris context with some Scene Import nodes. So, yes, you should definitely be able to get a 1-1 match by manually setting things up in /stage, but it will require some effort to deal with differences between USD and Objects (you noted, for example, that dome lights have a different orientation - Scene Import handles this for you).
yes the Dome light is the only difference i can point, but i do the rotation because when loading the hdr it is not in the same orientation as obj, should i istead "Scene import" the dome light from Object?, what iam wondering is why in my case i need to make this rotation to make the hdr be in the same orientation as the Object dome?
-
- robp_sidefx
- Staff
- 582 posts
- Joined: June 2020
- Offline
sheep
i do the rotation because when loading the hdr it is not in the same orientation as obj, should i istead "Scene import" the dome light from Object?
That's entirely up to you. If you've been working at the Object level and want to quickly bring your work into Solaris, Scene Import is designed exactly for this.
Regarding getting a match, the translators are all written in Python and can be found in
$HH/husdplugins/objtranslators
. For example the envlight
translator contains this:if self._node.evalParm('env_map'):
# Mantra is 180deg off from the USD spec
lgt.AddRotateYOp().Set(180)
-
- sheep
- Member
- 29 posts
- Joined: Jan. 2013
- Offline
@robp_sidefx thanks a lot for the help, i have one last question for this post,when rendering water or glass with grid i see in Mantra it can refract the background envieroment light fine, but in karma i can figure how to make this grid to be correct refractive un less i extrude the grid or have some background geometry and not only the imagine from the domelight, when i look the grid from the backuard normals i can see the refraction, im using the principalshader, but i gget the same issue with the XPU standard_surface
Edited by sheep - Jan. 22, 2025 17:04:53
-
- robp_sidefx
- Staff
- 582 posts
- Joined: June 2020
- Offline
-
- sheep
- Member
- 29 posts
- Joined: Jan. 2013
- Offline
-
- dlee
- Staff
- 471 posts
- Joined: Sept. 2016
- Offline
Hi. By default transmissive materials assume that the light sources are outside the object, so it ignores direct lighting that are coming from inside the object (in order to aid sampling). With single-sided grid like above, the backside of the grid is considered "inside" so the dome light from underneath is being ignored.
You can change this behaviour via Render Geometry Settings LOP (under Shading tab, change Direct Refraction Subset parameter from "Outside" to "Both").
You can change this behaviour via Render Geometry Settings LOP (under Shading tab, change Direct Refraction Subset parameter from "Outside" to "Both").
-
- sheep
- Member
- 29 posts
- Joined: Jan. 2013
- Offline
dlee
Hi. By default transmissive materials assume that the light sources are outside the object, so it ignores direct lighting that are coming from inside the object (in order to aid sampling). With single-sided grid like above, the backside of the grid is considered "inside" so the dome light from underneath is being ignored.
You can change this behaviour via Render Geometry Settings LOP (under Shading tab, change Direct Refraction Subset parameter from "Outside" to "Both").
this worked great and easy, really thanks a lot for you both @dlee @robp_sidefx
Edited by sheep - Jan. 23, 2025 12:18:29
-
- sheep
- Member
- 29 posts
- Joined: Jan. 2013
- Offline
-
- Quick Links