LuxBlend for LuxCore

Discussion related to the 'LuxBlend' Blender 2.4+ python exporter script.

Moderators: Dade, Ratow, SATtva, coordinators

Re: LuxBlend for LuxCore

Postby jensverwiebe » Mon Aug 22, 2016 4:52 am

I added an additional check not to cross with preview context, so there should not be a race condition anymore.
Oddly in luxcore nodes the situation is different, must observe.

@ Simon: pls try again with your scene that brought up this issue.

Tbh, i would like to use rather image.unpack(method='WRITE_LOCAL') method, but this always writes besides
the blend and it seems i cannit direct this to /tmp/.

Jens
User avatar
jensverwiebe
Developer
 
Posts: 3407
Joined: Wed Apr 02, 2008 4:34 pm

Re: LuxBlend for LuxCore

Postby B.Y.O.B. » Mon Aug 22, 2016 6:53 am

Hm, it still happens, but with different materials this time.
How about we wrap it in a try..except block? Or as that too hacky?
User avatar
B.Y.O.B.
Developer
 
Posts: 5135
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: LuxBlend for LuxCore

Postby jensverwiebe » Mon Aug 22, 2016 6:55 am

Hmmm, .... so did not understood what really happens.
Perhaps i should not try writing to context but bpy.data ?
Or use an arbitrary scene[0] always to render the previews ?
User avatar
jensverwiebe
Developer
 
Posts: 3407
Joined: Wed Apr 02, 2008 4:34 pm

Re: LuxBlend for LuxCore

Postby povmaniaco » Mon Aug 22, 2016 7:07 am

Hi guys..
Really, unpack always use the image path stored here..
Code: Select all
bpy.data.images["Logo cocacola.jpg"].filepath

.. not relative to .blend file
Image

I hope are useful.
Greetings..
User avatar
povmaniaco
Developer
 
Posts: 220
Joined: Tue Sep 01, 2009 1:27 pm
Location: Barcelona, Spain

Re: LuxBlend for LuxCore

Postby B.Y.O.B. » Mon Aug 22, 2016 7:09 am

I have to admit I don't really understand your solution.
IIRC blender_scene is a reference to the scene, so how can we compare that to a string 'preview'?
Also, this problem is happening during final render. I have not seen it happen during viewport render or material preview.
jensverwiebe wrote:Hmmm, .... so did not understood what really happens.

Me neither. With some packed textures it works, with others it doesn't, but it switches randomly.
User avatar
B.Y.O.B.
Developer
 
Posts: 5135
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: LuxBlend for LuxCore

Postby jensverwiebe » Mon Aug 22, 2016 7:18 am

[quote="B.Y.O.B."....
IIRC blender_scene is a reference to the scene, so how can we compare that to a string 'preview'?
Also, this problem is happening during final render. I have not seen it happen during viewport render or material preview.
....With some packed textures it works, with others it doesn't, but it switches randomly.[/quote]

Ah, forgot just ".name", but this would not change the odd situation. Still thinking. Also could still not reporoduce myself,
which is not helpful atm ;)

Jens
User avatar
jensverwiebe
Developer
 
Posts: 3407
Joined: Wed Apr 02, 2008 4:34 pm

Re: LuxBlend for LuxCore

Postby B.Y.O.B. » Mon Aug 22, 2016 7:30 am

jensverwiebe wrote:Also could still not reporoduce myself, which is not helpful atm

Yes, I'm sorry, but the only scene where I could sometimes reproduce it is really large and linked with a bunch of libs etc., nothing I could just zip and send you.
User avatar
B.Y.O.B.
Developer
 
Posts: 5135
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: LuxBlend for LuxCore

Postby jensverwiebe » Mon Aug 22, 2016 7:37 am

Rolled this back for luxcore for now, lets discuss better solution.

@ B.Y.O.B.Short skype ? 'am online for a while today.

Jens
User avatar
jensverwiebe
Developer
 
Posts: 3407
Joined: Wed Apr 02, 2008 4:34 pm

Re: LuxBlend for LuxCore

Postby B.Y.O.B. » Thu Aug 25, 2016 5:57 am

I managed to make the particle export in LuxCore API mode faster:
8.6s -> 5.4s in my testscene.

edit: now I tested it in a real-world scene (my Tower WIP):
previous overall export time: 95s
new overall export time: 73s
User avatar
B.Y.O.B.
Developer
 
Posts: 5135
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: LuxBlend for LuxCore

Postby mib2berlin » Tue Aug 30, 2016 12:32 am

Hi, cant still not update Luxblend but saw an error not printed in console:

Code: Select all
Could not download: <urlopen error [SSL: CERTIFICATE_FAILED] certificate verify failed (_ssl.c:645)>


Console output:

Code: Select all
[Lux 2016-Aug-30 08:31:40] Attempting to import pylux module from "/daten/lux-v1.6-x86_64-sse2-OpenCL"
[Lux 2016-Aug-30 08:31:40] Pylux module imported successfully
[Lux 2016-Aug-30 08:31:40] Using pylux version 1.6.0  Build 0
[Lux 2016-Aug-30 08:31:40] Attempting to import pyluxcore module from "/daten/lux-v1.6-x86_64-sse2-OpenCL"
[Lux 2016-Aug-30 08:31:40] Pyluxcore module imported successfully
[Lux 2016-Aug-30 08:31:40] Using pyluxcore version 1.6
[Lux 2016-Aug-30 08:31:40] Installed scene post-update handler
--------------------
Updating LuxBlend...
Downloading https://bitbucket.org/luxrender/luxblend25/get/default.zip
Extracting ZIP archive
Traceback (most recent call last):
  File "/home/pepo/.config/blender/2.77/scripts/addons/luxrender/operators/__init__.py", line 337, in execute
    with zipfile.ZipFile(temp_zip_path) as zip:
  File "/home/pepo/blender-2.77a-linux-glibc211-x86_64/2.77/python/lib/python3.5/zipfile.py", line 1009, in __init__
    self.fp = io.open(file, filemode)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmppdmrs3y3/default.zip'

location: <unknown location>:-1

location: <unknown location>:-1


Luxblend:

Änderung: 3682:91aa753403aa
Nutzer: Jens Verwiebe <info@jensverwiebe.de>
Datum: Sun Aug 28 20:51:41 2016 +0200
Zusammenfassung: Attempt to allow for combined bump/normaltex also in mat editor



May it helps to catch the error, mib
Opensuse Leap 42.1/64 i5-3570K 16 GB
GTX 760 4 GB GTX 670 2 GB 361.42 Blender 2.7 Octane 3.0
mib2berlin
 
Posts: 181
Joined: Mon Jun 22, 2009 3:18 pm

PreviousNext

Return to LuxBlend (Blender Exporter)

Who is online

Users browsing this forum: No registered users and 1 guest