Bo3b's School For Shaderhackers
  7 / 87    
I probably won't have time to look at this again until the weekend, but from what people are saying I think I should be able to delete the dumps folder higher up, and create one manually in the win32 folder? Tsabeth, would you mind clarifying what that script does/how it works/what to do with it? I understand MD and echo off, but I'm not sure what line 2 does, or what %% represents.
I probably won't have time to look at this again until the weekend, but from what people are saying I think I should be able to delete the dumps folder higher up, and create one manually in the win32 folder?

Tsabeth, would you mind clarifying what that script does/how it works/what to do with it?

I understand MD and echo off, but I'm not sure what line 2 does, or what %% represents.

#91
Posted 08/19/2014 05:20 PM   
[quote="eqzitara"]Remove this code preshader rcp r0.x, c0.y mul r1.x, r0.x, (20) rcp c0.x, r1.x Preshaders is not a valid format and leaving it in causes an error. Ussually you can just remove pre shader code. I've heard you may need to rewrite it in but TBH I never ran into it so I dont think so. I even remember helix saying you can just remove preshader code. If shader doesnt work still.. Make a dx9settings.ini overridemethod = 2 Though it may not be a shadow shader like above says. At a quick glimpse I thought it was depth of field from headers. ----------------------------- When something doesnt go according to plan exit game. Check your log file. It would tell you that there is an error and even which shader is causing it.[/quote] Hey;)) Big thanks for the info;)) I forgot to post afterwards here;)) But yes indeed removing that section all together doesn't affect the shader at all.. As for that shader I also found the pixel counterpart;)) Apparently what they do is they calculate the "mask" based on the depth buffer that later is used for multiple things like exterior shadows and some sort of self-shadow(looks like SSAO but only for the characters). I took the time to look up all the registers & instructions in that shader and finally understood what it does. It's funny since in regular x86/x64 assembly an instruction has only 2 operands while the HLSL has 3:)) That was the most confusing part to begin with:)) Big thanks again ^_^:D
eqzitara said:Remove this code

preshader
rcp r0.x, c0.y
mul r1.x, r0.x, (20)
rcp c0.x, r1.x

Preshaders is not a valid format and leaving it in causes an error.
Ussually you can just remove pre shader code. I've heard you may need to rewrite it in but TBH I never ran into it so I dont think so. I even remember helix saying you can just remove preshader code.

If shader doesnt work still..
Make a dx9settings.ini
overridemethod = 2


Though it may not be a shadow shader like above says. At a quick glimpse I thought it was depth of field from headers.
-----------------------------
When something doesnt go according to plan exit game. Check your log file. It would tell you that there is an error and even which shader is causing it.


Hey;))
Big thanks for the info;)) I forgot to post afterwards here;))
But yes indeed removing that section all together doesn't affect the shader at all..
As for that shader I also found the pixel counterpart;)) Apparently what they do is they calculate the "mask" based on the depth buffer that later is used for multiple things like exterior shadows and some sort of self-shadow(looks like SSAO but only for the characters). I took the time to look up all the registers & instructions in that shader and finally understood what it does. It's funny since in regular x86/x64 assembly an instruction has only 2 operands while the HLSL has 3:)) That was the most confusing part to begin with:))

Big thanks again ^_^:D

1x Palit RTX 2080Ti Pro Gaming OC(watercooled and overclocked to hell)
3x 3D Vision Ready Asus VG278HE monitors (5760x1080).
Intel i9 9900K (overclocked to 5.3 and watercooled ofc).
Asus Maximus XI Hero Mobo.
16 GB Team Group T-Force Dark Pro DDR4 @ 3600.
Lots of Disks:
- Raid 0 - 256GB Sandisk Extreme SSD.
- Raid 0 - WD Black - 2TB.
- SanDisk SSD PLUS 480 GB.
- Intel 760p 256GB M.2 PCIe NVMe SSD.
Creative Sound Blaster Z.
Windows 10 x64 Pro.
etc


My website with my fixes and OpenGL to 3D Vision wrapper:
http://3dsurroundgaming.com

