LuxBlend25: Download, installation instructions, issues

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

Moderators: Ratow, SATtva, coordinators

Re: LuxBlend25: Download, installation instructions, issues

Postby J the Ninja » Fri Jan 06, 2012 3:32 pm

I thought we fixed everything for the matrix change? Is the very latest version of the exporter working for you?
-Jason

Material DB Admin
User avatar
J the Ninja
Developer
 
Posts: 2210
Joined: Wed May 19, 2010 9:54 pm
Location: Portland, USA

Re: LuxBlend25: Download, installation instructions, issues

Postby Bao2 » Fri Jan 06, 2012 4:13 pm

Oh, I was using the last "weekly" build, but I downloaded now luxblend from mercurial and it works flawlessly again.
Sorry. And now to test the last build of luxrender.
9/11: inside job ( I am usually asked to delete this from my signature in forums)
Bao2
 
Posts: 158
Joined: Fri May 22, 2009 3:14 am

Re: LuxBlend25: Download, installation instructions, issues

Postby sandstorm » Sun Mar 04, 2012 8:09 am

I am using Blender v2.62, Luxrender v0.8, and the stable https://bitbucket.org/luxrender/luxblen ... 8-2.60.zip
When I try to render the scene my camera is still pointing to an unidentified point in the scene.
Will that be fixed or is there a workaround such as manually adding the information in the lux file?

I read through the various forum threads, but I got lost in all the information.

Best regards
Martin
sandstorm
 
Posts: 41
Joined: Sat Mar 08, 2008 1:51 am
Location: Zurich / Mannheim

Re: LuxBlend25: Download, installation instructions, issues

Postby B.Y.O.B. » Sun Mar 04, 2012 8:20 am

You are using the luxblend-version for Blender 2.60...
Use this instead: http://src.luxrender.net/luxblend25/arc ... 77.tar.bz2
User avatar
B.Y.O.B.
 
Posts: 1880
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: LuxBlend25: Download, installation instructions, issues

Postby sandstorm » Sun Mar 04, 2012 8:33 am

It gives me an error message:
Code: Select all
ERROR: Export aborted: 'Mesh' object has no attribute 'tessface_uv_textures'


What to I need to do now? I have no UV Textures defined.
sandstorm
 
Posts: 41
Joined: Sat Mar 08, 2008 1:51 am
Location: Zurich / Mannheim

Re: LuxBlend25: Download, installation instructions, issues

Postby Lord Crc » Sun Mar 04, 2012 8:55 am

sandstorm wrote:What to I need to do now? I have no UV Textures defined.


Use a build which doesn't have bmesh integrated, as mentioned in the sticky.
May contain traces of nuts.
User avatar
Lord Crc
Developer
 
Posts: 4455
Joined: Sat Nov 17, 2007 2:10 pm

Re: LuxBlend25: Download, installation instructions, issues

Postby sandstorm » Sun Mar 04, 2012 11:21 am

Thanks! Instead of re-building an older version, I have changed geometry.py to get it at least to work. For all of you, here is what I did:
Search for the following text in geometry.py
Code: Select all
# hack for bmesh
# TODO remove this when obsolete
def get_uv_textures_old(mesh):
   return mesh.uv_textures
def get_uv_textures_new(mesh):
   return mesh.tessface_uv_textures

and replace the last row with
Code: Select all
# hack for bmesh
# TODO remove this when obsolete
def get_uv_textures_old(mesh):
   return mesh.uv_textures
def get_uv_textures_new(mesh):
   return mesh.uv_textures
sandstorm
 
Posts: 41
Joined: Sat Mar 08, 2008 1:51 am
Location: Zurich / Mannheim

Re: LuxBlend25: Download, installation instructions, issues

Postby jensverwiebe » Sun Mar 04, 2012 1:46 pm

sandstorm wrote:Thanks! Instead of re-building an older version, I have changed geometry.py to get it at least to work. For all of you, here is what I did:
Search for the following text in geometry.py
Code: Select all
# hack for bmesh
# TODO remove this when obsolete
def get_uv_textures_old(mesh):
   return mesh.uv_textures
def get_uv_textures_new(mesh):
   return mesh.tessface_uv_textures

and replace the last row with
Code: Select all
# hack for bmesh
# TODO remove this when obsolete
def get_uv_textures_old(mesh):
   return mesh.uv_textures
def get_uv_textures_new(mesh):
   return mesh.uv_textures


Thats not the right fix.
We test for revision but when just adapting the new revision as byte for us, i heard not every blender-build will have a revision compiled in, so this must fail then.
I look now for rather using the bpy.app.version tuple, but in the past this had the disadvantage to not have a new subversion on all relevant api-changes. :evil:
So i can do what i want, i guess we will sometimes have a breakage in conditionals.

Stay tuned, guess i commit a change tonight.

AKA: if bpy.app.version[1] > 62 and bpy.app.version[2] > 0 etc.

Jens
Last edited by jensverwiebe on Sun Mar 04, 2012 2:07 pm, edited 1 time in total.
User avatar
jensverwiebe
Developer
 
Posts: 2124
Joined: Wed Apr 02, 2008 4:34 pm

Re: LuxBlend25: Download, installation instructions, issues

Postby sandstorm » Sun Mar 04, 2012 2:04 pm

For me the above shown change worked so far. I could even render with textures. Everything works as expected :D
sandstorm
 
Posts: 41
Joined: Sat Mar 08, 2008 1:51 am
Location: Zurich / Mannheim

Re: LuxBlend25: Download, installation instructions, issues

Postby jensverwiebe » Sun Mar 04, 2012 2:26 pm

I pushed the changes: Use now version tuple for conditionals, since not all blenderbuilds are compiled with build_info aka revision

Conditionals are:

- if bpy.app.version[1] >= 62 and bpy.app.version[2] > 0: --> bmesh adaption
- if bpy.app.version[1] < 62 : --> old matrix is used

..where bpy.app.version is tuple (major, minor, sub),
bpy.app.version[0] is major ( not used yet ), bpy.app.version[1] is minor and bpy.app.version[2] is sub-version, all elements integer.


Since i guess no one would use a svn revision before 2.62 anymore, nobody should run into trouble.

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

PreviousNext

Return to LuxBlend (Blender Exporter)

Who is online

Users browsing this forum: No registered users and 2 guests