Posted May 9, 201411 yr Hey guys! I want to add a special block which renders the player watching it but with a colorless skin (saturation = 0) How can I do this? I actually have a renderer which renders the player exactly as i want but how can i disable the color?? -_B_M_ http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
May 10, 201411 yr Hi I don't think there is any such command in OpenGL, I imagine it would take a bit of work with shaders which is out of my experience... What I would do - take the player texture and create a greyscale version of it, either using the CPU or by using render-to-texture for the three channels with appropriate blending. http://stackoverflow.com/questions/596216/formula-to-determine-brightness-of-rgb-color Personally I'd use CPU because I haven't used OpenGL render to texture before, although I'm told it's quite easy. -TGG
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.