surreal
surreal copied to clipboard
Data generator doesn't work on GPU mode??
Hi gulvarol,
Thank you for providing such a good tool, when I run main_part1.py, it seems too slow to render one frame on CPU mode, so I modify your code by adding:
bpy.context.user_preferences.addons['cycles'].preferences.compute_device_type = "CUDA"
bpy.context.user_preferences.addons['cycles'].preferences.devices[0].use = True
scene.cycles.device = 'GPU'
Now it works on GPU mode, but those images rendered on GPU mode lose body texture.
Any ideas? Thank you very much:)
Sicong
I have almost never played with GPU mode, sorry I don't know how much the quality differs.
On Sat, Jun 9, 2018 at 5:28 AM sta105 [email protected] wrote:
Alright, it is because OSL doesn't work on GPU mode, so I removed lines:
script = tree.nodes.new('ShaderNodeScript') script.location = -230, 400 script.mode = 'EXTERNAL' script.filepath = sh_path script.update()
and add link:
tree.links.new(uv_im.outputs[0], emission.inputs[0])
I know that the default backend is SVM in blender, Could you tell tell me if I can use this backend to get the rendered image with the same quality? Thank you.
Sicong
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gulvarol/surreal/issues/12#issuecomment-395936297, or mute the thread https://github.com/notifications/unsubscribe-auth/ACn8N80LKb_Ngy11L_vueiCkg6NZ_fJCks5t60DXgaJpZM4UhFaq .
@sta105 Hi Sicong did you manage to get GPU to work? I also have the same problems now :( Would appreciate any help. I used blender 2.78b because the blender version on the github page doesn't work with gpu
Losing body texture happens mostly when there is something wrong with the lighting. You might want to try removing the spherical harmonics, i.e. things related to the osl script. I see that there is no GPU support: https://docs.blender.org/manual/ko/dev/render/cycles/nodes/osl.html
@gulvarol Thank you for the prompt response. If I remove osl I just get the basic grey model. Is there anyway to convert the osl file to basic shading in blender?