(If you like some of the stuff that I've done and want to donate something, you can do it with PayPal at tavyhome@gmail.com)

#92
Posted 08/19/2014 05:34 PM   
[quote="bo3b"] ..... This is getting pretty far afield from the Shaderhackers School though, and really should be in the HelixMod thread, as the main place to ask deeper questions like this. Let's move this discussion over there, if you don't mind. (I'd like to keep this thread from getting too complex too fast, the goal here is to help the very new people. The goal in the HelixMod thread is to help the very deep, complex questions. Hope that's OK.)[/quote] I totally agree. Sorry for posting it here. I was between posting it here and there;)) I will also make screenies and share;)) hehe:D (with a shader found and disabled ^_^)
bo3b said:
.....
This is getting pretty far afield from the Shaderhackers School though, and really should be in the HelixMod thread, as the main place to ask deeper questions like this. Let's move this discussion over there, if you don't mind.

(I'd like to keep this thread from getting too complex too fast, the goal here is to help the very new people. The goal in the HelixMod thread is to help the very deep, complex questions. Hope that's OK.)


I totally agree. Sorry for posting it here. I was between posting it here and there;))
I will also make screenies and share;)) hehe:D (with a shader found and disabled ^_^)

1x Palit RTX 2080Ti Pro Gaming OC(watercooled and overclocked to hell)
3x 3D Vision Ready Asus VG278HE monitors (5760x1080).
Intel i9 9900K (overclocked to 5.3 and watercooled ofc).
Asus Maximus XI Hero Mobo.
16 GB Team Group T-Force Dark Pro DDR4 @ 3600.
Lots of Disks:
- Raid 0 - 256GB Sandisk Extreme SSD.
- Raid 0 - WD Black - 2TB.
- SanDisk SSD PLUS 480 GB.
- Intel 760p 256GB M.2 PCIe NVMe SSD.
Creative Sound Blaster Z.
Windows 10 x64 Pro.
etc


My website with my fixes and OpenGL to 3D Vision wrapper:
http://3dsurroundgaming.com

(If you like some of the stuff that I've done and want to donate something, you can do it with PayPal at tavyhome@gmail.com)

#93
Posted 08/19/2014 05:51 PM   
[quote="Pirateguybrush"]I probably won't have time to look at this again until the weekend, but from what people are saying I think I should be able to delete the dumps folder higher up, and create one manually in the win32 folder? Tsabeth, would you mind clarifying what that script does/how it works/what to do with it? I understand MD and echo off, but I'm not sure what line 2 does, or what %% represents.[/quote]No beth ... b ehT. :P Deleting the Dumps directory higher up won't really matter much until after you're done messing with it, as soon as you run the debug dll again it will create it again. Sure no problem, I kind of just posted it in a hurry/for the hell of it. The script is a for loop, %%? just represents each part of the set. So for 'PixelShader' & 'VertexShader' it will create folders in(and incl.) Dumps\AllShaders\ & Dumps\SingleShaders\ in the directory it's run from ... it's not even really necessary, just an alternative. Create it manually, run the EXE directly, Cut/Copy the 'Dump' that the debug creates and Paste it, etc. [... either way the Dumps directory has to be present in the current folder for the debug to dump shaders] :)
Pirateguybrush said:I probably won't have time to look at this again until the weekend, but from what people are saying I think I should be able to delete the dumps folder higher up, and create one manually in the win32 folder?

Tsabeth, would you mind clarifying what that script does/how it works/what to do with it?

I understand MD and echo off, but I'm not sure what line 2 does, or what %% represents.
No beth ... b ehT. :P

Deleting the Dumps directory higher up won't really matter much until after you're done messing with it, as soon as you run the debug dll again it will create it again.

Sure no problem, I kind of just posted it in a hurry/for the hell of it. The script is a for loop, %%? just represents each part of the set. So for 'PixelShader' & 'VertexShader' it will create folders in(and incl.) Dumps\AllShaders\ & Dumps\SingleShaders\ in the directory it's run from ... it's not even really necessary, just an alternative. Create it manually, run the EXE directly, Cut/Copy the 'Dump' that the debug creates and Paste it, etc. [... either way the Dumps directory has to be present in the current folder for the debug to dump shaders] :)
#94
Posted 08/19/2014 07:59 PM   
[quote="helifax"]I totally agree. Sorry for posting it here. I was between posting it here and there;)) I will also make screenies and share;)) hehe:D (with a shader found and disabled ^_^)[/quote]Awesome-O! Congratulations with a fix! You are already past Lesson 2, ;-) No worries on posting in different threads, but if we can keep it straighter it helps people coming in late, as these threads are largely our documentation. School for ShaderHackers Thread: Anything related to getting the basics in place, and the Lessons presented on the Wiki. Main HelixMod Thread: Anything related to more advanced features of HelixMod, or confusing stuff not covered in the Lessons. Open-source 3Dmigoto Thread: Anything related to 3Dmigoto fixes, or problems using the tool.
helifax said:I totally agree. Sorry for posting it here. I was between posting it here and there;))
I will also make screenies and share;)) hehe:D (with a shader found and disabled ^_^)
Awesome-O! Congratulations with a fix! You are already past Lesson 2, ;-)

