![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | Visual Brush being "cutoff" This is unrelated to my last question (Visual Brush as What is visible on screen): I have a canvas, 800x480, with a radial gradient in the center (purple inside, black outside) and some scattered elements here and there being used as a visual brush to paint one face of a cube in 3d with dimensions 0.8, .48, 0.8 - so everythign is proportional. If i paint the face with just a solid brush - the brush fills up the entire face - so i know the model is correct, but when i use the canvas as a visual brush, it seems to cut out a bit from the outside of the brush and stretch the results horizontally (but not vertically). I have pretty much narrowed this down to - where the canvas has solid black on the outside, the visual brush cuts out. Any ideas as to how to get it to just render the entire canvas? Thanks, Avery |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Visual Brush being "cutoff" I'm not sure using a solid brush to fill is proof that a visual brush is going to work. I belive using a solid color brush will fill always without necessarily needing correct texture coordinates. A better test would be to apply an ImageBrush ( ie texture ) of some kind, if you see that then a VisualBrush *should* work fine. proper texture coordinates for one face of a cube should look like this.... (0,0) (1,0) +---------+ | | | | | | +---------+ (0,1) (1,1) You might also want to check the ClipToBounds property on the canvas, make sure its set to true. "Avery Z" <AveryZ@discussions.microsoft.com> wrote in message news:F30E948F-C53C-47C0-9869-F3036945643D@microsoft.com... > This is unrelated to my last question (Visual Brush as What is visible on > screen): > > I have a canvas, 800x480, with a radial gradient in the center (purple > inside, black outside) and some scattered elements here and there being > used > as a visual brush to paint one face of a cube in 3d with dimensions 0.8, > .48, > 0.8 - so everythign is proportional. > > If i paint the face with just a solid brush - the brush fills up the > entire > face - so i know the model is correct, but when i use the canvas as a > visual > brush, it seems to cut out a bit from the outside of the brush and stretch > the results horizontally (but not vertically). I have pretty much narrowed > this down to - where the canvas has solid black on the outside, the visual > brush cuts out. > > Any ideas as to how to get it to just render the entire canvas? > > Thanks, > Avery |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Visual Brush being "cutoff" ClipToBound="True" worked. I had items that rendered outside of the 800x480 space of the canvas. This changed the dimensions of what the brush was rendering - so cliptobounds worked! Thanks Jason, Avery "Jason [Mobiform]" wrote: > I'm not sure using a solid brush to fill is proof that a visual brush is > going to work. I belive using a solid color brush will fill always without > necessarily needing correct texture coordinates. A better test would be to > apply an ImageBrush ( ie texture ) of some kind, if you see that then a > VisualBrush *should* work fine. proper texture coordinates for one face of a > cube should look like this.... > > (0,0) (1,0) > +---------+ > | | > | | > | | > +---------+ > (0,1) (1,1) > > You might also want to check the ClipToBounds property on the canvas, make > sure its set to true. > > > > "Avery Z" <AveryZ@discussions.microsoft.com> wrote in message > news:F30E948F-C53C-47C0-9869-F3036945643D@microsoft.com... > > This is unrelated to my last question (Visual Brush as What is visible on > > screen): > > > > I have a canvas, 800x480, with a radial gradient in the center (purple > > inside, black outside) and some scattered elements here and there being > > used > > as a visual brush to paint one face of a cube in 3d with dimensions 0.8, > > .48, > > 0.8 - so everythign is proportional. > > > > If i paint the face with just a solid brush - the brush fills up the > > entire > > face - so i know the model is correct, but when i use the canvas as a > > visual > > brush, it seems to cut out a bit from the outside of the brush and stretch > > the results horizontally (but not vertically). I have pretty much narrowed > > this down to - where the canvas has solid black on the outside, the visual > > brush cuts out. > > > > Any ideas as to how to get it to just render the entire canvas? > > > > Thanks, > > Avery > > > |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| custom shortcut for "adjust visual effect" | Vista performance & maintenance | |||
| Keep getting error: "Microsoft visual basic c++ runtime library" | Vista General | |||
| "Disable Visual Themes" option doesn't work in app properties. | Vista General | |||
| "Open with" fails with Visual Studio 2005 | Vista file management | |||