how do I use an image in blender as a material in luxrender

Discussions about LuxRender's materials, and how to make the most of them.

Moderator: coordinators

how do I use an image in blender as a material in luxrender

Postby ashinms » Wed Mar 21, 2012 12:39 pm

I'mtrying to do a luxblend render where, in blender, I have a surface where the material is a jpeg. When I click convert all blender materials, though, I still only get the gray material in luxrender upon export. Is this a common problem? How do I work around it?
ashinms
 
Posts: 5
Joined: Tue Nov 15, 2011 7:33 pm

Re: how do I use an image in blender as a material in luxren

Postby J the Ninja » Wed Mar 21, 2012 1:34 pm

You need to attach your texture to a channel so Lux knows what to use it for (this is similar to the "influence" section in Blender). If you want to affect the main color of your material then you probably want the "diffuse color" or "reflection color" (depending on which material you are using). Click the T button next to the relevant channel and select your texture in the field that appears.
-Jason

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

Re: how do I use an image in blender as a material in luxren

Postby ashinms » Wed Mar 21, 2012 3:44 pm

Okay, lets back up a bit. I'm new to both Blender and Luxrender (I suppose I should have mentioned this in the original post). How do I go about attaching a texture to a channel? I've looked all through the documentation and tutorials, and I can't seem to find an answer.
ashinms
 
Posts: 5
Joined: Tue Nov 15, 2011 7:33 pm

Re: how do I use an image in blender as a material in luxren

Postby B.Y.O.B. » Wed Mar 21, 2012 4:15 pm

Follow these steps:
  • Create a new material for your object
  • Go to textures tab and create a new texture
  • choose "image texture" in the "Luxrender texture type" section
  • add in the path to your texture
  • go back to the materials settings
  • press the "T" right of "diffuse color"
  • choose your texture from the dropdown menu there
User avatar
B.Y.O.B.
 
Posts: 1887
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: how do I use an image in blender as a material in luxren

Postby SATtva » Wed Mar 21, 2012 10:41 pm

I'd also recommend you to go through Blender documentation to familiarize yourself with UI basics.
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 5500
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: how do I use an image in blender as a material in luxren

Postby ashinms » Thu Mar 22, 2012 10:53 am

I knew I'd eventually get a RTFM post.
ashinms
 
Posts: 5
Joined: Tue Nov 15, 2011 7:33 pm

Re: how do I use an image in blender as a material in luxren

Postby Eros » Tue Apr 03, 2012 9:13 am

You frown but, even with a tonne of experience with 3d and being confident in computing, and having an ability to generally click around and figure stuff out yourself, when blender is concerned reading a tutorial or seven is actually very valuable.

Plus, its possible to learn tips and tricks also, along with how the material system works in general as tutorials often cover many subjects.
User avatar
Eros
 
Posts: 415
Joined: Wed Jul 22, 2009 8:37 am

Re: how do I use an image in blender as a material in luxren

Postby VeraLapsa » Tue Apr 17, 2012 4:13 pm

Is there a way to do this via a python script?
I have a scene that has over 100 meshes in it that I imported from a obj file.
They all have textures set but I need to set the material to Matte and set the Diffuse color to use the texture that's already there.
I'm trying to familiarize my self with Blender's API but LuxRender has, as far as I can see, very few ops I can run.
VeraLapsa
 
Posts: 1
Joined: Tue Apr 17, 2012 3:31 pm

Re: how do I use an image in blender as a material in luxren

Postby Abel » Tue Apr 17, 2012 5:21 pm

VeraLapsa wrote:Is there a way to do this via a python script?

Sure, but someone would have to write it first. :)

I have a scene that has over 100 meshes in it that I imported from a obj file.
They all have textures set but I need to set the material to Matte and set the Diffuse color to use the texture that's already there.
I'm trying to familiarize my self with Blender's API but LuxRender has, as far as I can see, very few ops I can run.

I'm glad I'm not the only one in this situation; I would really like LuxRender to treat the first texture that is found on existing materials as the diffuse map. And talking about the way LuxBlend initializes materials, I'd also much prefer a glossy material with reasonably high roughness instead of matte - in practice I end up changing all materials from matte to glossy at some point, losing the assignment of textures to the diffuse channel in the process.
User avatar
Abel
Developer
 
Posts: 1416
Joined: Sat Oct 20, 2007 8:13 am
Location: Helsinki, Finland

Re: how do I use an image in blender as a material in luxren

Postby J the Ninja » Tue Apr 17, 2012 5:23 pm

Abel wrote:
VeraLapsa wrote:Is there a way to do this via a python script?

Sure, but someone would have to write it first. :)

I have a scene that has over 100 meshes in it that I imported from a obj file.
They all have textures set but I need to set the material to Matte and set the Diffuse color to use the texture that's already there.
I'm trying to familiarize my self with Blender's API but LuxRender has, as far as I can see, very few ops I can run.

I'm glad I'm not the only one in this situation; I would really like LuxRender to treat the first texture that is found on existing materials as the diffuse map. And talking about the way LuxBlend initializes materials, I'd also much prefer a glossy material with reasonably high roughness instead of matte - in practice I end up changing all materials from matte to glossy at some point, losing the assignment of textures to the diffuse channel in the process.



About the second point, you can just use the glossy coating function. Just flip that on over the base matte material. Not a perfect solution, but it's something.
-Jason

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


Return to Materials Help

Who is online

Users browsing this forum: No registered users and 0 guests