16
Bugs / Re: Bug? getPolygonIDs problem.
« on: September 29, 2010, 04:34:27 am »
You are right!!!. Thanks!!.
Just another quick question, how to you place the decal with the correct transparency. I use the following code, but the result is a black square with the bitmap inside. Any idea?
The code is always from the prevoius desktop demo:
obj.setTexture("decal");
obj.getMesh().compress();
obj.setTransparency(0);
//obj.setTransparencyMode( Object3D.TRANSPARENCY_MODE_ADD );
//obj.setLighting( Object3D.LIGHTING_NO_LIGHTS );
//obj.setAdditionalColor( new RGBColor(255,255,255) );
/*obj.setTransparencyMode(TRANSPARENCY_MODE_ADD);
obj.setTransparency(0); // was 3*/
I actually played a bit with different values, but noe seems to work. The result is always the same.
Is there a specific color to use? or a specific way to create the texture?
Thanks again,
Just another quick question, how to you place the decal with the correct transparency. I use the following code, but the result is a black square with the bitmap inside. Any idea?
The code is always from the prevoius desktop demo:
obj.setTexture("decal");
obj.getMesh().compress();
obj.setTransparency(0);
//obj.setTransparencyMode( Object3D.TRANSPARENCY_MODE_ADD );
//obj.setLighting( Object3D.LIGHTING_NO_LIGHTS );
//obj.setAdditionalColor( new RGBColor(255,255,255) );
/*obj.setTransparencyMode(TRANSPARENCY_MODE_ADD);
obj.setTransparency(0); // was 3*/
I actually played a bit with different values, but noe seems to work. The result is always the same.
Is there a specific color to use? or a specific way to create the texture?
Thanks again,