• "My mind is always racing." - Justin Bieber
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Dear Guest. Follow RaceDepartment on Twitter, Facebook, Instagram, Twitch, Steam and YouTube.
RD GT CHAMPIONSHIP (LIVE)
Click the cross to dismiss this video
Join the conversation by clicking here.

shaders? are they essential

Discussion in 'Racer' started by ammods, Jun 30, 2010.

  1. ammods

    ammods

    Messages:
    262
    Ratings:
    +5
    hi there
    i'm new to racer and i'm interested in putting a few of my mods from my other game format, to racer..but i need to know do i need shaders?

    thanks in advance
     
  2. Stereo

    Stereo

    Messages:
    2,434
    Ratings:
    +1,471
    Yes, shaders describe what the car materials look like.

    It'll run without them but it won't look right (default lighting or something)

    At the most basic, in recent versions, you write something like this
    Code:
    vf_standard
      vertex_shader
      {
        file=dyn_standard_v.cg
      }
      fragment_shader
      {
        file=standard_f.cg
      }
    }
    
    ; then repeat this part for each material
    shader_[color=red]material[/color]~vf_standard
    {
      layer0
      {
        map=[color=red]texture.tga[/color]
      }
    }
    Repeat the second part for every material name on the car's objects (body, wheels, etc.) and textures for them, replacing the bits marked red.

    This just gives a basic matte material, though. If you want reflections and stuff you'll have to look into how other cars do them - essentially you need to change the vertex/fragment shaders to ones constructed for reflections, and add a layer1{ map=$trackenvmap }.
     
  3. ammods

    ammods

    Messages:
    262
    Ratings:
    +5
    ugh, thanks for the reply, that looks painful at best,
     
  4. boomer541

    boomer541

    Messages:
    1,350
    Ratings:
    +165
    There is a no cg version available.
     
  5. ammods

    ammods

    Messages:
    262
    Ratings:
    +5
    pardon lol
     
  6. Mr Whippy

    Mr Whippy

    Messages:
    2,989
    Ratings:
    +461
    Non-CG still uses a shader file, that in many ways might be more complicated to use.

    Every game today, or even in the past, needed some kind of system to set up shaders. I remember setting up shaders before my M3 release and that was umm, 6 years ago now... so it's not a 'new' thing to have to do.

    Before that in Racer you would set up shaders in essence, via the DOF properties in Modeller.exe, by setting ambient/diffuse/specular/reflect properties etc... so once again there was some work to do it well.


    In theory, the new CG shaders, once matured a bit more, should make content creation much easier than it has been for a long time considering the quality you get back!

    Dave
     
  7. luthobu

    luthobu

    Messages:
    1,120
    Ratings:
    +179
  8. ammods

    ammods

    Messages:
    262
    Ratings:
    +5
    thanks i'm currently modding for world racing 2, fortunately we dont have anythign like that to contend with..i'm basically looking for another game format to work with, something thats not hard to edit for..
     
  9. Mr Whippy

    Mr Whippy

    Messages:
    2,989
    Ratings:
    +461
    The shaders will be the least hard thing to do compared to good modelling and texturing to start with!

    The shaders are 95% copy/paste, ever car is pretty much the same kinda data just with different path names for your textures, or material names. What you name those is up to your good logic :D


    If you can model and texture a good car, then shaders are easy easy peasy in comparison!

    Dave
     
  10. AMGfan(BPM)

    AMGfan(BPM)

    Messages:
    804
    Ratings:
    +30
    autobahn from WR2 would be tasty in racer !!
     
  11. KS95

    KS95
    RACER Moderator

    Messages:
    2,416
    Ratings:
    +196
    Agreed!
     
  12. 2o6

    2o6

    Messages:
    331
    Ratings:
    +72
    How do you make a shader double sided? AMG Fan did my shader but It has some holes in the mesh that were not there. I know that simply making the shader reflect light on both sides will fix this problem.


    Also, my dash is flat shaded. How do I remove this?
     
  13. AMGfan(BPM)

    AMGfan(BPM)

    Messages:
    804
    Ratings:
    +30

    Mapping it with baked dash texture.
     
  14. 2o6

    2o6

    Messages:
    331
    Ratings:
    +72
    No it's flat shaded as in, each face is visible, including the edges.
     
  15. AMGfan(BPM)

    AMGfan(BPM)

    Messages:
    804
    Ratings:
    +30
    screen please
     
  16. skybh

    skybh

    Messages:
    362
    Ratings:
    +267
    The best way is to unite the vertices ;)
     
  17. ammods

    ammods

    Messages:
    262
    Ratings:
    +5
    thanks for the replies, guys. what i would have to consider is find some one that i could trust enough to do this...btw is there a plugin for 3dsmax for racer? would be easier than jumping through hoops like i have to do, with wr2

    ok i've just taken a look at racer, and it's crash happy, i'll passs, thanks guys..for the replies..but nah i'll pass..
     
  18. 2o6

    2o6

    Messages:
    331
    Ratings:
    +72
    ^^


    Try 0.88. It's a lot more stable.
     
  19. KS95

    KS95
    RACER Moderator

    Messages:
    2,416
    Ratings:
    +196
    Indeed... if it's "crash happy".. then there's a reason. Care to give us a clue? lol
     
  20. Mr Whippy

    Mr Whippy

    Messages:
    2,989
    Ratings:
    +461
    Cull = none, means that the back-face of polygons are rendered.

    It is no ideal to do this except in special cases though (ie, wire fences, fences and such)


    Dave