LuxBlend for LuxCore

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

Moderators: Dade, Ratow, SATtva, coordinators

Re: LuxBlend for LuxCore

Postby B.Y.O.B. » Sun Aug 07, 2016 7:31 pm

I reworked the smoke export code to be better readable. I also found a way to make it magnitudes faster: in my testscene it took 1.41 seconds to export before and now it takes 0.019 seconds.

Part of the cause why it was so slow was this:
Code: Select all
for v in settings.density_grid:
    channeldata.append(v.real)

Note the v.real.
I'm not entirely sure, but I think this is not needed - after all the grids only contain floats (not imaginary numbers).
In my tests the smoke looks like before, or did I miss a cornercase?

I replaced the whole for loop with this:
Code: Select all
channeldata = list(settings.density_grid)


P.S. by the way this also affects the Classic API.
User avatar
B.Y.O.B.
Developer
 
Posts: 5139
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: LuxBlend for LuxCore

Postby mib2berlin » Tue Aug 09, 2016 2:08 am

Hi checked on Blender master too and physics panel is back.
All work fine sofar but update luxblend does not.

Code: Select all
Updating LuxBlend...
Downloading https://bitbucket.org/luxrender/luxblend25/get/default.zip
Extracting ZIP archive
Traceback (most recent call last):
  File "/home/pepo/blender_build/build/2.77/scripts/addons/luxrender/operators/__init__.py", line 337, in execute
    with zipfile.ZipFile(temp_zip_path) as zip:
  File "/home/pepo/blender_build/build/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/tmpujfo6s61/default.zip'

location: <unknown location>:-1

location: <unknown location>:-1


User can write in /tmp

Cheers, 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

Re: LuxBlend for LuxCore

Postby B.Y.O.B. » Tue Aug 09, 2016 3:20 am

Thanks for the report, unfortunately I can't reproduce it here.
User avatar
B.Y.O.B.
Developer
 
Posts: 5139
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: LuxBlend for LuxCore

Postby B.Y.O.B. » Wed Aug 10, 2016 8:20 am

I wrote an operator that can import multiple images as nodes at once.
It can be found in the node editor, under Node > Import Multiple Images, or by a search for "Import Mul..."
I would have liked to put it into the Add > Texture menu, but unfortunately it seems it's impossible to add operators there. Only thing I found on that topic was this unanswered question: https://blender.stackexchange.com/quest ... e-category
Attachments
import_multiple.png
User avatar
B.Y.O.B.
Developer
 
Posts: 5139
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: LuxBlend for LuxCore

Postby B.Y.O.B. » Thu Aug 11, 2016 9:55 am

I implemented support for the Bilerp texture because I stumbled across it in the LuxCore sources.

However I am missing it's mapping slot - currently it seems to use UV mapping without any 2DMapping slot, which is quite a limitation in practice - or am I missing something?
https://bitbucket.org/luxrender/luxrays ... es.cpp-449
Attachments
bilerp.JPG
User avatar
B.Y.O.B.
Developer
 
Posts: 5139
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: LuxBlend for LuxCore

Postby B.Y.O.B. » Thu Aug 11, 2016 6:39 pm

I moved textures that are rarely needed into a separate category in the Add-menu:

new.png

This is how it was before:

old.png

What do you think about this decision?
Also, as you might notice, I found a way to embed the new "Import Multiple Images"-operator into the Add-menu :)
User avatar
B.Y.O.B.
Developer
 
Posts: 5139
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: LuxBlend for LuxCore

Postby B.Y.O.B. » Fri Aug 12, 2016 1:20 pm

Node materials now support lightgroups.
Attachments
scrn_12-08-2016_21-27-17.png
User avatar
B.Y.O.B.
Developer
 
Posts: 5139
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: LuxBlend for LuxCore

Postby jeanphi » Mon Aug 15, 2016 7:47 am

B.Y.O.B. wrote:I implemented support for the Bilerp texture because I stumbled across it in the LuxCore sources.

However I am missing it's mapping slot - currently it seems to use UV mapping without any 2DMapping slot, which is quite a limitation in practice - or am I missing something?

Thanks. Bilerp is kind of a debug material inherited from PBRT. It's seldom used so that's probably why it never got adapted to all the improvements brought to Lux over the years.

Jeanphi
jeanphi
Developer
 
Posts: 7943
Joined: Mon Jan 14, 2008 7:21 am

Re: LuxBlend for LuxCore

Postby B.Y.O.B. » Mon Aug 15, 2016 10:42 am

Alright, then I'll leave it as it is now. Thanks for the info.
User avatar
B.Y.O.B.
Developer
 
Posts: 5139
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: LuxBlend for LuxCore

Postby burnin » Thu Aug 18, 2016 10:14 am

Latest two releases don't work here. (luxrender-luxblend25-9640472980ee, luxrender-luxblend25-7cf4dd2d32cc)
Error report:
Code: Select all
Traceback (most recent call last):
  File "C:\programi\b277BB\pigeon\2.77\scripts\modules\addon_utils.py", line 330, in enable
    mod = __import__(module_name)
  File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.77\scripts\addons\luxrender\__init__.py", line 160, in <module>
    from . import core
  File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.77\scripts\addons\luxrender\core\__init__.py", line 50, in <module>
    from ..export.scene import SceneExporter
  File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.77\scripts\addons\luxrender\export\scene.py", line 39, in <module>
    from ..export import geometry        as export_geometry
  File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.77\scripts\addons\luxrender\export\geometry.py", line 43, in <module>
    from ..properties.node_material import luxrender_texture_maker
  File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.77\scripts\addons\luxrender\properties\node_material.py", line 31, in <module>
    from ..export.luxcore.utils import get_elem_key, is_lightgroup_opencl_compatible
  File "C:\Users\py\AppData\Roaming\Blender Foundation\Blender\2.77\scripts\addons\luxrender\export\luxcore\__init__.py", line 32, in <module>
    from pyluxcore import Property
ImportError: No module named 'pyluxcore'


Although modules are loaded successfully (v1.6.0. build 16219) from latest daily build for windows: LuxRender 1.7 x64 Op..> 06-Aug-2016 07:07 37.1M

Latest exporter working: luxrender-luxblend25-1a8d37a8ddb5

PC specs:
Win7x64_sp1
Blender 2.77.1 (hash: dc625bc / branch: pigeon)
burnin
 
Posts: 262
Joined: Mon May 03, 2010 8:04 pm

PreviousNext

Return to LuxBlend (Blender Exporter)

Who is online

Users browsing this forum: No registered users and 2 guests