gordonramp Posted March 14, 2010 Share Posted March 14, 2010 I can HideEntity and ShowEntity but how would I go about Fading an Entity to the point where it cannot be seen? Quote AMD Athlon x2 7750 2.7ghz, 6gb ddr2 ram, Galaxy9800GT 1gig ddr2 video card, Windows 7,64. Link to comment Share on other sites More sharing options...
Rick Posted March 14, 2010 Share Posted March 14, 2010 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. Quote Link to comment Share on other sites More sharing options...
Canardia Posted March 14, 2010 Share Posted March 14, 2010 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. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Rick Posted March 14, 2010 Share Posted March 14, 2010 Hmm, are you sure you can do it with EntityColor() in the transparent world? Quote Link to comment Share on other sites More sharing options...
Canardia Posted March 14, 2010 Share Posted March 14, 2010 Yes. Unless it has changed since I last tried it, but I doubt that. EDIT: I tried it again, still doesn't work. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Recommended Posts
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.