Replies: 2 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm following up on an older discussion – sorry for opening a new one 😅
The response I marked as the solution was helpful, but it didn’t explain how to render from a custom camera. In aVersionOfReality’s case, they needed to render a specific region (from 0 to 1 on the X and Y axes) using an orthographic camera, but the provided answer didn’t touch on how to actually define and use a different camera for the texture render.
Anyways, I’ve made some progress based on your advice.
So far, I’ve:
However, I’m stuck on how to render this texture using a custom camera of my choosing. As far as I can tell, Malt only provides one camera (either scene_eval.camera or context.region_data.view_matrix) through MaltRenderEngine.py, and the Scene class supports only a single camera as well.
I’m not sure how to add another camera without interfering with the main rendering. Would I need to extend the Scene class to support more cameras? Or modify MaltRenderEngine.py to pass in extra camera data? What changes to the do_render section would i need to make?
Any guidance or pointers would be hugely appreciated. I’m so close, I just need to expose a new camera to use for my texture without breaking the main rendering. I'm definitely no programmer by any means so I'm surprised I managed to get this far.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions