Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Is it possible to have a Transparent plain on areas of black on the texture ?

Author
Message
Newbie5UK
19
Years of Service
User Offline
Joined: 13th Nov 2004
Location:
Posted: 25th Mar 2006 09:51
Hi,

I currently am using a large flat sprite as a CockPit where the window areas are black and transparent so you can see through them. Clear the game woudl run faster I guess if this was a plain..
How do I make the black areas of the texture transparent on the plain and would it be able to place text on the plain ?

Thx
Me!
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 25th Mar 2006 09:59 Edited at: 25th Mar 2006 10:03
set the transparency on, in pro

set object transparency obj,1

in classic

set object obj,0,1,0,0,1,1,1

(iirc), to set text onto the plain either use the text commands just before the sync or use sprites with messages or numbers pre defined on them.





I don`t care what you say, theres no way the commander of a Kamakasi Squadron got promoted up through the ranks.
Newbie5UK
19
Years of Service
User Offline
Joined: 13th Nov 2004
Location:
Posted: 25th Mar 2006 10:17
just figured it.. thx... having problems position in the z-axis, i.e want to position the plain :-

Position Object 0,0,0 but it won't sit at 0 in the z-axis, is there a way to disable the z-axis for this object so other objects ignore it and I can place at 0 in z-axis ?
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 25th Mar 2006 13:31 Edited at: 25th Mar 2006 13:31
It is being positioned in the z axis it's just rotated so you cant see it, after creating the plain use XROTATE OBJECT ObjNum, -90 to make the plain face the camera.

Login to post a reply

Server time is: 2024-09-24 19:31:42
Your offset time is: 2024-09-24 19:31:42