Chaos Corona Forum

General Category => Porting and API => Chaos Corona for Blender => Topic started by: blanchg on 2017-06-22, 12:39:44

Title: v7.0.0
Post by: blanchg on 2017-06-22, 12:39:44
Just released a new version that fixes Issue #110 https://bitbucket.org/coronablender/render_corona/issues/110 (https://bitbucket.org/coronablender/render_corona/issues/110)

This affects objects that link to the same mesh but have different modifier settings.

It means that some objects may have different output names, but should only affect objects in this specific instance.
Title: Re: v7.0.0
Post by: Asticles on 2017-06-22, 14:13:05
YES!
Title: Re: v7.0.0
Post by: Asticles on 2017-06-22, 14:15:29
Sorry, but seems that Only Modified option does not work anymore.
Title: Re: v7.0.0
Post by: blanchg on 2017-06-23, 12:53:33
Thanks working on it
Title: Re: v7.0.0
Post by: Sanekum on 2017-06-23, 17:58:19
Sorry but I can't find Camera motion blur tab. It's mentioned in the wiki page, but I can't figure out how to enable motion blur, only in Object properties but it didn't affect
Title: Re: v7.0.0
Post by: blanchg on 2017-06-24, 00:03:58
motion blur isn't working yet, I will add it to the Todo list
Title: Re: v7.0.0
Post by: blanchg on 2017-06-26, 09:32:22
Motion blur works now in v7.1.0.

Only basic motion blur for objects and camera works right now.

You will need to enable it on the object and the camera.  Steps controls the quality/speed.  Make sure it is moving in the blender timeline too :)
Title: Re: v7.0.0
Post by: Sanekum on 2017-06-27, 07:15:04
Looks cool @blanchg, thanks
I did a quick test, motion blur works fine, but it looks like in 7.1.0 proxie particle instances got broken again :D
And if you want to motion blur proxy object got error too

Don't want to be annoying but it's realy life meaning features for archviz renders

Quote
Corona: Writing configuration file  Scene.conf
Corona: Writing scene file  Scene.scn
Traceback (most recent call last):
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\sc
ripts\addons\coronablender\outputs.py", line 1120, in write_scn
    setObjTransform(scene, xml_inst, ob, dupli.name, dupli.matrix_world.copy())
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\sc
ripts\addons\coronablender\outputs.py", line 643, in setObjTransform
    if use_ob_mb(obj, scene):
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\sc
ripts\addons\coronablender\util.py", line 651, in use_ob_mb
    return scene.corona.use_ob_mblur and ob.corona.use_mblur and ob.corona.mblur
_type == 'object'
AttributeError: 'list' object has no attribute 'corona'
Corona: Failed :(
Error: Traceback (most recent call last):
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\sc
ripts\addons\coronablender\outputs.py", line 1120, in write_scn
    setObjTransform(scene, xml_inst, ob, dupli.name, dupli.matrix_world.copy())
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\sc
ripts\addons\coronablender\outputs.py", line 643, in setObjTransform
    if use_ob_mb(obj, scene):
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\sc
ripts\addons\coronablender\util.py", line 651, in use_ob_mb
    return scene.corona.use_ob_mblur and ob.corona.use_mblur and ob.corona.mblur
_type == 'object'
AttributeError: 'list' object has no attribute 'corona'

Error: Something went wrong, unable to write .scn file. Check directory permissi
ons of export directory.
Traceback (most recent call last):
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\sc
ripts\addons\coronablender\engine.py", line 495, in render
    render_start( self, scene)
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\sc
ripts\addons\coronablender\engine.py", line 173, in render_start
    render_scene( engine, scene)
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\sc
ripts\addons\coronablender\engine.py", line 327, in render_scene
    bpy.ops.corona.export_scene()
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\sc
ripts\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:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\sc
ripts\addons\coronablender\outputs.py", line 1120, in write_scn
    setObjTransform(scene, xml_inst, ob, dupli.name, dupli.matrix_world.copy())
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\sc
ripts\addons\coronablender\outputs.py", line 643, in setObjTransform
    if use_ob_mb(obj, scene):
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\sc
ripts\addons\coronablender\util.py", line 651, in use_ob_mb
    return scene.corona.use_ob_mblur and ob.corona.use_mblur and ob.corona.mblur
_type == 'object'
AttributeError: 'list' object has no attribute 'corona'

Error: Something went wrong, unable to write .scn file. Check directory permissi
ons of export directory.


location: <unknown location>:-1

location: <unknown location>:-1
Title: Re: v7.0.0
Post by: blanchg on 2017-06-27, 07:20:34
Thanks it isn't annoying, there are so many ways to use Blender it is impossible for me to test them all.  I have some basic tests that I run before each release but there are things I just don't have time to run through each time :)
Title: Re: v7.0.0
Post by: blanchg on 2017-06-27, 08:07:07
Please give v7.1.1 a go.
Title: Re: v7.0.0
Post by: Sanekum on 2017-06-27, 09:04:37
Proxy particles works great again! :)