No worries on posting in different threads, but if we can keep it straighter it helps people coming in late, as these threads are largely our documentation.

School for ShaderHackers Thread: Anything related to getting the basics in place, and the Lessons presented on the Wiki.
Main HelixMod Thread: Anything related to more advanced features of HelixMod, or confusing stuff not covered in the Lessons.
Open-source 3Dmigoto Thread: Anything related to 3Dmigoto fixes, or problems using the tool.

Acer H5360 (1280x720@120Hz) - ASUS VG248QE with GSync mod - 3D Vision 1&2 - Driver 372.54
GTX 970 - i5-4670K@4.2GHz - 12GB RAM - Win7x64+evilKB2670838 - 4 Disk X25 RAID
SAGER NP9870-S - GTX 980 - i7-6700K - Win10 Pro 1607
Latest 3Dmigoto Release
Bo3b's School for ShaderHackers

#95
Posted 08/20/2014 01:02 AM   
Question on the video format. Do you prefer to have the video in 3D mode, or do you think a 2D mode would be better? I can record in 3D mode with H-SBS, which allows playback in StereoscopicPlayer with some resolution loss. Or I can record everything in 2D, including the game itself, just showing the left eye. That still allows you to see shaders disappear, and sort of see fixes as effects move. The tradeoff of course is the ease of sharing and watching the videos, and I'd like to make whatever works best for you.
Question on the video format.

Do you prefer to have the video in 3D mode, or do you think a 2D mode would be better?

I can record in 3D mode with H-SBS, which allows playback in StereoscopicPlayer with some resolution loss. Or I can record everything in 2D, including the game itself, just showing the left eye. That still allows you to see shaders disappear, and sort of see fixes as effects move.

The tradeoff of course is the ease of sharing and watching the videos, and I'd like to make whatever works best for you.

Acer H5360 (1280x720@120Hz) - ASUS VG248QE with GSync mod - 3D Vision 1&2 - Driver 372.54
GTX 970 - i5-4670K@4.2GHz - 12GB RAM - Win7x64+evilKB2670838 - 4 Disk X25 RAID
SAGER NP9870-S - GTX 980 - i7-6700K - Win10 Pro 1607
Latest 3Dmigoto Release
Bo3b's School for ShaderHackers

#96
Posted 08/22/2014 02:40 AM   
[quote="bo3b"]Question on the video format. Do you prefer to have the video in 3D mode, or do you think a 2D mode would be better? I can record in 3D mode with H-SBS, which allows playback in StereoscopicPlayer with some resolution loss. Or I can record everything in 2D, including the game itself, just showing the left eye. That still allows you to see shaders disappear, and sort of see fixes as effects move. The tradeoff of course is the ease of sharing and watching the videos, and I'd like to make whatever works best for you.[/quote] I had the same problem when I created the video documentation for my OpenGL wrapper. In the end I opted for 2D recording while the GAME is rendered in 3D Discover. That way you can clearly see the 2 eyes in a 2D context. (Also if you have a pair of anaglyph glasses around you can also see the content of the game itsel:)) ) But, if is something that is really required to be displayed in 3D (and I expect it would be) You can either do: 1. record in 2D the video and record in 3D only the parts that are required to show 2. Record everything in 3D and avoid the multiple file issues. 3. Do the above and with some editing you can basically put together (in 1 file) parts of a video that are 2D and 3D;)) as long as the overall resolution is the same. Those were my ideas at the time;)) Just sharing them;))
bo3b said:Question on the video format.

Do you prefer to have the video in 3D mode, or do you think a 2D mode would be better?

