Japanese | English | Korean

Samples

Semi-transparency using BlendHalf

MascotCapsule V3 can render models semi-transparently, when semi-transparency attributes are specified for these models.


Use the setSemiTransparentEnabled( boolean isEnabled ) method in the Effect3D class to specify the semi-transparency setting. Specify true to enable semi-transparency, and false to disable.

/**
  * commandAction() method
  * Process when the soft key is pressed-down (changing the rendering parameter)
  */
public void commandAction( Command c, Displayable d ){
String label = c.getLabel();

/* Changing the shading method */
if( label.equals( commandLabels[ 0 ] ) ){
effect.setSemiTransparentEnabled( false );
}else if( label.equals( commandLabels[ 1 ] ) ){
effect.setSemiTransparentEnabled( true );
}
}
 

Semi-transparency enabled ( left ), disabled ( right )