Jump to content

FadeEntity


gordonramp
 Share

Recommended Posts

There is more to it because of how LE is setup. The model that you want to fade has to be in the transparent world. Then you can use the alpha value in EntityColor() I think to set the transparency. The reason this sucks is because picking is per world. So if you want this object to be pickable also you need to create it twice. Once in the normal world and again in the transparent world. By default hide the transparent world one and show the normal world model. Then when it's picked in the normal world hide the normal world model and show the transparent world model and start changing the alpha of the color.

Link to comment
Share on other sites

No, you need to create an own world for each transparent object, unless you want multiple objects to have the same transparency.

 

The actual transparency is controlled with the alpha value of SetColor when you draw the rendered image on screen.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...