I can record in 3D mode with H-SBS, which allows playback in StereoscopicPlayer with some resolution loss. Or I can record everything in 2D, including the game itself, just showing the left eye. That still allows you to see shaders disappear, and sort of see fixes as effects move.

The tradeoff of course is the ease of sharing and watching the videos, and I'd like to make whatever works best for you.


I had the same problem when I created the video documentation for my OpenGL wrapper.
In the end I opted for 2D recording while the GAME is rendered in 3D Discover.

That way you can clearly see the 2 eyes in a 2D context. (Also if you have a pair of anaglyph glasses around you can also see the content of the game itsel:)) )

But, if is something that is really required to be displayed in 3D (and I expect it would be) You can either do:
1. record in 2D the video and record in 3D only the parts that are required to show
2. Record everything in 3D and avoid the multiple file issues.
3. Do the above and with some editing you can basically put together (in 1 file) parts of a video that are 2D and 3D;)) as long as the overall resolution is the same.

Those were my ideas at the time;)) Just sharing them;))

1x Palit RTX 2080Ti Pro Gaming OC(watercooled and overclocked to hell)
3x 3D Vision Ready Asus VG278HE monitors (5760x1080).
Intel i9 9900K (overclocked to 5.3 and watercooled ofc).
Asus Maximus XI Hero Mobo.
16 GB Team Group T-Force Dark Pro DDR4 @ 3600.
Lots of Disks:
- Raid 0 - 256GB Sandisk Extreme SSD.
- Raid 0 - WD Black - 2TB.
- SanDisk SSD PLUS 480 GB.
- Intel 760p 256GB M.2 PCIe NVMe SSD.
Creative Sound Blaster Z.
Windows 10 x64 Pro.
etc


My website with my fixes and OpenGL to 3D Vision wrapper:
http://3dsurroundgaming.com

