1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.36 Bug Reporting thread
    Solutions and more information may already be available.

Texture and Jbeam problems

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by schumacher, Feb 12, 2016.

  1. schumacher

    schumacher
    Expand Collapse

    Joined:
    Sep 1, 2013
    Messages:
    1,054
    hey, I am creating a car right now, so yesterday I put some material (green) on it and I have some problems... First of all i have no reflections on the material and I cant change the color in selector , I created the material with blender, so added a material and added in material.cs file a line like there for every single part of the car :

    singleton Material(z8)
    {
    mapTo = "z8";
    diffuseColor[0] = "0 1 0 1";
    specular[0] = "0.5 0.5 0.5 1";
    specularPower[0] = "50";
    doubleSided = "1";
    translucentBlendOp = "None";
    };

    so I just had the green on the car but it got some dark green pieces which should not be there I think, so how I can get them away ?

    screenshot_00005.png

    also after I added all the lines in material.cs my parts from the covet which before had texture from the covet now got no texture ... (its still in the material.cs file)

    screenshot_00006.png
    screenshot_00007.png

    now for the problem with the jbeam, I used for now the hatch jbeam so may this bug happens because of that but some parts of the car wont deform if I crash into sth. or stratching stangly out , so does also know sb. how to fix this ?

    screenshot_00008.png

    so I hope someone can help me !

    Thanks Schumacher :)
     
    • Like Like x 1
  2. DirtGamer301

    DirtGamer301
    Expand Collapse

    Joined:
    Aug 23, 2015
    Messages:
    414
    The dark green bits might possibly come from backfaces since the material is doublesided, but it might be something else as I don't know how doublesided materials look like in BNG.

    For reflection and colour selector stuff you need image files, I hope my following explinations are correct as I'm myself very unexperienced with materials:
    diffuse texture: The actual texture, depending on how transparent it is it will be more or less reflective.
    specular texture: Depending how black/white (or grey tones between) there'll be differences in how the light affects the material.
    normal map: normal map for normal mapping
    _c texture: I don't know its name, but it defines how much colour from the colour selector something gets. Transparency here means it'll get colour (more transparency, more colour).
     
  3. schumacher

    schumacher
    Expand Collapse

    Joined:
    Sep 1, 2013
    Messages:
    1,054
    O.k thanks for the explanations, Ill Take a look if the Materials are Double sided and May I can also get it with pictures and stuff like that Im also very New to car creation
     
  4. crashmaster

    crashmaster
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,820
    the dark green thing happened with my daytona, its because the textures arent set up properly. also, just to test things out. Take an empty image, not white, just empty. and use that instead of the green.
    also use the materials codes from one of the official vehicles and just keep [0], usually the official cars has difuse color [0] and [1] [2] depends, but just keep the [0]
    And then just replace everything with your empty image. Everything should be able to work with changeable colors.
    Im not that good with textures tho, so i cant go in details that much.


    Now, for the jbeam part.
    the front where it does not deform, it is 1 mesh? does it have its own name? where did you put it in the jbeam?
    It should be in the flexbody of the front fascia. like this.

    ["Your mesh", ["hatch_fascia"]],

    But it depends if those parts of the car are separate, or attached with other parts.

    Hope this helped a bit.
     
  5. DirtGamer301

    DirtGamer301
    Expand Collapse

    Joined:
    Aug 23, 2015
    Messages:
    414
    The materials are doublesided:
    doubleSided = "1";
    Setting it to "0" will make them single sided.

    What I meant though was that the mesh might have backfaces which you'd have to flip in Blender, but reading crashmasters post I think it has nothing to do with it :)
     
  6. crashmaster

    crashmaster
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,820
    Actually, if you have to flip them in blender, that means that they are inverted, which should make the invisible from one side in beamng, that is not the problem tho.
    The weird shadow thing happened to me as well, im not 100% sure why it happened, and the way i understood it was that i didnt make the textures right. maybe because you are using the same materials as the specular maps.
    All that double sided means is that, even if you have inverted faces, it will appear on the other side.

    Also, i have to say that, i am no expert at this, im just saying what could be the issue, dont quote me on anything, because i am bad at textures and materials things.
    But it might still be worth checking out.
    If you want to you could just post the vehicle here and we could all look at whats the issue.
     
  7. DirtGamer301

    DirtGamer301
    Expand Collapse

    Joined:
    Aug 23, 2015
    Messages:
    414
    Oh, so he didn't even want it to be green? I thought green was the colour he aimed for, but that dark green made problems (re-reading your first post and it all makes sence...). I thought the weird dark colours came from backfaces.
     
  8. schumacher

    schumacher
    Expand Collapse

    Joined:
    Sep 1, 2013
    Messages:
    1,054
    Oh thanks for telling me but I didnt used textures I think , I just applied Materials over blender to the car .. .maybe I can pm you the car so that you May can take a look at it ? I am really Bad understanding things like that :/
     
  9. Rotfell

    Rotfell
    Expand Collapse

    Joined:
    Nov 14, 2015
    Messages:
    380
    ein Golf also :d Okay, freu mich drauf!
     
  10. DirtGamer301

    DirtGamer301
    Expand Collapse

    Joined:
    Aug 23, 2015
    Messages:
    414
    Ajajajajaj ne, das ist ein Lancia Delta ;) (Ajajajajaj no, that's a Lancia Delta )
    ___

    I think you need textures for your materials, otherwise it won't work.
     
  11. schumacher

    schumacher
    Expand Collapse

    Joined:
    Sep 1, 2013
    Messages:
    1,054

    Poorly I cant do this my own -.-
     
  12. Rotfell

    Rotfell
    Expand Collapse

    Joined:
    Nov 14, 2015
    Messages:
    380
  13. DirtGamer301

    DirtGamer301
    Expand Collapse

    Joined:
    Aug 23, 2015
    Messages:
    414
    First, does the model probably already have textures which just aren't applied yet? Like, were there any texture files in the download (.tga, .dds, .png, .jpg, .bmp should be the common ones).
     
  14. schumacher

    schumacher
    Expand Collapse

    Joined:
    Sep 1, 2013
    Messages:
    1,054
    Nope Poorly not I dl d it From 3dwarehouse it was a sketchup model... but I asked someone and he said that He can tell me how to put texture on Single parts so that they are change the color :D
     
  15. DirtGamer301

    DirtGamer301
    Expand Collapse

    Joined:
    Aug 23, 2015
    Messages:
    414
    Then I guess you'd either have to create textures yourself (read/view some Blender tutorials for this) or only create the image for each texture, which will look worse as then there's only be exactly one colour per texture.
    For images, just open a pic editor, create a new image, colour it one colour you want, save it, done.
     
  16. crashmaster

    crashmaster
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,820
    The green is probably what he aimed for, the darker part is where the issue is. when the faces are inverted it just makes them invisible from that side.

    I never really played around with the materials from blender, i use textures, i also never made a model from scratch, but since i know nothing about materials in blender, i prefer using textures.
    If you want to you can send it to me, ill have a look and ill fix the jbeam thing in a min or so, ill take a closer look at the textures thing too.
     
    • Like Like x 1
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice