Profile Picture

Problems with RenderSurface.Window in SP4

Posted By Yuri Gaidoukevitch 15 Years Ago
Author
Message
Yuri Gaidoukevitch
Posted 15 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 5, Visits: 1
I just installed a new SP4 version 9.7.15.12 of NevronChart for WinForms and found some problems with rendering of 3D charts (NCartesianChart). Previously I used version 8.6.26.12, which worked correctly.

1. Setting ChartControl.Settings.RenderDevice = RenderDevice.OpenGL shows just a grid. After some experimenting I found that with RenderDevice.Auto I can see the chart, though RenderDevice.OpenGL should work too (as it was in the old version).

2. In the old version I used ChartControl.Settings.RenderSurface = RenderSurface.Window, which worked correctly and fast. In the new version setting RenderSurface to Window shows an unupdated rectangular area (~670x380 pixels) in the top left corner of the chart area (screenshot attached), the chart updates are slow and eventually the application hangs. If I set RenderSurface to Bitmap, the rendering works, but much slower than it was before.

What can you recommend to fix the problem?

Thank you,

Yuri Gaidoukevitch
Media Cybernetics

Attachments
RenderArea.jpg (34 views, 117.00 KB)
bob milanov
Posted 15 Years Ago
View Quick Profile
Supreme Being

Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)

Group: Forum Members
Last Active: 6 Months Ago
Posts: 153, Visits: 11

Hi Yuri,

 

Can you try to remove all calls to RenderDevice – the control will now automatically select the render device based on the Enable3D setting applicable to chart panels – for example:

 

using Nevron.GraphicsCore;

using Nevron.Chart;

using Nevron.Chart.WinForm;

 

 

NChart chart = nChartControl1.Charts[0];

nChartControl1.Settings.RenderSurface = RenderSurface.Window;

chart.Enable3D = true;

 

NBarSeries bar = new NBarSeries();

bar.Values.Add(10);

bar.Values.Add(20);

bar.Values.Add(30);

 

chart.Series.Add(bar);

 

nChartControl1.Controller.Tools.Add(new NSelectorTool());

nChartControl1.Controller.Tools.Add(new NTrackballTool());

Hope I helped – let me know if the problem persists…

 

Best regards,
Bob



Yuri Gaidoukevitch
Posted 15 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 5, Visits: 1
Hi Bob,

Unfortunately it didn't help. If I set "chart.Enable3D = true" after "RenderSurface = RenderSurface.Window" the window is not updating at all. I have to force image update (minimize/maximize) to see that the graph is changing after user interaction.
And I still see a big rectangular area in the top-right corner, which is not changing.

I can reproduce the problem in your example in NMeshFillStyleUC.cs if you add these lines on line 102:

nChartControl1.Settings.RenderSurface = RenderSurface.Window;
// configure the chart
NChart chart = nChartControl1.Charts[0];

The window is not updating (though I don't see the black area as in my case). After first minimize/maximize it starts updating again. (in my case it doesn't start updating)

Something has changed between version 8 and 9 that causes the update problem. What can it be?

Thanks,

Yuri Gaidoukevitch

bob milanov
Posted 15 Years Ago
View Quick Profile
Supreme Being

Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)

Group: Forum Members
Last Active: 6 Months Ago
Posts: 153, Visits: 11

Hi Yuri,

I just checked the control with the same example (NMeshFillStyleUC) and it was working properly in Window mode. It may be that you canged video boards, or the video board driver has problems. Note that window mode depends on the hardware, where bitmap does not.

The easiest way to check if this is case is to disable hardware acceleations from Display/Troubleshooting in Windows and check if this is the case. Installing DirectX or the latest video board drivers from the manufactured can also help.

Let me know if the problem persits.

Best regards,
Bob





Similar Topics


Reading This Topic