mmonem / blender2ogre

Automatically exported from code.google.com/p/blender2ogre
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Unable to generates the 'blend_manual" for texture unit #41

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
First of all, I run blender2ogre 0.5.6 preview3 in Blender 2.6

1. Start up with the default box
2. Add a new tex to default material, with an ordinary image
3. Check "Alpha" in "Influence" and set "Color" to any value
   that less than 1.0
4. Now "blend_manual" appears in "Ogre Texture", export our box.

The "blend_manual" will not generate as expected. I've looked the source of 
blender2ogre for place that will generate "blend_manual", but see nothing.

A piece of code that will work probably, I think, is the line 6039 list below:

6036    if btype=='MIX' and slot.use_map_alpha and not slot.use_stencil:
6037        if slot.diffuse_color_factor >= 1.0: texop = 'alpha_blend'
6038        else:
6039            texop = TextureUnit.colour_op[ btype ]
6039            ex = True

If I replaced line 6039 with 

6039            texop = TextureUnit.colour_op_ex[ btype ]

the 'blend_manual' will generate as expected, but dunno will it causes any 
problem.

Original issue reported on code.google.com by Hienjni...@gmail.com on 2 Nov 2011 at 3:05

GoogleCodeExporter commented 8 years ago
Can you verify if this now works so I can close this issue. Seems the _ex 
version is in  the codebase now. If you cant get the latest HG code and report 
back. Might have been fixed in 0.5.7 already.

Original comment by jo...@adminotech.com on 10 Sep 2012 at 12:08

GoogleCodeExporter commented 8 years ago
Thanks for your effort!

Sorry about that but I've tried blender2ogre  rev.c995abd8004d for several 
times, but can't get expected result.

I attached a blender scene which used to export/test "blend_manual" blend mode, 
in the hope that I was wrong or missed something to get thing right.

BTW: .blend file is created in blender 2.63a.

Original comment by Hienjni...@gmail.com on 11 Sep 2012 at 12:59

Attachments: