Changes

Jump to navigation Jump to search

CRT-Royale

6 bytes added, 11:51, 14 September 2018
grammar
CRT-Royale is a large and complex shader, so it will need modern hardware to run correctly. Discrete Nvidia or AMD video cards made in the last few years are recommended. In particular, Intel iGPUs will struggle to run the shader and some may not even run in some cases. The author provided a preset for Intel users that compromises some functionality for compatibility. There's also various <code>user-settings.h</code> files in <code>crt-royale-settings-files</code><ref>[https://github.com/libretro/common-shaders/tree/master/crt/shaders/crt-royale/crt-royale-settings-files crt-royale-settings-files]</ref> that enable/disable options for different GPU profiles.
The display you use for CRT-Royale should have at least 1440p of resolution to give a decent level of detail for slot mask emulation, though 4K (2160p) or higher resolutions is are recommended. 1080p displays can work for aperture grille emulation, since less resolution is needed to render vertically aligned phosphors.
This shader uses some features in RetroArch's Cg shader format that have has only been somewhat recently added since version 1.0.0.2, such as sRGB framebuffers and mipmapping, so you should at least be using RetroArch 1.2 for this shader.
==Customization==
These settings determine the shape and size of the lit scanlines of the simulated CRT.
Min and max sigma settings affect the size of each scanline scan line relative to the brightness of the image. A large range of beam sigmas causes the scanlines to vary in width depending on brightness, while small ranges result in a less variable width of scanlines. Higher sigmas increase the size of the scanlinesscan lines, resulting in smaller gaps and more vertical blurring.
Min and max shape settings affect the Gaussian profile of the scanlines. Higher values for these make the scanline plateaus flatter and have steeper drop -offs. These effects are really only noticeable at higher screen resolutions.
<code>beam_horiz_filter</code> specifies how the beam is filtered horizontally. The options are 0.0 (Quilez, sharp and fast), 1.0 (Gaussian, configurable sharpness), and 2.0 (Lanczos2, sharp and higher quality). <code>beam_horiz_sigma</code> is used to set the level of blur when using Gaussian horizontal filtering.
convergence_offset_y_b = 0.000000
The convergence offsets settings specify how well the simulated CRT electron beams are aligned. The default values indicate perfect convergance convergence with no colors that are misaligned. However, real CRTs, particularly cheaper consumer models, very often did not have perfect converganceconvergence, so you can change the offsets to simulate that flaw if you want.
===Mask===
<code>mask_sample_mode_desired</code> specifies the sampling mode of the phosphor mask. The default of 0.0 is the highest quality and slowest method, while 1.0 is lower quality but faster. The 2.0 setting makes the mask tile without resizing, which results in a huge phosphor mask with the default mask textures, so it's intended more for mask textures for a screen of a fixed size.
<code>mask_triad_size_desired</code> specifies the size of each phosphor triad relative to the screen. Smaller triad size will make the simulated CRT like a high -resolution PC CRT or a Sony BVM with increased sharpness and less visible phosphors, while a larger triad size makes the simulated CRT into a low -resolution CRT like many consumer TVs with more blurring and less visible scanline gaps. It's recommended to keep this setting as a whole number, since fractional sizes seem to cause scaling artifacts sometimes.
If <code>mask_specify_num_triads</code> is set to 1.0, then the phosphor mask will be scaled to use the number of triads specified in <code>mask_num_triads_desired</code>. This is disabled by default.
These are the settings that control the geometry of the simulated CRT.
The geometry modes available are 0.0 (Flat), 1.0 ([[CRT-Geom]] style curvature), 2.0 (bulbous curvature), and 3.0 (cylindrical Trinitron curvature). View distance specifies how far the CRT is in the user's field of view. The tilt angle settings control which direction the screen is tilted. The aspect ratio of the simulated screen can also be configured. Overscan affects how much of the image is visible on the simulated CRT, since many consumer TVs did not display the full scan area.
Some people may find curvature to be distracting so leaving these settings at default will leave the CRT image perfectly flat.
interlace_1080i = 0.000000
These settings control how interlacing is handled by the shader. The "bff" setting refers to the order in which each scanline scan line field is displayed, where setting that to 1.0 would make it "bottom field first" as opposed to "top field first" like the default. The 1080i setting specifies whether interlacing is enabled if the input image is 1080 pixels tall, setting it to 1.0 makes it display 1080i instead of 1080p.
Interlacing detection can be turned off entirely by editing <code>interlace_detect</code> in <code>user-settings.h</code> to be <code>false</code>. This will make it display 480 pixel tall content as 480p instead of 480i, which will eliminate any flickering, but may result in combing artifacts if the game is interlaced natively. This setting is static only and is not a runtime parameter.
1,809
edits

Navigation menu