Author Topic: Corona Proxy  (Read 11063 times)

2017-06-14, 17:47:29

Sanekum

  • Active Users
  • **
  • Posts: 65
    • View Profile
Hello there.
Can anyone explain me the mechanism of how proxy geometry works in corona blender?
Step by step instruction will be great, i just cant get it works, i get material error during export and render dont start.

2017-06-14, 19:09:19
Reply #1

Asticles

  • Active Users
  • **
  • Posts: 84
    • View Profile
Have you tired with binary export?

2017-06-14, 22:23:39
Reply #2

blanchg

  • Moderator
  • Active Users
  • ***
  • Posts: 410
    • View Profile
    • Blender exporter for Corona
Hi there @Sanekum

Can you please provide the system console.  In blender Window > Toggle System Console.  You can select the text and copy and paste it  here.

2017-06-15, 05:12:22
Reply #3

Sanekum

  • Active Users
  • **
  • Posts: 65
    • View Profile
Corona: Bitbucket version 6.0.7
Corona: Starting add-on, version 6.0.7
Adding UI Panel: Corona render settings
Adding UI Panel: camera
Adding UI Panel: material
Adding UI Panel: environment
Adding UI Panel: particle systems
Adding UI Panel: Corona render passes
Adding UI Panel: Corona object properties
Adding UI Panel: lamp
Corona: Add-on started
--------------------------------------------
read blend: D:\Pro\Test\corproxy.blend
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\scripts\addons\coronablender\outputs.py", line 1148, in write_scn
    addMaterials(xml_inst, dupli, mtlfilename, False, crn_scn, mtllib)
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\scripts\addons\coronablender\outputs.py", line 670, in addMaterials
    materials = readMaterials(fn)
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\scripts\addons\coronablender\outputs.py", line 655, in readMaterials
    with open(mtlfilename, 'r', encoding="utf8") as file:
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\Proxy\\Corona\\corproxy.mtlindex'
Corona: Failed :(
Error: Traceback (most recent call last):
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\scripts\addons\coronablender\outputs.py", line 1148, in write_scn
    addMaterials(xml_inst, dupli, mtlfilename, False, crn_scn, mtllib)
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\scripts\addons\coronablender\outputs.py", line 670, in addMaterials
    materials = readMaterials(fn)
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\scripts\addons\coronablender\outputs.py", line 655, in readMaterials
    with open(mtlfilename, 'r', encoding="utf8") as file:
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\Proxy\\Corona\\corproxy.mtlindex'

Error: Something went wrong, unable to write .scn file. Check directory permissions of export directory.
Traceback (most recent call last):
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\scripts\addons\coronablender\engine.py", line 482, in render
    render_start( self, scene)
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\scripts\addons\coronablender\engine.py", line 165, in render_start
    render_scene( engine, scene)
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\scripts\addons\coronablender\engine.py", line 314, in render_scene
    bpy.ops.corona.export_scene()
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\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:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\scripts\addons\coronablender\outputs.py", line 1148, in write_scn
    addMaterials(xml_inst, dupli, mtlfilename, False, crn_scn, mtllib)
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\scripts\addons\coronablender\outputs.py", line 670, in addMaterials
    materials = readMaterials(fn)
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\scripts\addons\coronablender\outputs.py", line 655, in readMaterials
    with open(mtlfilename, 'r', encoding="utf8") as file:
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\Proxy\\Corona\\corproxy.mtlindex'

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


location: <unknown location>:-1

location: <unknown location>:-1


2017-06-15, 05:15:41
Reply #4

blanchg

  • Moderator
  • Active Users
  • ***
  • Posts: 410
    • View Profile
    • Blender exporter for Corona
Thanks I will have a look soon

2017-06-16, 08:45:51
Reply #5

blanchg

  • Moderator
  • Active Users
  • ***
  • Posts: 410
    • View Profile
    • Blender exporter for Corona
First update to v6.0.12+

I found and fixed a few issues with proxy objects today.  Not what you are seeing but it might help.

Next, make sure you can render the target proxy object first.  It should export a .obj or .cgeo as well as a .mtl file and a .mtlindex.

Then connect it up to your other scene and set the proxy and material.

Let me know how it goes.

2017-06-16, 11:31:05
Reply #6

Sanekum

  • Active Users
  • **
  • Posts: 65
    • View Profile
Thanks @blanchg
Proxy now works perfect except one issue -
I wanted to make instances of my proxy via particle system, made simple setup and got error again during export, only restart and removing particle system object to hidden layer helps

Quote
--------------------------------------------
Corona: Bitbucket version 6.0.11
Corona: Starting add-on, version 6.0.11
Adding UI Panel: Corona render settings
Adding UI Panel: camera
Adding UI Panel: material
Adding UI Panel: environment
Adding UI Panel: particle systems
Adding UI Panel: Corona render passes
Adding UI Panel: Corona object properties
Adding UI Panel: lamp
Corona: Add-on started
--------------------------------------------
Running background check for update
Starting background checking thread
BG: Checking for update now in background
Checking for update function
Read in json settings from file
Determined it's time to check for updates
Getting tags from server
read blend: D:\pro\Test\Corona\prox.blend
Traceback (most recent call last):
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\sc
ripts\addons\coronablender\properties\material.py", line 9, in dummyupdate
    view3D_mat_update(self, context)
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\sc
ripts\addons\coronablender\util.py", line 355, in view3D_mat_update
    mat = context.object.active_material
AttributeError: 'NoneType' object has no attribute 'active_material'
File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\scri
pts\addons\coronablender\properties\material.py", line 7, in dummyupdate
Most recent tag found: {'name': 'Master', 'zipball_url': 'https://api.github.com
/repos/bsavery/PRMan-for-Blender/zipball/master'}
Exception in thread Thread-1:
Traceback (most recent call last):
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\py
thon\lib\threading.py", line 914, in _bootstrap_inner
    self.run()
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\py
thon\lib\threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\sc
ripts\addons\PRMan-for-Blender-master\addon_updater.py", line 1029, in async_che
ck_update
    self.check_for_update(now=now)
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\sc
ripts\addons\PRMan-for-Blender-master\addon_updater.py", line 784, in check_for_
update
    self.save_updater_json()
  File "C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Additions)\2.78\sc
ripts\addons\PRMan-for-Blender-master\addon_updater.py", line 984, in save_updat
er_json
    outf = open(jpath,'w')
PermissionError: [Errno 13] Permission denied: 'C:\\Program Files\\Chaos Group\\
Blender 2.78 (With V-Ray Additions)\\2.78\\scripts\\addons\\PRMan-for-Blender-ma
ster\\prman-for-blender-master_updater\\updater_status.json'

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 1167, in write_scn
    mtlfilename = mtllib.replace('.mtl', mtlindex_ext, mtllib)
TypeError: 'str' object cannot be interpreted as an integer
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 1167, in write_scn
    mtlfilename = mtllib.replace('.mtl', mtlindex_ext, mtllib)
TypeError: 'str' object cannot be interpreted as an integer

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 490, 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 322, 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 1167, in write_scn
    mtlfilename = mtllib.replace('.mtl', mtlindex_ext, mtllib)
TypeError: 'str' object cannot be interpreted as an integer

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


location: <unknown location>:-1

location: <unknown location>:-1

2017-06-18, 15:04:49
Reply #7

Sanekum

  • Active Users
  • **
  • Posts: 65
    • View Profile
And another one bug
it starts after I atteached texture to material and then make proxy

Quote
ERROR: ERROR in XML mtl lib file: Attempting to redefine map: Image_Texture_2214069999784
File name: D:/Proxy/Corona/Trees/Suzanne.mtl
XML tree path:
<mtlLib>
   <mapDefinition name="Image_Texture_2214069999784">Corona: Writing configuration file  Scene.conf
Corona: Writing scene file  Scene.scn
Corona: Writing material file  D:\tmp\Scene.mtl
Corona: Writing material file  D:\tmp\meshes\Cube.mtl
Info: Total export time: 0.01
Corona: corona C:\Program Files\Corona Standalone\CoronaStandalone_Release.exe file D:\tmp\Scene.scn image D:\tmp\render\Scene1.png
Corona: Rendering scene file Scene.scn...
Corona: Launching Corona Renderer...
Corona: Output image exists...
License info:
Demo license active.
Activated until: 2017-06-26

ERROR: ERROR in XML mtl lib file: Attempting to redefine map: Image_Texture_2214069999784
File name: D:/Proxy/Corona/Trees/Suzanne.mtl
XML tree path:
<mtlLib>
   <mapDefinition name="Image_Texture_2214069999784">

2017-06-19, 01:21:24
Reply #8

blanchg

  • Moderator
  • Active Users
  • ***
  • Posts: 410
    • View Profile
    • Blender exporter for Corona
Thanks I will have a look at that today if I get the time.

2017-06-19, 07:59:01
Reply #9

blanchg

  • Moderator
  • Active Users
  • ***
  • Posts: 410
    • View Profile
    • Blender exporter for Corona
For that last one you reported are you doing an external proxy to an object already in your .blend file by any chance?

I can't really find a way to reproduce it unless by chance.

2017-06-19, 08:24:04
Reply #10

Sanekum

  • Active Users
  • **
  • Posts: 65
    • View Profile
For that last one you reported are you doing an external proxy to an object already in your .blend file by any chance?

I can't really find a way to reproduce it unless by chance.

Yes, it was external proxy, original objects is in blend but on disabled layer.
I tried new empty file, only standart cube, I've taked preveously exported suzanne.obj, mtl and mtlindex as external proxy and got this

Quote
Read new prefs: C:\Users\Sasha\AppData\Roaming\Blender Foundation\Blender\2.78\c
onfig\userpref.blend
AL lib: (EE) UpdateDeviceParams: Failed to set 48000hz, got 44100hz instead
found bundled python: C:\Program Files\Chaos Group\Blender 2.78 (With V-Ray Addi
tions)\2.78\python
V-Ray For Blender: Parsing plugin descriptions... done [00:00.09]
V-Ray For Blender: vfb_load()
V-Ray For Blender: vfb_get_exporter_types()
Non-zero to use undersampling, 0 otherwise. The value specifies the blur resolut
ion. Value of n means 1/(2^n) initial resolution in each dimension.
renderman_for_blender updater verbose is enabled
Read in json settings from file
--------------------------------------------
Corona: Bitbucket version 6.0.13
Corona: Starting add-on, version 6.0.11
Adding UI Panel: Corona render settings
Adding UI Panel: camera
Adding UI Panel: material
Adding UI Panel: environment
Adding UI Panel: particle systems
Adding UI Panel: Corona render passes
Adding UI Panel: Corona object properties
Adding UI Panel: lamp
Corona: Add-on started
--------------------------------------------
read blend: D:\Proxy\Corona\test2.blend
Corona: Writing configuration file  Scene.conf
Corona: Writing scene file  Scene.scn
Corona: Writing material file  D:\Tmp\Scene.mtl
Info: Total export time: 0.02
Corona: corona D:\soft\Corona Standalone\CoronaStandalone_Release.exe file D:\Tm
p\Scene.scn image D:\Tmp\render\Scene0.png
Corona: Rendering scene file Scene.scn...
Corona: Launching Corona Renderer...
Corona: Output image exists...
License info:
Demo license active.
Activated until: 2017-06-25

ERROR: Fatal error in mtl-XML file: 'D:/Proxy/Corona/Suzanne.mtl': Texture with
file name: 'D:/Proxy/Corona/D:/Mat/apple.jpg' not found/not accesible



2017-06-19, 08:40:15
Reply #11

blanchg

  • Moderator
  • Active Users
  • ***
  • Posts: 410
    • View Profile
    • Blender exporter for Corona
Try v6.0.14 I have fixed several issues around using external proxy objects and particle emitters.

2017-06-19, 09:10:31
Reply #12

Sanekum

  • Active Users
  • **
  • Posts: 65
    • View Profile
@blanchg You are the best

All problems has been solved

2019-04-21, 15:59:40
Reply #13

s_charlie

  • Active Users
  • **
  • Posts: 9
    • View Profile
@blanchg Is it possible to use a group instance for proxy?  Under Corona Object Properties, I can choose a group instance in the Instance Object filed, but when I hit render, it doesn't show up in the render.

2019-04-21, 16:53:17
Reply #14

Sanekum

  • Active Users
  • **
  • Posts: 65
    • View Profile
@blanchg Is it possible to use a group instance for proxy?  Under Corona Object Properties, I can choose a group instance in the Instance Object filed, but when I hit render, it doesn't show up in the render.


You can just Shift+A>Group Instance
It's easier to preview and manipulate, effect wil be the same and it works with external proxy very well