Cyber14

Members
  • Content Count

    20
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Cyber14

  • Rank
    Civilian

Recent Profile Visitors

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

  1. Cyber14

    Glass shader material

    Hi, Im looking for shader whichch makes the object transparent and looking like window. This is what I have found: But there is no download link Somebody knows where can I find it?
  2. Cyber14

    Texture color

    @Mr.Loki i did it on line 19 and It works but not as I wanted
  3. Cyber14

    Texture color

    @Mr.Loki I tried to use your code by combining it with UV Scripted and the texture was white and my texture-image wasnt even visible. How can I change the color and which color format should I use? (I think that float4(1,1,1,1); is not "rgba" representation because it wasnt work) And can I make this color a bit transparent? This is my code (its from the file uv_scripted.fx because I have changed only this one): // // Example shader - uv_scripted.fx // #include "include/tex_matrix.fx" /////////////////////////////////////////////////////////////////////////////// // Global variables /////////////////////////////////////////////////////////////////////////////// texture gOrigTexure0 : TEXTURE0; texture gCustomTex0 : CUSTOMTEX0; float2 gUVPrePosition = float2( 0, 0 ); float2 gUVScale = float( 1 ); // UV scale float2 gUVScaleCenter = float2( 0.5, 0.5 ); float gUVRotAngle = float( 0 ); // UV Rotation float2 gUVRotCenter = float2( 0.5, 0.5 ); float2 gUVPosition = float2( 0, 0 ); // UV position float4 tColor = float4(1,1,1,1); // color /////////////////////////////////////////////////////////////////////////////// // Functions /////////////////////////////////////////////////////////////////////////////// //------------------------------------------- // Returns UV transform using external settings //------------------------------------------- float3x3 getTextureTransform() { return makeTextureTransform( gUVPrePosition, gUVScale, gUVScaleCenter, gUVRotAngle, gUVRotCenter, gUVPosition ); } /////////////////////////////////////////////////////////////////////////////// // Techniques /////////////////////////////////////////////////////////////////////////////// technique hello { pass P0 { // Set the texture Texture[0] = gCustomTex0; // Use custom texture // Set the UV thingy TextureTransform[0] = getTextureTransform(); // Enable UV thingy TextureTransformFlags[0] = Count2; MaterialDiffuse = tColor; MaterialEmissive = tColor; DiffuseMaterialSource = Material; EmissiveMaterialSource = Material; NormalizeNormals = TRUE; // FillMode = WIREFRAME; // AlphaBlendEnable = TRUE; ColorOp[0] = SELECTARG1; ColorArg1[0] = Diffuse; AlphaOp[0] = SELECTARG1; AlphaArg1[0] = Diffuse; Lighting = true; } }
  4. Cyber14

    Texture color

    Hi im using "UV scripted" shader to set textures to my objects but im wondering if I can set texture color in MTA using shaders? This method is possible in SAMP by setting the "materialcolor" parametr using the SetObjectMaterial function. I would like to use it like changing the texture scale in UV Scripted, its just: dxSetShaderValue ( myShader, "gUVScale", 1, 1); and the scale changes. I would like to have something like this dxSetShaderValue ( myShader, "gUVColor", 255, 0, 0); for red color. Does anyone know how to do it?
  5. Cyber14

    Manipulating object materials?

    I am just used to using materials from GTA SA to decorate the buildings, stuffs, etc. Thats all what Im gonna do.
  6. Cyber14

    Manipulating object materials?

    @Mr.Loki So the only one solution to use GTA SA materials is to extract and upload the whole gta3.img file to png images and using shaders?
  7. Cyber14

    Manipulating object materials?

    Hi, Im wondering if there in MTA is any possibility of changing the object texture (on each index) like in the SAMP (in SAMP this function is called SetObjectMaterial). I know that I can use shader for that (its called "UV scripted") and using this shader I can apply images to the specified object on specified index but it forces me to upload images on my server and make it weight so much if I wanna have a lot of materials. So my question is - Can I use GTA SA materials for that, not only uploaded images?
  8. Cyber14

    Game object edited in 3ds max are too bright

    @AlexRazor Could you tell me how can I do that? (URL to some tutorial, etc.)
  9. I have just edited the house object from GTA SA in 3ds max. Everything was good untill the night came.. This is how my model looks like in the night: (Its brighter than normal objects outside blue cricle) And when we have the day it looks good: DFF file was exported by KAM's script. Anyone knows how to get rid of this problem?
  10. Cyber14

    Texture replacement problem

    @TEDERIs You are right, when I used TXD Workshop 5.0 it worked for me too. It turns out that the newest TXD Workshop version has some problems with that. Thanks for help to everybody, my problem is solved!
  11. Cyber14

    Texture replacement problem

    @TEDERIs Try here: https://www.dropbox.com/s/7r8v8ew9rsbhj2m/CAMERA.rar?dl=0 (You dont have to create an account here you can just close the message and download the file)
  12. Cyber14

    Texture replacement problem

    @TEDERIs Maybe this link will auto-download the right file https://www73.zippyshare.com/d/adVsokr6/26753/CAMERA.rar
  13. Cyber14

    Texture replacement problem

    @TEDERIs I have sent it some posts above, but here it is: https://www73.zippyshare.com/v/adVsokr6/file.html (DFF/TXD files are in the "done" folder)
  14. Cyber14

    Texture replacement problem

    I did it and its still black. @TEDERIs I have uploaded the another TXD file which (0,0) point was blue and the camera was still black.
  15. Cyber14

    Texture replacement problem

    So isn't it possible to just drag the image on the model and have it done withour configuring UVs?