Chaos Corona Forum
General Category => Porting and API => Chaos Corona for Blender => Topic started by: thiagodesul on 2016-12-09, 18:28:16
-
Hello, i can't render my scene using blender's default particle system to scatter some objects onto a plane.
-
I know hair works and the explode withe particles works, will check out the particles soon.
-
To confirm, also got errors here.
System: Windows 7, Blender 2.78a, Corona SA 2016-10-24, exporter 2.4.6
Full scene gives me:
Traceback (most recent call last):
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 353, in render
render_start( self, scene)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 38, in render_start
render_scene( engine, scene)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 188, in render_scene
bpy.ops.corona.export_scene()
File "C:\programi\b278\2.78\scripts\modules\bpy\ops.py", line 189, in __call__
ret = op_call(self.idname_py(), None, kw)
RuntimeError: Error: Something went wrong, unable to write .scn file. Check directory permissions of export directory.
location: <unknown location>:-1
after disabling "Cube_Particles" (Leaving "Plain_Hair") get this error:
Traceback (most recent call last):
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 353, in render
render_start( self, scene)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 38, in render_start
render_scene( engine, scene)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 188, in render_scene
bpy.ops.corona.export_scene()
File "C:\programi\b278\2.78\scripts\modules\bpy\ops.py", line 189, in __call__
ret = op_call(self.idname_py(), None, kw)
RuntimeError: Error: Something went wrong, unable to write .scn file. Check directory permissions of export directory.
location: <unknown location>:-1
Traceback (most recent call last):
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 353, in render
render_start( self, scene)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 38, in render_start
render_scene( engine, scene)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 192, in render_scene
result = bpy.ops.corona.export()
File "C:\programi\b278\2.78\scripts\modules\bpy\ops.py", line 189, in __call__
ret = op_call(self.idname_py(), None, kw)
RuntimeError: Error: Traceback (most recent call last):
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\operators\export.py", line 41, in execute
result = export(self, scene, placeholders)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\export.py", line 292, in export
return _write(self, scene, filepath, curves)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\export.py", line 315, in _write
result = future.result(timeout = None)
File "C:\programi\b278\2.78\python\lib\concurrent\futures\_base.py", line 405, in result
return self.__get_result()
File "C:\programi\b278\2.78\python\lib\concurrent\futures\_base.py", line 357, in __get_result
raise self._exception
File "C:\programi\b278\2.78\python\lib\concurrent\futures\thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\export.py", line 338, in _export_object
return decide_format( self, full_path, obj, scene, curves)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\export.py", line 260, in decide_format
return write_obj( self, obj_path, obj, scene, curves)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\export.py", line 438, in write_obj
debug("Link", ob.material_slots.link)
AttributeError: 'bpy_prop_collection' object has no attribute 'link'
location: C:\programi\b278\2.78\scripts\modules\bpy\ops.py:189
location: <unknown location>:-1
after disabling also Plain_Hair, i only get a render of "PlainColiderBelow".
"ParticlesHair0001" Cycles Render & Scene file attached.
Also, missing are options in Properties Editor for:
- Render Layers (only Corona Render Passes are available)
- Physics (empty)
-
I'm attaching my file. Corona exporter 2.4.6
-
Tested the thiagodesul's scene.
Error appears:
Traceback (most recent call last):
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 353, in render
render_start( self, scene)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 38, in render_start
render_scene( engine, scene)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 188, in render_scene
bpy.ops.corona.export_scene()
File "C:\programi\b278\2.78\scripts\modules\bpy\ops.py", line 189, in __call__
ret = op_call(self.idname_py(), None, kw)
RuntimeError: Error: Something went wrong, unable to write .scn file. Check directory permissions of export directory.
location: <unknown location>:-1
Error appears even after the modifier is applied, specifically until it is removed from the scene.
Then it renders without problem, indeed :)
*note: EXR env. linked replaced by Sun&Sky, only diffuse mat. used, removed sub modifier, contrast upped by 5
-
Ok! So, the problem was the subdivision surface modifier? Thanks!
-
Here is my test....
But it would be good if these can be done without applying the modifier and stays as changeable.
-
Tested the thiagodesul's scene.
Error appears:
Traceback (most recent call last):
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 353, in render
render_start( self, scene)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 38, in render_start
render_scene( engine, scene)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 188, in render_scene
bpy.ops.corona.export_scene()
File "C:\programi\b278\2.78\scripts\modules\bpy\ops.py", line 189, in __call__
ret = op_call(self.idname_py(), None, kw)
RuntimeError: Error: Something went wrong, unable to write .scn file. Check directory permissions of export directory.
location: <unknown location>:-1
Error appears even after the modifier is applied, specifically until it is removed from the scene.
Then it renders without problem, indeed :)
*note: EXR env. linked replaced by Sun&Sky, only diffuse mat. used, removed sub modifier, contrast upped by 5
Hello, it's still not working here. Removed the modifiers and the exr file and changed to Sun+Sky and still got errors. What do you suggest?
-
Dupli Verts and faces aren't working too.
-
Please try again with latest version v2.4.7 and let me know how you go. Apologies for the delay in looking into this!
-
Hi and thanks.
No problem about the delay. Hope you had a nice weekend.
Particles are partially working :D
Set to Emitter:
No properties get assigned, except some Physics translations (not rotation).
ie:
- Original object used as Dupli Object & Emitter are automatically hidden (not rendered).
- Velocity Rotations - not respected
- Render: Emitter, Parent, Unborn & Died - not respected/not rendered
- Children - not respected/not rendered
- Physics...
Set to Hair:
Render set to Objects does work but is having same problems (no respect for other properties than Physics).
Path, still gives the error:
Traceback (most recent call last):
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 353, in render
render_start( self, scene)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 38, in render_start
render_scene( engine, scene)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 192, in render_scene
result = bpy.ops.corona.export()
File "C:\programi\b278\2.78\scripts\modules\bpy\ops.py", line 189, in __call__
ret = op_call(self.idname_py(), None, kw)
RuntimeError: Error: Traceback (most recent call last):
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\operators\export.py", line 41, in execute
result = export(self, scene, placeholders)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\export.py", line 292, in export
return _write(self, scene, filepath, curves)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\export.py", line 315, in _write
result = future.result(timeout = None)
File "C:\programi\b278\2.78\python\lib\concurrent\futures\_base.py", line 405, in result
return self.__get_result()
File "C:\programi\b278\2.78\python\lib\concurrent\futures\_base.py", line 357, in __get_result
raise self._exception
File "C:\programi\b278\2.78\python\lib\concurrent\futures\thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\export.py", line 338, in _export_object
return decide_format( self, full_path, obj, scene, curves)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\export.py", line 256, in decide_format
return write_binary_obj( self, obj_path, obj, scene, curves)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\export.py", line 838, in write_binary_obj
meshes.extend( get_hairs(ob, scene, psys, crv_ob, crv, material, mesh))
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\export.py", line 106, in get_hairs
debug("uv on emitter", psys.uv_on_emitter(mod, psys.particles[0]))
RuntimeError: Error: Mesh has no UV data
location: C:\programi\b278\2.78\scripts\modules\bpy\ops.py:189
location: <unknown location>:-1
-
If you add a UV to the emitter does your hair test work again?
-
Set to Emitter:
No properties get assigned, except some Physics translations (not rotation).
ie:
- Original object used as Dupli Object & Emitter are automatically hidden (not rendered).
- Velocity Rotations - not respected
- Render: Emitter, Parent, Unborn & Died - not respected/not rendered
- Children - not respected/not rendered
- Physics...
I will have a look at these to see what I can do. Thanks for pointing them out, I need people that are good with blender to show me features that don't work yet :P
-
If you add a UV to the emitter does your hair test work again?
Yup, UVs unwrapped. No go.
A - If Binary Mesh Export is disabled i get an error:
Traceback (most recent call last):
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 353, in render
render_start( self, scene)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 38, in render_start
render_scene( engine, scene)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\engine.py", line 192, in render_scene
result = bpy.ops.corona.export()
File "C:\programi\b278\2.78\scripts\modules\bpy\ops.py", line 189, in __call__
ret = op_call(self.idname_py(), None, kw)
RuntimeError: Error: Traceback (most recent call last):
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\operators\export.py", line 41, in execute
result = export(self, scene, placeholders)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\export.py", line 292, in export
return _write(self, scene, filepath, curves)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\export.py", line 315, in _write
result = future.result(timeout = None)
File "C:\programi\b278\2.78\python\lib\concurrent\futures\_base.py", line 405, in result
return self.__get_result()
File "C:\programi\b278\2.78\python\lib\concurrent\futures\_base.py", line 357, in __get_result
raise self._exception
File "C:\programi\b278\2.78\python\lib\concurrent\futures\thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\export.py", line 338, in _export_object
return decide_format( self, full_path, obj, scene, curves)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\export.py", line 260, in decide_format
return write_obj( self, obj_path, obj, scene, curves)
File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\render_corona\export.py", line 438, in write_obj
debug("Link", ob.material_slots.link)
AttributeError: 'bpy_prop_collection' object has no attribute 'link'
location: C:\programi\b278\2.78\scripts\modules\bpy\ops.py:189
location: <unknown location>:-1
B - If Binary Mesh Export is enabled:
Scene gets exported but no Hair geometry is rendered (no hair/strands (thick or ribbons), no emitter).
Triangulation (either checking Corona settings or using modifier) doesn't help either.
PS
For the time being (investigating), could you make Layers under Scene Properties & Physics available (both in Properties Editor)... it's a workflow bugger, switching to Cycles and back to Corona.
If you need any specifics or other stuff tested, just let me know. I don't mind, hopping am not PITA, bothering you.
Simple scene attached + Cycles render as a reference.
-
A - If Binary Mesh Export is disabled i get an error:
B - If Binary Mesh Export is enabled:
Scene gets exported but no Hair geometry is rendered (no hair/strands (thick or ribbons), no emitter).
Triangulation (either checking Corona settings or using modifier) doesn't help either.
PS
For the time being (investigating), could you make Layers under Scene Properties & Physics available (both in Properties Editor)... it's a workflow bugger, switching to Cycles and back to Corona.
Using the latest version v2.4.8:
A (Binary mesh disabled) I get the attached.
B (Binary mesh enabled) for me crashes corona (I have raised a bug for this)
Having a scene like this setup and ready to test makes it very easy on my end to fix issues so thanks very much!
Layers and Physics have been enabled for scene I think if there are any others they are fairly quick to add if I can find the right property in the doco.
Thanks for reporting!
-
Using the latest version v2.4.8:
A (Binary mesh disabled) I get the attached.
B (Binary mesh enabled) for me crashes corona (I have raised a bug for this)
Having a scene like this setup and ready to test makes it very easy on my end to fix issues so thanks very much!
Layers and Physics have been enabled for scene I think if there are any others they are fairly quick to add if I can find the right property in the doco.
Thanks for reporting!
Thank you!
Working and crashing :D
Confirming the same.
1. Do you know if devel/debug mode in Corona SA can be enabled for bug reports?
2. Corona Hair Rendering > Resolution - Doesn't do anything. Resolution is always same (as set to 0). /// Will test more stuff in detail and make better, proper report ;)
Stay well.
3. Physics still doesn't show up.
-
1. Corona_Assert.exe has checks but runs slower. It displays multiple errors right now.
2. It is used when creating the thick curve in Blender as the bevel_resolution and the resolution_u is hard coded to 1 I will need to lookup what they mean.
3.Maybe a screenshot I can't find the panel you want sorry.
-
Ah, thanks, that's nice to know.
... and the screenshot of Physics (Properties Editor):
(http://i.imgur.com/xNdmTJY.jpg)
laters ;)
-
I think that was already enabled. At least in Blender 2.77 it is. Will check on 2.78 tomorrow
-
Apologies this has been changed in 2.78, I am in the middle of looking at the binary export and UV/No UV so it might take me a day or two to get it added.