![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | 3D and effects Hi all, it is possible in WPF to implement such effects like shadowing from one object on an other or mirror-effects (polished surface coated with glass that reflects an image). And whats about antialiasing in WPF??? |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: 3D and effects AlexB wrote: > Hi all, > > it is possible in WPF to implement such effects like shadowing from one > object on an other or mirror-effects (polished surface coated with glass that > reflects an image). And whats about antialiasing in WPF??? Hi Alex, As for the Shadow Effect: Try the "BitmapEffect" property inherited from UIElement class. DropShadowBitmapEffect myEffect = new DropShadowBitmapEffect(); myEffect.Color = Colors.Blue; myEffect.Direction = 320; myEffect.Softness = 1; .... myElement.BitmapEffect = myEffect; or <Button> <Button.BitmapEffect> <DropShadowBitmapEffect Color="Blue" Direction="320" Softness="1" /> </Button.BitmapEffect> </Button> As for the reflection... This is commonly done using a VisualBrush... VisualBrush is a Brush that can be used to "paint" a copy of a visual element... To simulate reflection, you create a VisualBrush for the element you wish to reflect, then you apply a Opacity Mask on it. To make it appear as a reflection, you need to apply a Skew Transform and another transform (can't remember which) to the RenderTransform property... Finally, you need to draw something (like a rectangle, border, ...) wit hthe VisualBrush!!! and place the reflection where you want. I know there is a sample for that around, so take a look around, search on VisualBrush in the SDK documentation... I'm pretty sure you're gonna find what you need! If you need more help, do not hesitate to repost your concerns in this thread..... |
My System Specs![]() |
| | #3 (permalink) |
| Guest | Re: 3D and effects Wow, thank you for quick reply. But the thing I'm really interested in are effects in 3D scene (ViewPort3D). So I want 3D objects can drop shadows and can be reflected on surfaces and so on (fog, glowing, antialiasing...). I think it's not possible in this relase of WPF, isn't it? (I found out, that antialiasing for 3D is supported only on Vista system) "Marcus" wrote: > > AlexB wrote: > > Hi all, > > > > it is possible in WPF to implement such effects like shadowing from one > > object on an other or mirror-effects (polished surface coated with glass that > > reflects an image). And whats about antialiasing in WPF??? > > Hi Alex, > > As for the Shadow Effect: > > Try the "BitmapEffect" property inherited from UIElement class. > > DropShadowBitmapEffect myEffect = new DropShadowBitmapEffect(); > > myEffect.Color = Colors.Blue; > myEffect.Direction = 320; > myEffect.Softness = 1; > .... > > myElement.BitmapEffect = myEffect; > > or > > <Button> > <Button.BitmapEffect> > <DropShadowBitmapEffect Color="Blue" Direction="320" Softness="1" > /> > </Button.BitmapEffect> > </Button> > > As for the reflection... This is commonly done using a VisualBrush... > > VisualBrush is a Brush that can be used to "paint" a copy of a visual > element... > > To simulate reflection, you create a VisualBrush for the element you > wish to reflect, then you apply a Opacity Mask on it. > > To make it appear as a reflection, you need to apply a Skew Transform > and another transform (can't remember which) to the RenderTransform > property... > > Finally, you need to draw something (like a rectangle, border, ...) wit > hthe VisualBrush!!! and place the reflection where you want. > > I know there is a sample for that around, so take a look around, search > on VisualBrush in the SDK documentation... I'm pretty sure you're gonna > find what you need! > > If you need more help, do not hesitate to repost your concerns in this > thread..... > > |
My System Specs![]() |
| | #4 (permalink) |
| Guest | Re: 3D and effects What Alex wants are some DX out of the box features that are not found in WPF. WPF 3D is not DX 9. All the tricks you did in DX 7 will come back into play with WPF...like having 2 models to simulate reflection. Fog, blur, shadows, reflections - nope. Anti-Aliasing - yes, but only in Vista. I also hope you are not trying to write a 3rd person shooter...WPF 3D is NOT DX 9. WPF 3D IS for rich client applications. "AlexB" wrote: > Wow, thank you for quick reply. But the thing I'm really interested in are > effects in 3D scene (ViewPort3D). So I want 3D objects can drop shadows and > can be reflected on surfaces and so on (fog, glowing, antialiasing...). I > think it's not possible in this relase of WPF, isn't it? (I found out, that > antialiasing for 3D is supported only on Vista system) > > > > > "Marcus" wrote: > > > > > AlexB wrote: > > > Hi all, > > > > > > it is possible in WPF to implement such effects like shadowing from one > > > object on an other or mirror-effects (polished surface coated with glass that > > > reflects an image). And whats about antialiasing in WPF??? > > > > Hi Alex, > > > > As for the Shadow Effect: > > > > Try the "BitmapEffect" property inherited from UIElement class. > > > > DropShadowBitmapEffect myEffect = new DropShadowBitmapEffect(); > > > > myEffect.Color = Colors.Blue; > > myEffect.Direction = 320; > > myEffect.Softness = 1; > > .... > > > > myElement.BitmapEffect = myEffect; > > > > or > > > > <Button> > > <Button.BitmapEffect> > > <DropShadowBitmapEffect Color="Blue" Direction="320" Softness="1" > > /> > > </Button.BitmapEffect> > > </Button> > > > > As for the reflection... This is commonly done using a VisualBrush... > > > > VisualBrush is a Brush that can be used to "paint" a copy of a visual > > element... > > > > To simulate reflection, you create a VisualBrush for the element you > > wish to reflect, then you apply a Opacity Mask on it. > > > > To make it appear as a reflection, you need to apply a Skew Transform > > and another transform (can't remember which) to the RenderTransform > > property... > > > > Finally, you need to draw something (like a rectangle, border, ...) wit > > hthe VisualBrush!!! and place the reflection where you want. > > > > I know there is a sample for that around, so take a look around, search > > on VisualBrush in the SDK documentation... I'm pretty sure you're gonna > > find what you need! > > > > If you need more help, do not hesitate to repost your concerns in this > > thread..... > > > > |
My System Specs![]() |
| | #5 (permalink) |
| Guest | Re: 3D and effects Thanks for info. I really don't want to write a 3D shooter game. What we want to develop is an application with geo map functionality based on Virtual Earth images. We plan to place the tiles on 3D plane. I wanted to hide the plane's edge in horizon with the fog effect. Futher more it would be very cool to get shadows of objects (pin) dropped on the plane (map). I see I will have to use any tricks to implement this, for eaxample with opacity or some brushes... Thank for help... "TheRHogue" wrote: > What Alex wants are some DX out of the box features that are not found in WPF. > > WPF 3D is not DX 9. All the tricks you did in DX 7 will come back into play > with WPF...like having 2 models to simulate reflection. > > Fog, blur, shadows, reflections - nope. > > Anti-Aliasing - yes, but only in Vista. > > I also hope you are not trying to write a 3rd person shooter...WPF 3D is NOT > DX 9. WPF 3D IS for rich client applications. > > "AlexB" wrote: > > > Wow, thank you for quick reply. But the thing I'm really interested in are > > effects in 3D scene (ViewPort3D). So I want 3D objects can drop shadows and > > can be reflected on surfaces and so on (fog, glowing, antialiasing...). I > > think it's not possible in this relase of WPF, isn't it? (I found out, that > > antialiasing for 3D is supported only on Vista system) > > > > > > > > > > "Marcus" wrote: > > > > > > > > AlexB wrote: > > > > Hi all, > > > > > > > > it is possible in WPF to implement such effects like shadowing from one > > > > object on an other or mirror-effects (polished surface coated with glass that > > > > reflects an image). And whats about antialiasing in WPF??? > > > > > > Hi Alex, > > > > > > As for the Shadow Effect: > > > > > > Try the "BitmapEffect" property inherited from UIElement class. > > > > > > DropShadowBitmapEffect myEffect = new DropShadowBitmapEffect(); > > > > > > myEffect.Color = Colors.Blue; > > > myEffect.Direction = 320; > > > myEffect.Softness = 1; > > > .... > > > > > > myElement.BitmapEffect = myEffect; > > > > > > or > > > > > > <Button> > > > <Button.BitmapEffect> > > > <DropShadowBitmapEffect Color="Blue" Direction="320" Softness="1" > > > /> > > > </Button.BitmapEffect> > > > </Button> > > > > > > As for the reflection... This is commonly done using a VisualBrush... > > > > > > VisualBrush is a Brush that can be used to "paint" a copy of a visual > > > element... > > > > > > To simulate reflection, you create a VisualBrush for the element you > > > wish to reflect, then you apply a Opacity Mask on it. > > > > > > To make it appear as a reflection, you need to apply a Skew Transform > > > and another transform (can't remember which) to the RenderTransform > > > property... > > > > > > Finally, you need to draw something (like a rectangle, border, ...) wit > > > hthe VisualBrush!!! and place the reflection where you want. > > > > > > I know there is a sample for that around, so take a look around, search > > > on VisualBrush in the SDK documentation... I'm pretty sure you're gonna > > > find what you need! > > > > > > If you need more help, do not hesitate to repost your concerns in this > > > thread..... > > > > > > |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What effects Aero | b11_ | Vista General | 1 | 08-08-2007 10:03 PM |
| Tansitions and effects | Darren Wilkins | Vista music pictures video | 4 | 08-02-2007 06:20 PM |
| Alt+Tab 3D Effects Dissapered | Shane Smith | Vista General | 10 | 10-01-2006 09:21 AM |
| 3d Reflection effects | Craig Kelly | Avalon | 7 | 01-10-2006 03:52 PM |