![]() There are two questions that popped up now: Was able to save the multilayer exr and parse it in python using OpenEXR.InputFile(). Really helpful and also makes the code much more compact. If I need I can always split the multilayer exr to a few files. Just so you’ll understand the context, I am a computer vision practitioner and preparing training data for my algorithms, so I can use any format, as I write my own dataloader. I was using nodes since this is the code I found online and started with. Regarding your comment on the multilayer exr - if you can point me to the right direction that would be great. Links.new(self.image_node.outputs, self.image_file_output.inputs) Self.image_file_output.label = 'Image Output' Self.image_file_output = (type="CompositorNodeOutputFile") Links.new(render_layers.outputs, self.image_node.inputs) The code I used: self.image_node = (type="CompositorNodeGamma") The rendered image also looks dark, so the Gamma alone doesn’t do it, unless I did something wrong. I actually get much closer to the result I got using 2.79 with color management on. ![]() Well, did some tests and without color management the diffuse color is much darker than the albedo I was expecting. I use .engine = 'CYCLES'īpy._transparent = Trueīpy._settings.file_format = 'PNG' # set output format to. On the albedo (or more correctly now it’s the diffuse color), I get an alpha channel but it is all 255’s, so no real transparency. On the rendered image I get the right alpha channel. Another thing that works different is the transparency. If there are any suggestions as to how I can get the true albedo of the model that would be helpful. What I ended up with so far isīpy.context.view_e_pass_diffuse_color = True which gives results similar to the albedo on 2.79, although the colors are a bit off. OK, so I fuddled around with it some more and made some progress. Would appreciate if anyone can help with this. I am currently stuck with the lines: .e_pass_normal = TrueĪnd can’t find the 2.80+ version of it. _settings.file_format = 'PNG' # set output format to. _mode = 'TRANSPARENT'Ĭam_constraint = (type='TRACK_TO')Ĭam_ack_axis = 'TRACK_NEGATIVE_Z'ī_empty = self.parent_obj_to_camera(self.cam) Links.new(render_layers.outputs, self.albedo_file_output.inputs) Self.albedo_file_output.label = 'Albedo Output' Self.albedo_file_output = (type="CompositorNodeOutputFile") Links.new(render_layers.outputs, self.normal_file_output.inputs) # links.new(bias_normal.outputs, normal_file_output.inputs) Self.normal_file_output.label = 'Normal Output' Self.normal_file_output = (type="CompositorNodeOutputFile") Links.new(render_layers.outputs, pth_file_output.inputs) pth_file_output = (type="CompositorNodeOutputFile") Render_layers = ('CompositorNodeRLayers') # Add passes for additionally dumping albedo and normals.īpy.use_pass_normal = Trueīpy.use_pass_color = Trueīpy._settings.file_format = 'OPEN_EXR'īpy._lor_depth = '32' This works on 2.79: def init_renderer_settings(self): Here is the function from my script for setting up the renderer settings. I used it on 2.79 and now upgraded to 2.81a in order to have some new features such as gltf/glb loading, eevee renderer, etc.Īs a first step, I am trying to get the current script to work with the new version, and despite going through the documentation, can’t get it right. I have a python script used for batch rendering.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |