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.

DarkBASIC Discussion / set alpha

Author
Message
hpfan273
19
Years of Service
User Offline
Joined: 19th Jan 2007
Location:
Posted: 22nd Apr 2007 18:13
is it possible

Why do they turn against me? Especially when i need them the most?
Sinani201
19
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 22nd Apr 2007 20:04
I don't understand the question...

What happens when when you mix coke, pop rocks, vinegar, and baking soda?
I am currently working on 2 projects: The Ultimate Killing Game & The Turtle Game
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 22nd Apr 2007 21:35
The Wilderbeast
20
Years of Service
User Offline
Joined: 14th Nov 2005
Location: UK
Posted: 23rd Apr 2007 21:39
depends what you are trying to use it with. the only transparency command in DBC is for 3d objects. But you can't set a specific value, it just makes it slightly transparent.


hpfan273
19
Years of Service
User Offline
Joined: 19th Jan 2007
Location:
Posted: 24th Apr 2007 02:19
yea... make it a ghost... ok... thanx guys... i c that i will have to update to pro soon... i have had many occurances where i can't do it without pro... but thanx

Why do they turn against me? Especially when i need them the most?
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 25th Apr 2007 02:45
@hpfan273

You do have some control over transparency if that's what you are after. You can set the object to respond to black as a totally transparent color, or you can create translucency with GHOST OBJECT ON.

Combining GHOST with FADE OBJECT, you can control the intensity of the normals (that controls how an object is affected by light) and give the impression of controlling the objects transparency. In fact, paired with SET AMBIENT LIGHT 0, you could make an object slowly disappear.

Here's a basic example. There is a cube within a sphere. The cube is solid, the sphere transparent. Use the UP arrow to increase the FADE value thus increase the normals. Use the DOWN arrow to decrease the FADE value and ultimately reverse the normals. Use the RIGHT arrow to increase AMBIENT and use the LEFT to decrease AMBIENT light.



Enjoy your day.
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 25th Apr 2007 04:04
Ah, I assumed he was on about alpha blending...

TDK_Man

Login to post a reply

Server time is: 2026-07-05 22:40:06
Your offset time is: 2026-07-05 22:40:06