Jump to content

BrokenPixel

Members
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

BrokenPixel's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. Might be, I'm not a shader pro and haven't seen many shader error messages. What MTA version are you using? Maybe it's your graphics card fault but you seem to run high resolution so the card isn't old. I'm using MTA 1.3 My Graphics Card can't be wrong... if ENB doesn't lag, why should there be problems with this? Hmmm... But it worked for you?
  2. even with your test resource i get this error... something wrong with my mta server?
  3. i hope it... but when i load it i got the error in debugmode with the technique, i really dont get it o:
  4. well okay i got it, pasted the 2. in a lua and the 1. in a .fx file named "shader_file.fx". so okay, like i said, i pasted all my variables, but when i start it i dont get any errors, but it wont show off, when im now in MTA (in my server) and go to Debugmode 3, i got the error that the technique is wrong. wheres the problem? here's my .fx - texture gTexture; technique replace { pass P0 { Texture[0] = gTexture; } } that's the .lua - txd = dxCreateTexture( "tshirtwhite.png" ); if not txd then txd = nil; -- it's best to nil a variable because it'll waste unnecessary memory return false; end shader = dxCreateShader( "shader_file.fx" ); -- the content of this file should be what I included above if not shader then destroyElement( txd ); txd = nil; return false; end dxSetShaderValue( shader, "gTexture", texture ) engineApplyShaderToWorldTexture( shader, "tshirtwhite" ); -- this is the name of texture you want to replace eg. "tshirtwhite" and here's the meta - <meta> <info description="Shader - Clothes" version="0.1.3" type="script" /> <script src="clothes.lua" type="client" /> <file src="shader_file.fx" type="client" /> <file src="tshirtwhite.png" type="client" /> </meta> as a noob i really dont know what to do.
  5. dude, i'm trying to be nice. so i pasted the 2. code in a lua file and pasted in my variables, added the meta and customized it. i created a shader_file.fx file with the 1. code and when i load it in the server i dont get any errors, but the texture wont show
  6. THANK YOU SO MUCH 50p! so i just have to paste your code into a .lua file, or how it's going?
  7. is it possible that you could try out something like that? im a total noob in lua, maybe you can help me?
  8. hmm okay, well, shouldnt it be possible with something like a "load" function?
  9. Hey people, me and a friend are running a small fun server. We have a "big" Problem. I Designed a new T-Shirt (txd) and we wanted to have it in the Server. Is it possible? I would like to change the tshirtwhite.txd (in players.img*) to my own .txd It would be really helpful if you could give me a .LUA file. Thank you in advice!
×
×
  • Create New...