Jump to content

Recommended Posts

Posted

I can HideEntity and ShowEntity but how would I go about Fading an Entity to the point where it cannot be seen?

AMD Athlon x2 7750 2.7ghz, 6gb ddr2 ram, Galaxy9800GT 1gig ddr2 video card, Windows 7,64.

Posted

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.

Posted

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 ■

Posted

Yes. Unless it has changed since I last tried it, but I doubt that.

EDIT: I tried it again, still doesn't work.

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 ■

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.

×
×
  • Create New...