Jump to content

Meshes with an opacityTexture have no shadow: Problem or feature?


JCPalmer
 Share

Recommended Posts

The exporting of Blender procedural textures is essentially complete!  Gus the gingerbread man now looks straight from the oven, with his Noise procedure with diffuse & normal influence, and his Stucci Procedure normal influence.  FYI, a Blender texture can have "Influence" across multiple BJS textures.  The result was a material with 2 baked textures: diffuse using Noise, & bump using Noise & Stucci.

 

Now I started playing by adding alpha = .5 influence to the Noise Procedure, which caused a 3rd bake of an opacity texture.  Looked really interesting as you moved around it, but now there is no shadow, generated on the BJS side.  Is this supposed to happen?

post-8492-0-57064400-1435686126.png

Link to comment
Share on other sites

Related question, should baked textures ever need alpha in the file? The opacity texture seemed to be just 2 colors.  Here are the thumbnails:

post-8492-0-27272700-1435687410.png

The reason I ask is the exporter has to pick a file format, & whether the internal image has alpha.  I believe JPG is the best format from a file size perspective, but am pretty sure it does not handle alpha.  Is there a reason I should not hard code for JPG?

Link to comment
Share on other sites

Temechon, thanks.  I thought that was so about the shadows, but thought I would ask.

 

As far as hard coding JPEG as the output format.  It worked.  The opacity texture must not use alpha itself.  Did need to allow user to control the size of any baked textures & quality on a mesh by mesh basis.  Added 2 custom fields for meshes, as shown.  Found with JPEG, it was best to go with a large size 2048, but low quality like 50.  This matched the look of a 1024 PNG, but at a third less the file size.

 

post-8492-0-75740100-1435714709.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...