(If you like some of the stuff that I've done and want to donate something, you can do it with PayPal at tavyhome@gmail.com)

#97
Posted 08/22/2014 10:12 AM   
2D mode would be OK for me...
2D mode would be OK for me...

My original display name is 3d4dd - for some reason Nvidia changed it..?!

#98
Posted 08/22/2014 05:49 PM   
2D is OK for me
2D is OK for me

Gigabyte Z370 Gaming 7 32GB Ram i9-9900K GigaByte Aorus Extreme Gaming 2080TI (single) Game Blaster Z Windows 10 X64 build #17763.195 Define R6 Blackout Case Corsair H110i GTX Sandisk 1TB (OS) SanDisk 2TB SSD (Games) Seagate EXOs 8 and 12 TB drives Samsung UN46c7000 HD TV Samsung UN55HU9000 UHD TVCurrently using ACER PASSIVE EDID override on 3D TVs LG 55

#99
Posted 08/22/2014 06:34 PM   
OK, thanks for the feedback. The Anaglyph is an interesting idea I hadn't considered. Since 2D seems OK, for Lesson 2 we'll try a compromise to see if it works OK. I found that I can still record in 2D, even with 3D enabled, so that we can still Helixmod effects on video, just a single eye's worth. Seems OK to me, and still clear about what's happening, so we'll give this a try. Please don't hesitate to let me know if you think stuff is no good, or could be better. Always room for improvement.
OK, thanks for the feedback. The Anaglyph is an interesting idea I hadn't considered.

Since 2D seems OK, for Lesson 2 we'll try a compromise to see if it works OK. I found that I can still record in 2D, even with 3D enabled, so that we can still Helixmod effects on video, just a single eye's worth. Seems OK to me, and still clear about what's happening, so we'll give this a try.

Please don't hesitate to let me know if you think stuff is no good, or could be better. Always room for improvement.

Acer H5360 (1280x720@120Hz) - ASUS VG248QE with GSync mod - 3D Vision 1&2 - Driver 372.54
GTX 970 - i5-4670K@4.2GHz - 12GB RAM - Win7x64+evilKB2670838 - 4 Disk X25 RAID
SAGER NP9870-S - GTX 980 - i7-6700K - Win10 Pro 1607
Latest 3Dmigoto Release
Bo3b's School for ShaderHackers

Posted 08/23/2014 12:54 AM   
Hi bo3b, just chiming in to thank and encourage you a little more. The first video lesson is AWESOME, and again is particularly valuable because it is the only video resource of its kind as far as I know. I'm not too fazed about the format; you can just switch 3D off in youtube player options if you are not viewing in a 3D capable setting, right? My main concern would be trying to find a way to record which isn't blurry like that, but to be honest even that isn't a huge problem because a) it still works as an introduction/overview perfectly well despite the detail being tricky to make out, and b) the written documentation is right there for when you do want to get your hands dirty. I can imagine that the blurriness might give some people headaches though. Thanks again!
Hi bo3b, just chiming in to thank and encourage you a little more. The first video lesson is AWESOME, and again is particularly valuable because it is the only video resource of its kind as far as I know.

I'm not too fazed about the format; you can just switch 3D off in youtube player options if you are not viewing in a 3D capable setting, right? My main concern would be trying to find a way to record which isn't blurry like that, but to be honest even that isn't a huge problem because a) it still works as an introduction/overview perfectly well despite the detail being tricky to make out, and b) the written documentation is right there for when you do want to get your hands dirty. I can imagine that the blurriness might give some people headaches though.

Thanks again!

Posted 08/23/2014 02:36 AM   
And... It's up! Lesson 2 - [i]disable effect[/i] is now live for your viewing pleasure. [url]http://wiki.bo3b.net[/url] This one is probably more interesting than most, because once you finish this you will be able to actually fix some games. I made some effort to add some background and key detail to this one. Please let me know if you run into problems or if anything is not clear. Like always, I encourage you to do the Quiz and share your results. If The Ball is too uninteresting, put up shots from a game you prefer. Remember, it's always more fun to share.
And... It's up! Lesson 2 - disable effect is now live for your viewing pleasure.

http://wiki.bo3b.net

This one is probably more interesting than most, because once you finish this you will be able to actually fix some games.

I made some effort to add some background and key detail to this one. Please let me know if you run into problems or if anything is not clear.


Like always, I encourage you to do the Quiz and share your results. If The Ball is too uninteresting, put up shots from a game you prefer. Remember, it's always more fun to share.

Acer H5360 (1280x720@120Hz) - ASUS VG248QE with GSync mod - 3D Vision 1&2 - Driver 372.54
GTX 970 - i5-4670K@4.2GHz - 12GB RAM - Win7x64+evilKB2670838 - 4 Disk X25 RAID
SAGER NP9870-S - GTX 980 - i7-6700K - Win10 Pro 1607
Latest 3Dmigoto Release
Bo3b's School for ShaderHackers

Posted 08/23/2014 02:42 PM   
[quote="callmelucky"]Hi bo3b, just chiming in to thank and encourage you a little more. The first video lesson is AWESOME, and again is particularly valuable because it is the only video resource of its kind as far as I know. Thanks again![/quote]Thanks for the encouragement. :-> These things are really time consuming, so I have to balance how much effort they take versus the expected value. I think the Lesson 2 should be particularly valuable, so after people get a chance to review it, I'll be curious what you all think. BTW, if anyone tried to look at the youtube version earlier today, it was somehow broken by YouTube, and I've since fixed it.
callmelucky said:Hi bo3b, just chiming in to thank and encourage you a little more. The first video lesson is AWESOME, and again is particularly valuable because it is the only video resource of its kind as far as I know.

Thanks again!
Thanks for the encouragement. :-> These things are really time consuming, so I have to balance how much effort they take versus the expected value. I think the Lesson 2 should be particularly valuable, so after people get a chance to review it, I'll be curious what you all think.


BTW, if anyone tried to look at the youtube version earlier today, it was somehow broken by YouTube, and I've since fixed it.

Acer H5360 (1280x720@120Hz) - ASUS VG248QE with GSync mod - 3D Vision 1&2 - Driver 372.54
GTX 970 - i5-4670K@4.2GHz - 12GB RAM - Win7x64+evilKB2670838 - 4 Disk X25 RAID
SAGER NP9870-S - GTX 980 - i7-6700K - Win10 Pro 1607
Latest 3Dmigoto Release
Bo3b's School for ShaderHackers

Posted 08/24/2014 03:05 AM   
Hi Bo3b. Thank you so much for crafting these lessons. I just completed lesson 2, and uploaded the "results" to my wiki account. I've tried to harvest some more information (through the links you provided) on the different terminologies to supplement my understanding. So far so good. :) It is a very satisfying feeling to come from "nowhere", with no relation to any of this, to actually follow through with your instructions, code, and actually grasp what is going on. Even though this is probably on an extremely basic level, I still feel motivated to continue learning, and that is because you're crafting the videos and lessons in a way that makes me want to pursue higher levels of the understanding of "shader hacking". It is fascinating to get a picture of what goes beyond what only the eyes can reveal, and that makes me hungry for more material and more in-depth knowledge. I just wanted to say that I'm very grateful for you sharing your knowledge and insight with me/us, and for crafting these time consuming lessons in both text and video format. The video tutorials so far has been of great assistance, and the background data through the links you provided has been of equal importance for illuminating and answering some of the questions I had in mind earlier. I'm really enthusiastic about further extending my knowledge, and I hope you will continue to add more material down the line. You're awesome! Thank you so much for everything. :)
Hi Bo3b. Thank you so much for crafting these lessons.

I just completed lesson 2, and uploaded the "results" to my wiki account. I've tried to harvest some more information (through the links you provided) on the different terminologies to supplement my understanding. So far so good. :) It is a very satisfying feeling to come from "nowhere", with no relation to any of this, to actually follow through with your instructions, code, and actually grasp what is going on. Even though this is probably on an extremely basic level, I still feel motivated to continue learning, and that is because you're crafting the videos and lessons in a way that makes me want to pursue higher levels of the understanding of "shader hacking". It is fascinating to get a picture of what goes beyond what only the eyes can reveal, and that makes me hungry for more material and more in-depth knowledge.

I just wanted to say that I'm very grateful for you sharing your knowledge and insight with me/us, and for crafting these time consuming lessons in both text and video format. The video tutorials so far has been of great assistance, and the background data through the links you provided has been of equal importance for illuminating and answering some of the questions I had in mind earlier.

I'm really enthusiastic about further extending my knowledge, and I hope you will continue to add more material down the line.

You're awesome! Thank you so much for everything. :)

CAB : Lian Li Tyr X-2000B | PSU : Cooler Master V1200 (1200W) | MB : Asus Rampage IV Extreme ROG | CPU : INTELi7 3930K @ 4,5GHz | FAN : Noctua NH-D14 SE | GPU(s) : (Tri-SLI) EVGA Geforce GTX 980Ti SC+ ACX 2.0 | MEM : Corsair Vengeance DDR3 1600MHz (16GB) | SSD : OCZ Vertex 2 (120GB) | SSD(s) : Samsung EVO 850 Pro (2x500GB RAID0 | SSD : Kingston HyperX 3K (2x240GB RAID0, 1x120GB) | SSD : Samsung EVO 840 (1TB) | SCR : Eizo Flexscan SX2461WK (IPS/Editing) | SCR : Eizo Flexscan EV2736W (IPS/1440p/Gaming/Editing) | SCR : Wacom Cintiq Companion Hybrid (Photo Editing/Illustration/Drawing) | SCR : Asus ROG Swift PG278Q (1440p/144Hz/G-Sync/3DV 2/Gaming) | SCR : Asus PB287Q (4K Gaming/DAW) | SCR/TV : Philips 55" PUS9109/12 UHD (4K Gaming) | NAS : QNAP TS-419PII /w Lian Li EX-503B Drive Bay | HID : (Keyboard) Corsair K95 RGB Brown Cherry (Mouse) Corsair M95 Performance & Generic Logitech HID Devices | NIC : Asus RT-AC66U (with Asus repeaters| NIC : Jensen Scandinavia 8-port Gigabit switch | SYS : NVIDIA SHIELD Portable | SYS : NVIDIA SHIELD Tablet (16 GB version/non-LTE) | Oculus Rift DK2

Posted 08/24/2014 07:14 AM   
Looking forward to trying this out (after finishing the preceding lesson). I ran out of time this weekend, but I'll make every effort to catch up next weekend. Thanks again for sharing your expertise, looking forward to trying this out!
Looking forward to trying this out (after finishing the preceding lesson). I ran out of time this weekend, but I'll make every effort to catch up next weekend. Thanks again for sharing your expertise, looking forward to trying this out!

Posted 08/24/2014 01:22 PM   
  7 / 87    
Scroll To Top