本帖最後由 hcs999 於 13-3-19 09:11 PM 編輯
[傳送門]3月19號UPDATE: http://www.2000fun.com/forum-red ... romuid-2123495.html
前言:
shader 係指外觀, 顏色, 光度等等
crosshair 係準星, 十字線(sniper 的追擊鏡)
呢個tutorial 我會教你點樣改shader, 同加 crosshair
自從patch 1.9.1, g1係原來個shader 加左D藍色, 令個game 變得有D奇怪
所以下面有D係 no-blue 的shader, 就係去左D 藍色
本來patch 1.7定1.8 的時候, 我地係可以改個crosshair size,
但係依加係加一個十字/圓形等等係Apb到(長時間都有)
以下所有對APB的任何改動, 係唔會Ban, 如果比人ban 我唔會負責
跟據GM(RP worker) Revoemag: It is not bannable at this time.
---------------------------------------------------------------
Shader
#1 Shader:
(最好用)High FPS Shader, boarder shader, no-blur + Crosshair
Shader (By Karyl)
呢個shader modificaltion 係有: 增加FPS, 邊界, 冇blue 同crosshair
關於FPS增加, 係有用既, 唔會由30FPS -> 60 FPS, 不過會少D lag spikes 同加多少少FPS
Photo:
從上圖可以見到中間有個白色的 "十字", 果個係crosshair(個gap可以改, 一陣教)
同埋有黑色的邊界
安裝方法:
下載:
http://karyl.de/apb/karyldflt.zip
解壓後, 將"APBGame" 同 "Engine" Folder 放入:
-官方下載版: C:\Program Files\GamersFirst\APB Reloaded
-steam版: C:\Program Files\Steam\steamapps\common\apb reloaded
取代所有folder 同 file
DONE!
咁crosshair 係include 係呢個shader mod, 我會係下面教點用 同 點改
{NOTE} 由於小弟唔得閒, 其他shaders(Black and white, RTW)之後再寫, 先寫crosshair
[UPDATE]
------------------------------------------------------------------------------------------
Low Quality Config
有三個config, they are: Low Quality With Shadows, Low Quality Without Shadows, Super Low Quality
看圖說故事:
Low Quality W/ Shadows:
Low Quality W/out shadows
Super Low Quality
Removed world graffiti (冇塗鴉)
Lowerd texture quality (降低畫質)
Blurred textures (模糊畫質)
Changed the distance vehicles switch quality to 10m (車會係10meter先會load details)
Vehicles switch to even lower quality at 20m (20米or之後, 車既details 會降低)
Enabled texture compression (影像壓縮)
Lowered texture creation per frame from 10 to 2 (Bla bla bla)
Lowered Particles from 500000 to 5000 (Bla bla bla)
Download
https://www.dropbox.com/s/xdihmh81f6f0544/APB-Low-Quality.zip
用法
開apb 一定要用 apb . exe 去開, 如果唔係會overwrite 左個file
-官方下載版: C:\Program Files\GamersFirst\APB Reloaded\Binaries\APB.exe
-steam版: C:\Program Files\Steam\steamapps\common\apb reloaded\Binaries\APB.exe
======================華麗的分割線======================
Crosshair
先送上全部crosshair 的樣貌(你可以自己加/創造一個獨特的crosshair, 但係我唔識@@)
咁每個crosshair 都可以改size, 大小, 厚度, 顏色, 透明度等等
個crosshair 會長時間出現係個mon 到, 開menu/scoreboard 等先會冇(應該係)
#1 果個shader 已經有shader crosshair, 已經down左就可以唔理下面個安裝tutorial
安裝:
下載: https://github.com/dreamss/APBr-Shader-Crosshair/zipball/master
將所有 CrosshairXXXXXX.usf(唔洗 APBUberPostProcessBlendPixelShader 同 readme)
放入:
-官方下載版: C:\Program Files\GamersFirst\APB Reloaded\Engine\Shaders
-steam版: C:\Program Files\Steam\steamapps\common\apb reloaded\Engine\Shaders
開High Quality Bloom, 唔開用唔到
因為g1 係patch 1.10 係ingame delete 左HQ-Bloom 呢個setting, 要係APBgame\config 到開全部QualityBloom 同 HighQualityBloom (張 XXXXX=False 變成 XXXXX=True)
#1果個crosshair 應該已經enable 左 HQ-Bloom
另外個zip file 內有APBUberPostProcessBlendPixelShader.usf
係係個screen加個dot
如果想改D crosshair settings(有D野一定要改)
就要改 CrossHairSettings.usf
/***************************************************************************************/
/*! \file CrosshairSettings.usf
*
* Configuration options for modular crosshair
*
*
* Owned by dreamss, some code stolen from tobii and spec
*
* variable crosshair size added by Kimiko
* and pretty much every change after that ... DYNAMIC_COLOR, internal color options, and making it work on rtw/1.9.1 shaders
* fuckshadercoding
*
* Thanks to Blizzie for the alternative crosshair shapes Dot 2, Circle, and Cross
* Thanks to Inteoix for OPGL-shaped crosshairs and pointing out how to fix alpha
*
*
* Usage:
* See below for what each setting does, and edit to your liking.
*
* DONT FORGET TO EDIT SCREEN_SIZE_X and SCREEN_SIZE_Y
*
* IF THE GAME CRASHES CROSSHAIR_SIZE IS WAY TOO BIG!
****************************************************************************************/
{
// 1 = enable <<下面係D crosshair, 上面有對照表,0 係關, 1係開>>
#define ENABLE_CROSSHAIR 1
#define ENABLE_CROSSHAIR_DOT_1 1
#define ENABLE_CROSSHAIR_DOT_2 0
#define ENABLE_CROSSHAIR_TOP_CHEVRON 0
#define ENABLE_CROSSHAIR_BOTTOM_CHEVRON 0
#define ENABLE_CROSSHAIR_CIRCLE 0
#define ENABLE_CROSSHAIR_CROSS 0
#define ENABLE_CROSSHAIR_OPGL 0
#define ENABLE_CROSSHAIR_SQUARE 1
#define ENABLE_CROSSHAIR_DIAMOND 0
// User created crosshairs (not included). default filenames are CrosshairCustom1.usf CrosshairCustom2.usf CrosshairCustom3.usf CrosshairCustom4.usf CrosshairCustom5.usf <<自定義crosshair, skip it>>
#define ENABLE_CROSSHAIR_CUSTOM_1 0
#define ENABLE_CROSSHAIR_CUSTOM_2 0
#define ENABLE_CROSSHAIR_CUSTOM_3 0
#define ENABLE_CROSSHAIR_CUSTOM_4 0
#define ENABLE_CROSSHAIR_CUSTOM_5 0
// Monitor resolution, INCLUDE THE .0 OR OTHER THINGS BREAK!!! <<APB 既 resolution, 一定要match>>
#define SCREEN_SIZE_X 1920.0
#define SCREEN_SIZE_Y 1080.0
// Limit the area at the center to check where to draw the crosshair. We dont want to run on every pixel do we?
// Set it bigger if your crosshair gets cutoff
// 0.0-100.0 where 100 means scan 100% of the screen
#define CROSSHAIR_PIXEL_SCAN_LIMIT 8.0 <<應該係話, 當你個crosshair 分開左, 可以較大D>>
// Dot 1 shape settings <<Dot1 的settings>>
#define CROSSHAIR_DOT_1_SIZE .8 <<大小>>
//thickness of the dot outline, make number bigger if it cant be seen
#define CROSSHAIR_DOT_1_OUT_SIZE_MULTI 2.0 <<dot 的厚度>>
// R, G, B, Alpha with a range of 0.0 to 1.0 <<顏色, 下面教>>
#define IN_CROSSHAIR_DOT_1_COLOR float4( 1.0, 1.0, 1.0, 0.5)
#define OUT_CROSSHAIR_DOT_1_COLOR float4( 0.0, 0.0, 0.0, 0.5)
// Dynamic color - ignores color settings above (but uses alpha settings!!) and instead does roughly the inverse of whatever it's over. <<另一個顏色設定, 不過唔識>>
#define IN_CROSSHAIR_DOT_1_DYNAMIC_COLOR 0
#define OUT_CROSSHAIR_DOT_1_DYNAMIC_COLOR 0
// Blizzie dot shape settings
// R, G, B, Alpha with a range of 0.0 to 1.0 <<顏色>>
#define CROSSHAIR_DOT_2_COLOR float4(1.0, 0.0, 0.0, 0.1)
// Chevron aspect ratio settings, leave this alone for a standard 90 degree spacing. Don't touch if you don't know what you're doing. <<唔好改呢個>>
#define chevronaspectRatio SCREEN_SIZE_Y/SCREEN_SIZE_X
// Top chevron shape settings
#define CROSSHAIR_TOP_CHEVRON_THICKNESS .001 <<厚度>>
#define CROSSHAIR_TOP_CHEVRON_SIZE .01 <<大小>>
#define CROSSHAIR_TOP_CHEVRON_GAP .003 <<個gap, 間隙>>
// R, G, B, Alpha with a range of 0.0 to 1.0
#define CROSSHAIR_TOP_CHEVRON_COLOR float4(1.0, 0.0, 0.0, 0.5) <<顏色>>
// Dynamic color - ignores color settings above (but uses alpha settings!!) and instead does roughly the inverse of whatever it's over.
#define CROSSHAIR_TOP_CHEVRON_DYNAMIC_COLOR 0
// Bottom chevron shape settings
#define CROSSHAIR_BOTTOM_CHEVRON_THICKNESS .001 <<同上>>
#define CROSSHAIR_BOTTOM_CHEVRON_SIZE .01
#define CROSSHAIR_BOTTOM_CHEVRON_GAP .003
// R, G, B, Alpha with a range of 0.0 to 1.0
#define CROSSHAIR_BOTTOM_CHEVRON_COLOR float4(1.0, 0.0, 0.0, 0.5)
// Dynamic color - ignores color settings above (but uses alpha settings!!) and instead does roughly the inverse of whatever it's over.
#define CROSSHAIR_BOTTOM_CHEVRON_DYNAMIC_COLOR 0
// Circle shape settings - credit: Blizzie
#define CROSSHAIR_CIRCLE_RADIUS .023 <<圓形半徑>>
// R, G, B, Alpha with a range of 0.0 to 1.0 <<顏色>>
#define CROSSHAIR_CIRCLE_COLOR float4(1.0, 0.0, 0.0, 0.5)
// Dynamic color - ignores color settings above (but uses alpha settings!!) and instead does roughly the inverse of whatever it's over.
#define CROSSHAIR_CIRCLE_DYNAMIC_COLOR 0
// Cross shape settings - credit: Blizzie
#define CROSSHAIR_CROSS_SIZE .01 <<大小>>
#define CROSSHAIR_CROSS_THICKNESS .000417 <<厚度>>
#define CROSSHAIR_CROSS_BORDER_THICKNESS .000417
#define CROSSHAIR_CROSS_GAP .005 // Set this to 0.0 for no center gap <<個gap, 間隙, set 做.000如果想係個"十"字咁>>
// R, G, B, Alpha with a range of 0.0 to 1.0
#define CROSSHAIR_CROSS_INNER_COLOR float4(1.0, 1.0, 1.0, 0.5) <<顏色>>
#define CROSSHAIR_CROSS_BORDER_COLOR float4(0.0, 0.0, 0.0, 0.5)
// Dynamic color - ignores color settings above (but uses alpha settings!!) and instead does roughly the inverse of whatever it's over.
#define CROSSHAIR_CROSS_INNER_DYNAMIC_COLOR 0
#define CROSSHAIR_CROSS_BORDER_DYNAMIC_COLOR 0
// OPGL shape settings - credit: Inteoix
#define CROSSHAIR_OPGL_RADIUS 0.00575 <<半徑>>
#define CROSSHAIR_OPGL_WIDTH 0.0015 <<闊度>>
#define CROSSHAIR_OPGL_CUTOFF 0.65 <<分開果段的長度>>
// R, G, B, Alpha with a range of 0.0 to 1.0
#define CROSSHAIR_OPGL_COLOR float4(1.0, 1.0, 1.0, 0.75) <<顏色>>
// Dynamic color - ignores color settings above (but uses alpha settings!!) and instead does roughly the inverse of whatever it's over.
#define CROSSHAIR_OPGL_DYNAMIC_COLOR 1
// Square shape settings
// These *should* be after aspect ratio correction, making them appear the same size.
#define CROSSHAIR_SQUARE_HEIGHT 0.01 <<高度>>
#define CROSSHAIR_SQUARE_WIDTH 0.01 <<寬度>>
#define CROSSHAIR_SQUARE_THICKNESS 0.001 <<厚度>>
// SMALL values here, will create a gap in the center of each side
#define CROSSHAIR_SQUARE_HORIZ_GAP 0.005 <<水平gap長度>>
#define CROSSHAIR_SQUARE_VERT_GAP 0.005 <<垂直gap長度>>
// R, G, B, Alpha with a range of 0.0 to 1.0
#define CROSSHAIR_SQUARE_COLOR float4(1.0, 1.0, 1.0, 0.75) <<顏色>>
// Dynamic color - ignores color settings above (but uses alpha settings!!) and instead does roughly the inverse of whatever it's over.
#define CROSSHAIR_SQUARE_DYNAMIC_COLOR 0
// Diamond shape settings - credit: Kimiko
#define CROSSHAIR_DIAMOND_THICKNESS 0.001 <<厚度>>
#define CROSSHAIR_DIAMOND_OUTLINE_ENABLE 1 <<有冇outline>>
#define CROSSHAIR_DIAMOND_OUTLINE_THICKNESS 0.001 <<厚度>>
#define CROSSHAIR_DIAMOND_OUTLINE_INSIDE_THICKNESS 0.0 <<裡面的厚度>>
#define CROSSHAIR_DIAMOND_SIZE 0.01 <<大小>>
#define CROSSHAIR_DIAMOND_ANGLE 1.0 // not yet implemented! <<don't change>>
#define CROSSHAIR_DIAMOND_GAP 0.01 // currently buggy, set to same value as SIZE for best results
// R, G, B, Alpha with a range of 0.0 to 1.0 <<don't change>>
#define CROSSHAIR_DIAMOND_COLOR float4( 1.0, 0.0, 0.0, 0.75 ) <<顏色>>
#define CROSSHAIR_DIAMOND_OUTLINE_COLOR float4( 0.0, 0.0, 0.0, 1.0 )
// Dynamic color - ignores color settings above (but uses alpha settings!!) and instead does roughly the inverse of whatever it's over.
#define CROSSHAIR_DIAMOND_DYNAMIC_COLOR 0
//MAKE SURE THIS FILES EXIST!!!! <<自定意crosshair>>
//THIS SETTING IS NOT USED.
#define CROSSHAIR_CUSTOM_1_NAME "CrosshairCustom1.usf"
#define CROSSHAIR_CUSTOM_2_NAME "CrosshairCustom2.usf"
#define CROSSHAIR_CUSTOM_3_NAME "CrosshairCustom3.usf"
#define CROSSHAIR_CUSTOM_4_NAME "CrosshairCustom4.usf"
#define CROSSHAIR_CUSTOM_5_NAME "CrosshairCustom5.usf"
}
crosshair 顏色:
白: 1.0, 1.0, 1.0, 0.5
紅: 1.0, 0.0, 0.0, 0.5
*注意* 有borders 果D crosshair (如cross等) 個outer border 比 inner border大得多, 所以係主要show outer border個color
可以張inner border 同 outer border 個color 較到一樣
or
張個outer border thickness 降低
寫左我兩個鐘, 算係咁啦
聽日continue ^^
有問題請問!!
All the credits belongs to the owners/creators of the project |