View Issue Details

IDProjectCategoryView StatusLast Update
0001291NoesisGUIC# SDKpublic2019-08-26 15:25
Reporterai_enabledAssigned Tojsantos 
Status assignedResolutionopen 
Product Version2.1.0f1 
Target Version2.2.5Fixed in Version 
Summary0001291: Textures rendering issues (unexplainable seams)
DescriptionHi guys,

the problem is presented in the attached screenshots:
screenshot #1 - how it looks in our game (when each rectangle has a 40x40 pixels simple white texture)
screenshot #2 - the issue is more obvious and perhaps give you some ideas... (I'm using an image #4 (TestWhiteRect) as a Texture Brush)
screenshot #3 - I've replaced texture brush everywhere with Brushes.White

As you can see the background visible through seams between rectangle elements:
1. But there are should be no seams. I've tried assigning Brushes.White instead of my texture brush and indeed there are no seams! So this is related to how you render textures, not the positioning/render meshing of the rectangles.
2. I've verified that it's the background permeating in seams (as I tried a different color for the background element and can see this color permeating).
3. The issue is visible even if zoom-in (with transform, very closely). It's still a small seam between elements. UPD. See my comment below!
4. RenderOptions.SetBitmapScalingMode(rectangle, BitmapScalingMode.NearestNeighbor) disables linear texture filtering but the issue still appears (all the screenshots with seams are made with the NearestNeighbor mode).
5. UseLayoutRounding is false for every rectangle and their parent panel control (which is a canvas).

I think it might be related to how you perform UV mapping or wrapping mode/bordering mode during texture rendering... however I'm really not sure how a semi-transparent pixel might appear in that case.

TagsNo tags attached.


related to 0000916 assignedjsantos Black lines between elements in Canvas 




2018-04-17 15:43


1.Problem.png (4,911 bytes)
1.Problem.png (4,911 bytes)
4.TestWhiteRect.png (17,733 bytes)
4.TestWhiteRect.png (17,733 bytes)


2018-04-17 15:55

updater   ~0005192

Though to consider - the size of seam is independent from the zoom (which is performed using ScaleTransform) and always about 1 device pixel. See the attached screenshot (remember that visible magenta rectangle is formed by four neighboring magenta pixels of the test texture (image #4 above)).



2018-04-18 19:37

manager   ~0005193

Thanks for all this information! Could you also please attach a frame snapshot using the D3D frame debugger? (visual studio -> Debug -> Graphics -> Start Graphics Debugging)


2018-06-01 22:33

manager   ~0005207

Thanks for the debug session!

And congrats for the momentum you are talking about. You deserve it!

Issue History

Date Modified Username Field Change
2018-04-17 15:43 ai_enabled New Issue
2018-04-17 15:43 ai_enabled File Added: 1.Problem.png
2018-04-17 15:43 ai_enabled File Added: 2.ProblemHowItRendered.png
2018-04-17 15:43 ai_enabled File Added: 3.WhenRenderingWithoutTextureBrush.png
2018-04-17 15:43 ai_enabled File Added: 4.TestWhiteRect.png
2018-04-17 15:44 ai_enabled Summary Textures rendering issues (seams!) => Textures rendering issues (unexplainable seams)
2018-04-17 15:44 ai_enabled Description Updated View Revisions
2018-04-17 15:45 ai_enabled Description Updated View Revisions
2018-04-17 15:46 ai_enabled Description Updated View Revisions
2018-04-17 15:47 ai_enabled Description Updated View Revisions
2018-04-17 15:55 ai_enabled File Added: Screenshot at 20-53-21.png
2018-04-17 15:55 ai_enabled Note Added: 0005192
2018-04-17 16:00 ai_enabled Description Updated View Revisions
2018-04-18 19:36 jsantos Assigned To => jsantos
2018-04-18 19:36 jsantos Status new => assigned
2018-04-18 19:37 jsantos Note Added: 0005193
2018-04-18 19:37 jsantos Status assigned => feedback
2018-05-29 15:06 ai_enabled Status feedback => assigned
2018-06-01 22:33 jsantos Note Added: 0005207
2018-11-01 02:14 jsantos View Status public => private
2018-11-21 16:41 jsantos Target Version => 2.2.0
2018-11-21 16:41 jsantos View Status private => public
2018-11-21 16:41 jsantos Platform => Any
2019-03-06 18:03 jsantos Relationship added related to 0000916
2019-03-18 22:09 sfernandez Target Version 2.2.0 => 2.2.1
2019-04-05 12:04 sfernandez Target Version 2.2.1 => 2.2.2
2019-04-30 10:14 sfernandez Target Version 2.2.2 => 2.2.3
2019-06-18 16:54 sfernandez Target Version 2.2.3 => 2.2.4
2019-08-26 15:25 jsantos Target Version 2.2.4 => 2.2.5