Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Node Shadows Bug? (Read 3191 times)
TimWard
YaBB Newbies
*
Offline



Posts: 17
Location: UK
Joined: Mar 27th, 2009
Node Shadows Bug?
May 21st, 2012 at 8:02pm
Print Post  
Hi,

I've just realised that at some point (but I believe when I updated to version 5.8 from 5.5) the nodes stopped displaying shadows. The lines still did, which was odd.

I checked every setting I could think would effect it, and checked them on a breakpoint to be sure and just couldn't find a reason

I set the node (Shape nodes) ShadowOffsetX and Y values to 5 and the Diagram.ShadowBrush to red. The Diagram ShadowsStyle to OneLevel, and EnableShadowEffects = True.

I read about the new NodeEffects but setting NodeEffects.Add(New SmoothShadowEffect) had no effect.

I then out of frustration removed this and just left the NodeEffects.Clear() - and the shadows came back? I also tried with EnableShadowEffects = False and that worked as well?

So for some reason, I only get shadows, on nodes, now when I have them turned off either with EnableShadowEffects = False , or  NodeEffects.Clear().

Any ideas?
Cheers
Tim
C3 Ltd.
  

Senior Developer | C3 Ltd | www.c3.co.uk
Back to top
 
IP Logged
 
TimWard
YaBB Newbies
*
Offline



Posts: 17
Location: UK
Joined: Mar 27th, 2009
Re: Node Shadows Bug?
Reply #1 - May 22nd, 2012 at 9:08am
Print Post  
I worked out the new smooth style shadow wasn't working because I hadn't set Diagram.EffectsProvider (which I hadn't noticed as it wasn't needed for the Aero effect)

Still not sure why the EnableShadowEffects property appears to work in reverse now if Diagram.EffectsProvider is not set

Also odd that the ShadowOffsetX/Y properties now appear to be in unit 8-10 times larger, not sure why?

Note that if you change the ShadowBrush on the old shadows it displays immediately, but with the smooth shadow it doesn't change till you do something like move the node.


What I really want it to be able to highlight nodes to a user in different ways... I'm changing the node border (node Pen) for one way but need another one at least, ideally I want something like the AeroEffect on/off per node as it's a great effect. I guess its custom draw time Undecided
  

Senior Developer | C3 Ltd | www.c3.co.uk
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node Shadows Bug?
Reply #2 - May 22nd, 2012 at 10:53am
Print Post  
Hi,

EnableShadowEffects might be stopping the standard solid shadows from rendering, hence the reverse effect if you don't load the provider.dll... Could you attach a test project showing the "ShadowOffsetX/Y properties now appear to be in unit 8-10 times larger" problem? We couldn't get this to happen.

Stoyan
« Last Edit: May 22nd, 2012 at 1:07pm by Stoyo »  
Back to top
 
IP Logged
 
TimWard
YaBB Newbies
*
Offline



Posts: 17
Location: UK
Joined: Mar 27th, 2009
Re: Node Shadows Bug?
Reply #3 - Jun 8th, 2012 at 4:13pm
Print Post  
Hi, Sorry for he late response, but more important things than shadows came up.

This is what I meant. On the left is the original shadow with an offset of 1, and on the right the new shadow effects with offset of 1 and .1



As you can see even reducing by a factor of 10 (from 1 to .1) still results in a much more prominent shadow (and we needed something more subtle)

The original ShadowOffsetX/Y appears to be in the same units as the nodes (in this example 1 and 18), but with the new shadow effects the setting doesn't appear to be a unit as such as you can see the 1 and 0.1 versions are not a factor of 10 different in appearance.

Anyway. It doesn't mater as we are ok running with the old shadow effect - I was just mentioning in passing that it was odd.

Cheers
Tim
  

Senior Developer | C3 Ltd | www.c3.co.uk
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node Shadows Bug?
Reply #4 - Jun 11th, 2012 at 7:34am
Print Post  
Hi,

Thanks for the update; our developer fixed this problem and you can find the fixed assemblies on the PM page.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
TimWard
YaBB Newbies
*
Offline



Posts: 17
Location: UK
Joined: Mar 27th, 2009
Re: Node Shadows Bug?
Reply #5 - Jun 11th, 2012 at 8:34am
Print Post  
Impressively fast fix.

Cheers
  

Senior Developer | C3 Ltd | www.c3.co.uk
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint