KevinTunis Posted October 31, 2006 Share Posted October 31, 2006 How do you create reflective objects and text in v 3.0? Quote Thanks, Kevin Tunis Link to comment Share on other sites More sharing options...
trickman Posted October 31, 2006 Share Posted October 31, 2006 this should be moved in General discussion. You can use the gradient plugin in order to create a reflection. Flip what you want to reflect. Move it to the correct position. Set colors ALPHA to: Primary: 255; Secondary: 0 Use the gradient plugin with alpha only checked. Quote Link to comment Share on other sites More sharing options...
barkbark00 Posted October 31, 2006 Share Posted October 31, 2006 You can use the gradient plugin in order to create a reflection. For 3.0 there is the Gradient tool, hehe... (I still use the plugin when I don't want to worry about "drawing" the gradient) Quote Take responsibility for your own intelligence. -Rick Brewster Link to comment Share on other sites More sharing options...
KevinTunis Posted November 19, 2006 Author Share Posted November 19, 2006 Here is what I want to do. I have been testing different ways to do this and none have been successful so I thought I might just come back here and ask. I have an image of a server with a white background; normally what I would do is save it as a gif and make the white background transparent. In Paint.NET, I am not sure how this is done or what would be my best option. Than I would create my banner, in this case I wanted to gradient the color from a navy blue to a black at the bottom. The white background would then become the blue to black background; the server would than reflect in the black portion of the background. Could anybody take me through the steps to accomplish this? [ Quote Thanks, Kevin Tunis Link to comment Share on other sites More sharing options...
munchkinmann Posted November 26, 2006 Share Posted November 26, 2006 Kevin Tunis: what you could do is selc all the white (the backround) and then use the gradient tool. When you have something selected, paint.net only lets you work on that selection. I hope this helps, i didn't really understand what you want to do though. Quote Link to comment Share on other sites More sharing options...
MadJik Posted November 26, 2006 Share Posted November 26, 2006 Use the codelab for that: http://paintdotnet.12.forumer.com/viewtopic.php?p=16284#16284 Cut the shadow first, and delete remaining blue pixels... Tada!!!! Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
Tubular Tos Posted November 26, 2006 Share Posted November 26, 2006 Humm! I would like to use this effect but i don't know how to use a codelab so i must to wait for the BolBait's dll Quote To be free To be wild And to be Just like a child Mike Oldfield http://www.myspace.com/tubulartos Link to comment Share on other sites More sharing options...
KevinTunis Posted November 26, 2006 Author Share Posted November 26, 2006 Kevin Tunis:what you could do is selc all the white (the backround) and then use the gradient tool. When you have something selected, paint.net only lets you work on that selection. I hope this helps, i didn't really understand what you want to do though. munchkinmann, can you use the image that MadJik created and explain how you select the white background and gradient this background from navy to black? Use the codelab for that:http://paintdotnet.12.forumer.com/viewtopic.php?p=16284#16284 Cut the shadow first, and delete remaining blue pixels... Tada!!!! MadJik, can you tell me more about codelab and how to install/use it? Quote Thanks, Kevin Tunis Link to comment Share on other sites More sharing options...
MadJik Posted November 26, 2006 Share Posted November 26, 2006 Well! CodeLab is a plug-in here: http://paintdotnet.12.forumer.com/viewtopic.php?t=1096 I'm not the one to explain CodeLab. It uses C# programming language. The Code for reflection is here: http://paintdotnet.12.forumer.com/viewtopic.php?t=2520 Read the topics behind this links... This is from where I started... Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
Tubular Tos Posted November 26, 2006 Share Posted November 26, 2006 Madjik ? It doesn't work ! The .cs into the samples folder included in codelab zip work fine but not the code for reflections made by Boltbait . However i have followed the instructions but nothing happens... Quote To be free To be wild And to be Just like a child Mike Oldfield http://www.myspace.com/tubulartos Link to comment Share on other sites More sharing options...
MadJik Posted November 27, 2006 Share Posted November 27, 2006 This is the code is used: void Render(Surface dst, Surface src, Rectangle rect) { int depth = 100; // maximum distance of the reflection int MaxAlpha = 128; // darkest reflection (255-0, default 128) int ignore = 0; // bottom pixels of object to ignore PdnRegion selectionRegion = EnvironmentParameters.GetSelection(src.Bounds); Rectangle selection = this.EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); ColorBgra CurrentPixel; for(int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { if (selectionRegion.IsVisible(x, y)) { CurrentPixel = src[x,y]; // Get the current pixel if (CurrentPixel.A == 0) // is it transparent? { int y1=0; int yd=0; for (y1=y; y1 > 0; y1--) { if ((y1 != selection.Top) && (src[x,y1].A == 0)) { yd++; } else { break; } } if (y1+1-yd-ignore >= 0) { CurrentPixel=src[x,y1+1-yd-ignore]; if (CurrentPixel.A > 0) if (yd { // fade the reflection out CurrentPixel.A = (byte)((MaxAlpha/depth)*(depth-yd)*CurrentPixel.A/255); } else { CurrentPixel.A = 0; // totally faded at this point } } } dst[x,y] = CurrentPixel; } } } } I just changed paremeters Depth = 250 and MAxAlpha = 255 for this server! Open CodeLab and Copy/paste this code. Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
MadJik Posted November 27, 2006 Share Posted November 27, 2006 Important ! The background must be transparent. (White or Black will also be "reflected"). PS: DLL for this code is now available here... http://paintdotnet.12.forumer.com/viewtopic.php?p=17548#17548 Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
Tubular Tos Posted November 28, 2006 Share Posted November 28, 2006 :wink: Thanks a lot Madjik !!! Quote To be free To be wild And to be Just like a child Mike Oldfield http://www.myspace.com/tubulartos 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.