Is there a way to get an Orthographic Cylindrical camera lens in Karma (ideally XPU).
Been setting up some scenes that need it and thus far the only option seems to be Redshift as the Karma Lens Material set to Cylindrical gives vertical perspective.
It would also be great if there was FOV controls but that's secondary.
CVEX lenses still don't work in XPU right?
Is there maybe some way of diving in and editing the Karma Lens Material implementation?
Orthographic-Cylindrical Camera in Karma XPU
784 7 2-
- pixelninja
- Member
- 82 posts
- Joined: 3月 2017
- オフライン
-
- dlee
- スタッフ
- 480 posts
- Joined: 9月 2016
- オフライン
Hi. Not at the moment.
The builtin cylindrical lens implementation in karma CPU/XPU are... unconventional. It's going to be changed to be orthographic and match mantra behaviour in next major release, but for now, your only option is to use CPU and make a custom lens shader or modify the existing vex script (lens.h).
The builtin cylindrical lens implementation in karma CPU/XPU are... unconventional. It's going to be changed to be orthographic and match mantra behaviour in next major release, but for now, your only option is to use CPU and make a custom lens shader or modify the existing vex script (lens.h).
-
- pixelninja
- Member
- 82 posts
- Joined: 3月 2017
- オフライン
-
- jsmack
- Member
- 8224 posts
- Joined: 9月 2011
- オフライン
dlee
The builtin cylindrical lens implementation in karma CPU/XPU are... unconventional. It's going to be changed to be orthographic and match mantra behaviour in next major release, but for now, your only option is to use CPU and make a custom lens shader or modify the existing vex script (lens.h).
The current implementation should be kept and renamed though. What type of projection is it? Is it an X-Pan style swinging lens projection? {vertically rectilinear(perspective), horizontally equirectangular(longitudinal)}
Putting a sheet of paper in a coffee can pinhole camera is another type of cylindrical projection, but I think a bit different than the other two.
A Panini projection would be another useful one to have, I think it's also vertically rectilinear but it's horizontally equisolid or some other type of fisheye.
Edited by jsmack - 2026年3月25日 11:40:05
-
- dlee
- スタッフ
- 480 posts
- Joined: 9月 2016
- オフライン
pixelninja
Fair enough. Good to know it's coming though! Thanks
Is is also planned for XPU to support custom lens scripts in some fashion? Octane can do it with OSL for example.
Nothing to announce at this time.
jsmackdlee
The builtin cylindrical lens implementation in karma CPU/XPU are... unconventional. It's going to be changed to be orthographic and match mantra behaviour in next major release, but for now, your only option is to use CPU and make a custom lens shader or modify the existing vex script (lens.h).
The current implementation should be kept and renamed though. What type of projection is it? Is it an X-Pan style swinging lens projection? {vertically rectilinear(perspective), horizontally equirectangular(longitudinal)}
Putting a sheet of paper in a coffee can pinhole camera is another type of cylindrical projection, but I think a bit different than the other two.
A Panini projection would be another useful one to have, I think it's also vertically rectilinear but it's horizontally equisolid or some other type of fisheye.
The new implementation will be the same as mantra's (which pretty much looks like https://www.sidefx.com/tutorials/lens-shaders-for-gamedev/ [www.sidefx.com] scroll down to "Cylindrical" section).
The current implementation is indeed vertically rectilinear and horizontally longitudinal, but the implementation is deeply flawed (vertical fov forced to 45 degrees, and produces nonsensical results if the image aspect ratio isn't square). We do not believe it's implementation worth keeping.
-
- jsmack
- Member
- 8224 posts
- Joined: 9月 2011
- オフライン
dlee
The current implementation is indeed vertically rectilinear and horizontally longitudinal, but the implementation is deeply flawed (vertical fov forced to 45 degrees, and produces nonsensical results if the image aspect ratio isn't square). We do not believe it's implementation worth keeping.
is a 'fixed' version worth implementing as a new projection type? not sure what you would call it, "panoramic" maybe? Use vertical aperture/focal to set vertical fov, same as a rectilinear, then derive horizontal fov from aspect ratio? Not sure how a physical widelux type camera actually works.
Edit:
XPan cameras are just wide aspect traditional lens cameras. The panoramic camera I was thinking of is called a "WideLux"
Edited by jsmack - 2026年3月31日 14:18:58
-
- pixelninja
- Member
- 82 posts
- Joined: 3月 2017
- オフライン
-
- pixelninja
- Member
- 82 posts
- Joined: 3月 2017
- オフライン
A spherical/polar lens that had the ability to independently set the horizontal and vertical FOV, as well as optionally set either of them to orthographic, while being able to render to any resolution or aspect ratio would be amazing.
That would cover most permutations of polar and cylindrical lenses in one go.
That would cover most permutations of polar and cylindrical lenses in one go.
-
- Quick Links



