Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Visual Brush being "cutoff"

 
 
Old 01-31-2006   #1 (permalink)
Avery Z


 
 

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 SpecsSystem Spec
Old 01-31-2006   #2 (permalink)
Jason [Mobiform]


 
 

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 SpecsSystem Spec
Old 01-31-2006   #3 (permalink)
Avery Z


 
 

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 SpecsSystem Spec
 

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46