LarkSS Posted December 7, 2008 Report Share Posted December 7, 2008 When it comes to lighting, multiply seems to be the best technique as it preserves dark colors. However, MMF2 doesn't support this transparency effect. Does anyone know if it's possible to recreate the effect within MMF2? I figured I could manually grab the colors of pixels behind an object and multiply it with the object's color, but I can't find a way to grab the color of a pixel that's actually behind an object. I figured if I could get the color of a pixel on a specific layer, then that would be good too, but I can't find a way to do that either. Does MMF2 even allow you to edit its transparency modes? I've never really looked that deep into its core files and I doubt it even has technical support on it. If there's an extension that grabs pixels in the way I want or supports the effect directly, let me know; I'd love to be able to get this effect working. Related example: Download Left: Semi-64; Center: basicMultiply; Right: Add Link to comment Share on other sites More sharing options...
Damizean Posted December 10, 2008 Report Share Posted December 10, 2008 When it comes to lighting, multiply seems to be the best technique as it preserves dark colors. However, MMF2 doesn't support this transparency effect.Does anyone know if it's possible to recreate the effect within MMF2? I figured I could manually grab the colors of pixels behind an object and multiply it with the object's color, but I can't find a way to grab the color of a pixel that's actually behind an object. I figured if I could get the color of a pixel on a specific layer, then that would be good too, but I can't find a way to do that either. Does MMF2 even allow you to edit its transparency modes? I've never really looked that deep into its core files and I doubt it even has technical support on it. If there's an extension that grabs pixels in the way I want or supports the effect directly, let me know; I'd love to be able to get this effect working. Related example: Download [qimg]http://larkss.supersanctuary.net/PublicPics/SFGHQ/Other/Multiply.png[/qimg] Left: Semi-64; Center: basicMultiply; Right: Add If you were to manually use the multiply blending, it'd be terribly slow. Your best bet would be finding an extension, or use the substract blending, but you'd have to play with layers. Hard shit in MMF, in GM it's way easier to do this. Link to comment Share on other sites More sharing options...
Asuma Posted December 12, 2008 Report Share Posted December 12, 2008 I think the HWA object will be able to to this when it comes out of beta. I could be wrong though. Link to comment Share on other sites More sharing options...
LarkSS Posted December 12, 2008 Author Report Share Posted December 12, 2008 I kinda thought so too, or you'd be able to make a pixel shader to do it, but my graphics card doesn't support pixel shaders so HWA doesn't run for me. Go figure. =] Link to comment Share on other sites More sharing options...
Blue Frenzy Posted December 17, 2008 Report Share Posted December 17, 2008 Larkks, you don't have to put an object in order to make a blending effect. You can just have the multiply object invisible and read the pixel of the object behind. Later you just need to draw a pixel at the selected location reading the colour of the invisible object, instead of the frame one. But anyway, getting this to work at average speed in mmf is like a big no. Even in c i am having problems with slowdowns since i don't use hwa. Link to comment Share on other sites More sharing options...
LarkSS Posted December 18, 2008 Author Report Share Posted December 18, 2008 I've thought about that BF, but that method would only allow me to draw the Multiply effect once. Also, I already knew I'd get some nasty lag from it, but I was wondering if it would be useful for any pre-rendering effects or not. I've kinda given up on it at this point though and settled with Subtract. Link to comment Share on other sites More sharing options...
Blue Frenzy Posted December 18, 2008 Report Share Posted December 18, 2008 If you want prerendered objects, you can do it yourself at the start of the frame. Just save the result colour over a hidden object and then make it appear again. Link to comment Share on other sites More sharing options...
AzureSonic Posted December 24, 2008 Report Share Posted December 24, 2008 If your looking for the after effect look at the Sonic Worlds engine and they have the shaded multiply thing in it for Super Sonic. Try and base it off that. Link to comment Share on other sites More sharing options...
Recommended Posts