Thread: Image Shading
View Single Post
  #9  
Old 04-05-2002, 11:06 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
I dont know why it would be so hard. other games use shading quite well, it never slows the game down. And most games use REAL transparency. not lights. If you made a black image a light in graal, you could never see it! whil in other games. it would be acually transparent.. You need a way to specify the alpha layer rather than using the image itself as its alpha layer

observe

showimg index,image,x,y;
changeimgalpha index,alphalayer;

Alpha layers would be a grayscale image that would specify the opacity in certain spoits of the image. THUS we could simulate shadows and other things.

So in o therwords. In your alphalayer image WHITE would be OPAQUE (solid color) and Black would be INVISIBLE (0% opacity)

and the scales inbetween white and black would be different levels of opacity.

Another way we could do this is

changeimgalpha index,opaceity;

opacity would be a value between 0-1; specifying how opaque and transparent an image ould be. But alpha layer would be more custom.
__________________

subliminal message: 1+1=3
Reply With Quote