3rd Party Models/Media Chat / Decal help needed

Author
Message
Super Clark
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 4th Apr 2011
Location: UK
Posted: 23rd Mar 2018 16:27
Hi, I have been converting Classic FPSC decals however I found some that are 5x5 & 7x7 sheets, I have tried using
decal_animate4.fx , ( and ) decal_animate8.fx , neither show the decal correctly.

I tried changing the following > = 4.000000; below to 5.000000;

string Description = "Decal Animate Shader";
#include "constantbuffers.fx"
#include "settings.fx"

float4x4 WorldView : WorldView;
float4x4 WorldViewProj : WorldViewProjection;
float Time: Time;
float sintime : SinTime;

float SpriteRows : Power
<
string UIName = "Rows";
string UIWidget = "slider";
float UIMin = 1.0;
float UIMax = 16.0;
float UIStep = 1.0;
> = 5.000000;

float SpriteColumns : Power
<
string UIName = "Columns";
string UIWidget = "slider";
float UIMin = 1.0;
float UIMax = 16.0;
float UIStep = 1.0;
> = 5.000000;

float FramesPerSec : Power
<
string UIName = "Frames Per Second";
string UIWidget = "slider";
float UIMin = 0.0;
float UIMax = 30.0;
float UIStep = 0.5;
> = 25.000000;

float Looptime : Power
<
string UIName = "Loop Time";
string UIWidget = "slider";
float UIMin = 1.0;
float UIMax = 200.0;
float UIStep = 1.0;
> = 100.000000;

Then renamed the file to decal_animate5.fx

Can someone help guide me on the best way to get 5x5 or 7x7 decals to show as they should

Thanks in advance

PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 24th Mar 2018 04:34
If this is the public preview version dx11, then you will need to compile your new shaders after you edit them, by changing this statement in the setup.ini file in the root folder of GameGuru.
forceloadtestgameshaders=1

Restart GameGuru and then drop a start marker on the map and press test game.
It will take a bit longer to start as this is when any new shader changes get recompiled before testing.

After you compile the shaders and there is a .blob file for each one, then:
Quit Game Guru
change the setup.ini statement back to forceloadtestgameshaders=0
Restart Game Guru and test the decals again.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Super Clark
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 4th Apr 2011
Location: UK
Posted: 24th Mar 2018 13:41 Edited at: 24th Mar 2018 14:46
Hi Pirate Myke, yes i'm using the latest PPreview I did what you said and it worked great... Thanks
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 24th Mar 2018 15:34
Your welcome. Glad to hear that it is working for you.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Login to post a reply

Server time is: 2024-04-20 09:55:04
Your offset time is: 2024-04-20 09:55:04