Product Chat / Marts tex2Dgrad challenge to the community.

Author
Message
Preben
19
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 28th Mar 2017 11:32 Edited at: 28th Mar 2017 11:33
https://forum.game-guru.com/thread/217636#msg2574358

I like a challenge, GPU would assume your having a really zoomed out image and select wrong mip. Think about it this way first pixel is at UV 0.111 next pixel is at 0.3333 (just a sample ) the GPU will see this (REALLY ZOOMED) and use the avg. to select the mip. so it get totally wrong at the edges.

Simple fix use the org. uv. Simple solutions are always the best

best regards Preben Eriksen,
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 28th Mar 2017 12:41
This is to fix the UV leak between texture images? Cool stuff. Your doing some sterling shader work.


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 28th Mar 2017 14:21
It looks like solving the issue/challenge.
Nice Prebem.

This sound interisting:

Quote: "When flow control is present in a shader, the result of a gradient calculation requested inside a given branch path is ambiguous when adjacent pixels may go down separate flow control paths. Therefore, it is deemed illegal to use any pixel shader operation that requests a gradient calculation to occur at a location that is inside a flow control construct which could vary across pixels for a given primitive being rasterized. If either side of an if statement with the branch attribute uses a gradient function a compiler error may be generated"


Source

3com


Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
Preben
19
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 28th Mar 2017 14:23 Edited at: 28th Mar 2017 14:52
3com: i believe that is only is a problem if you dont provide any gradient inputs , so it should not be a problem here

Yes it will fix the artifacts at the edges of the texture where it blend, like the ones you see in this screenshots:
best regards Preben Eriksen,

Attachments

Login to view attachments
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 28th Mar 2017 14:51
Who's Mart and what's this challenge?

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
Preben
19
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 28th Mar 2017 14:57
Belidos: Try google translate from Danish "Marts" to english , ups sorry thats how it goes

Challange text:
Quote: "27th March 2017
This update has taken me right to the wire, and perhaps a shade over it to eat into some of my testing time. I had to use a lot of the weekend to chase an extremely annoying texture artifact problem which turned out to be related to the strange way in which GPU hardware renders to the screen. Some of you might know that all modern GPU's render to the screen in quad batches (2x2) for performance reasons, and this process when drilled down into the pixel shader can throw up some interesting pixel errors when you take FULL control of where the pixels come from. After 20+ hours of essentially scratching my head, and rewriting the terrain texture technique using volume textures and even cube textures, I finally understood the nature of the original issue and reverted to the original 16 textures per terrain approach and solved 90% of the issues. The last 10% threatened to delay my scheduled update so I have left it in for you to discover, and to put out the challenge to the community to see if someone can solve it before I do.

The issue comes down to a single question, "what are the correct partial derivative values for the tex2Dgrad commands that are used to fetch the texture atlas texels allowing for both mipmapping and texture filtering?". I believe I have solved the mipmapping issue, but I suspect the min/mag filter requirements are not being met by the current DDX and DDY values currently passed into the texture fetch command. Naturally, I will continue learning about this strange GPU art form, but I am also opening it up to brain box shader experts who might throw me the answer as an afterthought.
"
best regards Preben Eriksen,
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 28th Mar 2017 14:59
@Preben : It took me over 20 hours to fail this challenge, took you less than an hour to succeed. If there was a 'shader master' badge, you would have it
PC SPECS: Windows 8.1 Pro 64-bit, Intel Core i7-5930K (PASSMARK:13645), NVIDIA Geforce GTX 980 GPU (PASSMARK:9762) , 32GB RAM

Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 28th Mar 2017 15:01 Edited at: 25th May 2018 10:55
Quote: "If there was a 'shader master' badge, you would have it"


Poke Jason enough and i'm sure there will be
[img]belidos3d.swgrp.co.uk/wp-content/uploads/2016/03/blogo.png[/img]
Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
GraPhiX
Forum Support
19
Years of Service
User Offline
Joined: 15th Feb 2005
Playing:
Posted: 28th Mar 2017 15:25
@Preben - I bow in your awesomeness here is a badge for you
Welcome to the real world!
Windows 10 Pro x64 - Core i7-2600K @3.40GHz - 32.0GB RAM - GeForce GTX 950 2GB - 4x500GB SSD Striped

Attachments

Login to view attachments
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 28th Mar 2017 19:37
@ Preben
Thanks to clarify.
You are a shader master mate!, thanks for your great work.

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
Preben
19
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 29th Mar 2017 11:04
Thanks all your just so nice people one hour spent like it should , if i could just do that with all my hours
best regards Preben Eriksen,
0Alemar0
17
Years of Service
User Offline
Joined: 25th Jan 2007
Location:
Posted: 30th Mar 2017 04:51
thank you shader master
www.alemargames.com
Jerry Tremble
GameGuru TGC Backer
11
Years of Service
User Offline
Joined: 5th Nov 2012
Location: Sonoran Desert
Posted: 30th Mar 2017 05:09
Quote: "If there was a 'shader master' badge, you would have it "


Make it so, Number One!
Desktop: i7 4770@3.4Ghz (passmark 9809), 12GB RAM, Win 10/64, GeForce GTX 1080 (passmark 12006), 1TB SSD, 1TB HDD; Laptop: i7 4800MQ@2.7Ghz, 16GB RAM, Win 10/64, GeForce GTX870M , 1TB SSD.
PM

Login to post a reply

Server time is: 2024-04-18 18:31:42
Your offset time is: 2024-04-18 18:31:42