Instanced groups are now working with one notice, only layer 1 of the scene got exported, it's not big problem, but the question of comfortable use.

For example a have a bulding in this scene, it has many separate objects, windows, facade detail, etc. And it's easier to work with by managing those objects by layers.
I can send them to layer 1 and for the many polygon building it will be little hard to work around because of hardware. I think you can make all layers to be exported but this is not to good because some time I use some layers for unused geometry for and in that case it will be exported to, so only grouped objects must be exported.
Title: Re: v7.0.0
Post by: blanchg on 2017-06-27, 09:15:17
I will have a look but I think in the scene tab you choose which layers get exported right?
Title: Re: v7.0.0
Post by: Sanekum on 2017-06-27, 12:09:15
I will have a look but I think in the scene tab you choose which layers get exported right?

Yep, it's the first thing I've checked, only first layers renders.
Title: Re: v7.0.0
Post by: Asticles on 2017-06-27, 17:51:39
Sorry blanchg,

Did you manage to solve the "Only Modified" issue?

Thanks
Title: Re: v7.0.0
Post by: blanchg on 2017-06-27, 20:47:17
Yes I believe so
Title: Re: v7.0.0
Post by: blanchg on 2017-06-27, 22:11:17
I will have a look but I think in the scene tab you choose which layers get exported right?

Yep, it's the first thing I've checked, only first layers renders.
From my testing it is this layer selector that affects which objects are exported.
Title: Re: v7.0.0
Post by: Sanekum on 2017-06-28, 07:03:11
I will have a look but I think in the scene tab you choose which layers get exported right?

Yep, it's the first thing I've checked, only first layers renders.
From my testing it is this layer selector that affects which objects are exported.

Yes, and I found problem, for example if in my other scene instanced objects are on 1, 5 and 10 layers then in the main scene those 1, 5 and 10 layers must be active to.

I tried v-ray for blender and renderman exporters and they solve this some how, layers dont bothers them if some objects are assigned to group they renders, no mater what layers are active.
Title: Re: v7.0.0
Post by: blanchg on 2017-06-28, 07:18:30
That is a very specific case that I haven't tested for :)
Title: Re: v7.0.0
Post by: blanchg on 2017-06-28, 09:29:11
Yes, and I found problem, for example if in my other scene instanced objects are on 1, 5 and 10 layers then in the main scene those 1, 5 and 10 layers must be active to.

I tried v-ray for blender and renderman exporters and they solve this some how, layers dont bothers them if some objects are assigned to group they renders, no mater what layers are active.

So should it export if the layers in the other scene aren't marked as visible?

other scene has object a on layer 2 and b on layer 3.  Only layer 2 is active.

main scene has layer 1 active and references both object a and b.  Should a and b export?  My guess is yes.
Title: Re: v7.0.0
Post by: blanchg on 2017-06-28, 09:31:49
Try it in v7.1.3
Title: Re: v7.0.0
Post by: Sanekum on 2017-06-28, 11:19:19
Yes, and I found problem, for example if in my other scene instanced objects are on 1, 5 and 10 layers then in the main scene those 1, 5 and 10 layers must be active to.

I tried v-ray for blender and renderman exporters and they solve this some how, layers dont bothers them if some objects are assigned to group they renders, no mater what layers are active.

So should it export if the layers in the other scene aren't marked as visible?

other scene has object a on layer 2 and b on layer 3.  Only layer 2 is active.

main scene has layer 1 active and references both object a and b.  Should a and b export?  My guess is yes.

Yes, and it's working perfectly now, thanks @blanchg

Another issue is with materials :D
It's not a big problem, but when I attach image texture to diffuse slot in nodes it change viewport color of material to grey, it will be better if diffuse color still has an affect to viewport color of object
Title: Re: v7.0.0
Post by: blanchg on 2017-06-28, 11:57:06
Will see what I can do I don't have direct control over the viewport
Title: Re: v7.0.0
Post by: blanchg on 2017-06-28, 22:29:47
Can you please show me your node setup it is working as expected here. Thanks
Title: Re: v7.0.0
Post by: Sanekum on 2017-06-29, 08:46:40
Can you please show me your node setup it is working as expected here. Thanks

Title: Re: v7.0.0
Post by: blanchg on 2017-06-29, 09:22:06
Do you have uv's? That is a way I can reproduce.  I can't help because you have a texture I am asking blender it to render the texture, it won't fall back to the diffuse color.
Title: Re: v7.0.0
Post by: Sanekum on 2017-06-29, 09:58:12
Yes i have uv's
Looks like i can solve this problem just by reattaching texture conection, after that viewport starts to read diffuse color even with texture connected.

It would be nice if viewport read diffuse color from base material from layered materials
Title: Re: v7.0.0
Post by: blanchg on 2017-06-29, 09:59:26
Yeah I can do that I think