Transparent zone into .x file for blitz3d

I just andquot;unwrappedandquot; (the first of the 3 uv tools) and saved as a *.bmp – then in a 2d art package (serif photoplus8) made and saved a *.png (using the unwrapped bump as a template) (I didn’t know you could save *.png from 3dc andnbsp;:-[)

maybe there is a way to force blitz to load in the alpha without using loadtexture [i:ygkbifl0]name[/i:ygkbifl0],2 ….. ?

Hi !

Is somebody i’ve experimented to produce a transparent zone into a mesh with 3dc, save the model as .x format and import it to blitz… See picture… I want to set transparent the green zone. In fact this is a resized cube, with an uvmap bitmap. andnbsp;

Thanks for you help !

Hi Hub,

When you load in the texture you need to tell blitz that it has an andquot;alphaandquot; – just add andquot;,2andquot; eg.

tex=LoadTexture(andquot;trans.pngandquot;,2) ;

(see andquot;LoadTextureandquot; in the blitz help for a full list of parameters.)

Alan

(I have sent you a quick example)

Nice example Alan !

1) If you use the 3dc _uvmap_ tool and save the uvmap texture as an .png. Next use photoshop and create an alpha layer , i suppose that it works too ?

2) In this case, i suppose that you must use again the loadtexture command to force blitz to use the alpha layer information. (Normally blitz3d load the texture automatically if the uvmap file is in the same folder than the .x file, but without the transparent effect).

Thanks

You must be logged in to reply in this thread.

4 posts