Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 11-May-2016 17:05:04

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 268

alpha_rejection not works in android

// t6matTTTTTTT234 genrated by blender2ogre 0.6.0

material t6matTTTTTTT234
{
receive_shadows on

technique
{
pass t6matTTTTTTT234
{
ambient 0.800000011920929 0.800000011920929 0.800000011920929 1.0
diffuse 0.800000011920929 0.800000011920929 0.800000011920929 1.0
specular 0.0 0.0 0.0 1.0 12.5
emissive 0.0 0.0 0.0 1.0

//alpha_to_coverage on
//cull_hardware none
//depth_check off
//depth_write off
//scene_blend alpha_blend
//transparent_sorting force
//light_scissor on
alpha_rejection greater_equal 8

texture_unit
{
texture AndroidGame/tree06.png
tex_address_mode wrap
scale 1.0 1.0
colour_op alpha_blend
}
}
}
}

6c1c7465d33a.jpg


3d design as a hobby
blender, 3ds max, GTA San Andreas Modmaker, YTP Maker

Offline

#2 11-May-2016 17:32:23

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 4,442
Website

Re: alpha_rejection not works in android

even with depth_write off ?

Offline

#3 11-May-2016 17:32:53

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 268

Re: alpha_rejection not works in android

later I copy the code of smoke material to trees material, but it is only looks good for visual effects
4d57468bb40a.jpg
https://youtu.be/vrACCIbyM8Y

// t6matTTTTTTT234 genrated by blender2ogre 0.6.0

material t6matTTTTTTT234
{
receive_shadows on

technique
{
pass t6matTTTTTTT234
{
ambient 0.800000011920929 0.800000011920929 0.800000011920929 1.0
diffuse 0.800000011920929 0.800000011920929 0.800000011920929 1.0
specular 0.0 0.0 0.0 1.0 12.5
emissive 0.0 0.0 0.0 1.0

//alpha_to_coverage on
//cull_hardware none
//depth_check off
//depth_write off
//scene_blend alpha_blend
//transparent_sorting force
//light_scissor on
//alpha_rejection greater_equal 8

alpha_to_coverage off
cull_hardware none
depth_check on
depth_write off
scene_blend alpha_blend
scene_blend_op add
transparent_sorting force

texture_unit
{
texture AndroidGame/tree06.png
tex_address_mode wrap
scale 1.0 1.0
// colour_op alpha_blend
colour_op modulate
}
}
}
}

3d design as a hobby
blender, 3ds max, GTA San Andreas Modmaker, YTP Maker

Offline

#4 11-May-2016 17:36:58

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 268

Re: alpha_rejection not works in android

arkeon wrote:

even with depth_write off ?

1adf614bf075.jpg


3d design as a hobby
blender, 3ds max, GTA San Andreas Modmaker, YTP Maker

Offline

#5 11-May-2016 17:39:51

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 4,442
Website

Re: alpha_rejection not works in android

hmm strange ^^
the ogre gles shader generator must miss something here.
I'll try to make some tests when I'll get some time

Offline

#6 11-May-2016 17:49:40

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 268

Re: alpha_rejection not works in android

depth_check on
depth_write on

as well as
4d57468bb40a.jpg


3d design as a hobby
blender, 3ds max, GTA San Andreas Modmaker, YTP Maker

Offline

#7 16-May-2016 17:20:01

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 268

Re: alpha_rejection not works in android

(Built-inconverter)http://redmine.scolring.org/issues/550 updated files of 3d models


3d design as a hobby
blender, 3ds max, GTA San Andreas Modmaker, YTP Maker

Offline

Board footer

Powered by FluxBB