Amabilis Software    3D Canvas Community    3D Canvas Discussion Forums  Hop To Forum Categories  Game Development    Transparent zone into .x file for blitz3d
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
hub
Junior Member
Posted
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.  

Thanks for you help !
 
Posts: 57 | Registered: Fri November 07 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Alan
Posted Hide Post
Hi Hub,

When you load in the texture you need to tell blitz that it has an "alpha" - just add ",2" eg.

tex=LoadTexture("trans.png",2) ;

(see "LoadTexture" in the blitz help for a full list of parameters.)

Alan

(I have sent you a quick example)
 
Posts: 1068 | Location: Anglesey | Registered: Fri November 07 2003Reply With QuoteEdit or Delete MessageReport This Post
hub
Junior Member
Posted Hide Post
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
 
Posts: 57 | Registered: Fri November 07 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Alan
Posted Hide Post
I just "unwrapped" (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  :-[)

maybe there is a way to force blitz to load in the alpha without using loadtexture name,2 ..... ?
 
Posts: 1068 | Location: Anglesey | Registered: Fri November 07 2003Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

Amabilis Software    3D Canvas Community    3D Canvas Discussion Forums  Hop To Forum Categories  Game Development    Transparent zone into .x file for blitz3d

© Amabilis Software 2003-2007