Announcement

Collapse
No announcement yet.

a coupe of vehicle issues.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    a coupe of vehicle issues.

    hi,

    ok so I am having few issues with vehicles.

    first problem is lighting, every vehicle I make has really messed up shadows as you can see in these videos (ignore the models looks, they were just for testing)
    https://www.youtube.com/watch?v=8HC4...yer_detailpage
    https://www.youtube.com/watch?v=Tayu...yer_detailpage
    https://www.youtube.com/watch?featur...&v=an7YAr8JehA

    I thought it might be because of my UV's but when I looked at the samples I found the sedan's UV was unique and the truck had a 2nd UV, I tried making a second UV like the truck and it made no difference so I don't think its my UV(although I couldn't find a lightmap res setting for skeletal meshes), I also thought it might be my materials settings but they look the same as the samples, changing the type of lighting made no difference either, anyone know what is causing this?

    problem 2 is that when you start driving the body of the car rises up and as you come to a stop it drops back down to where it should be, I looked at the template and sample and they both did it as well so I don't think its my vehicle, it may be a bug.

    problem 3 is the "wheel handler", if you set up a vehicle the same as the vehicle template the wheels move smoothly but if you use the wheel handler instead they kind of jerk round when you first start moving and then start moving smoothly once your moving faster then a slow crawl, don't know if its a bug or not.

    if anyone knows anything about any of these things let me know, they've been bugging me for a while, especially the lighting thing (had that since the beta) so I would appreciate any help.

    thanks

    #2
    For lighting physics body bounds is the first thing that comes to mind, but i dont think that would be the issue here since you already have it set properly i believe. I also enable Inset Shadows in lighting properties of the vehicle, that also helps. And it's not a UV issue, trust me. My car's UV's are sort of a mess and i havent had an issue so far.

    I've been having the second problem as well(i had also mentioned this in my thread.) I managed to minimize it at some point when i was playing with suspensions but then it started to become obvious again as i made more tweaks. Pretty annoying to see my Challenger rise up like a truck when it speeds up. :\
    FREE VR Drum Kit Project
    FREE Color LUT Collection
    FREE Physics Driven Spacecraft Project
    FREE GTA Style Vehicle Interaction
    Dynamic DoF(Depth of Field)
    Camera Crossfade

    Comment


      #3
      Originally posted by Jacky View Post
      For lighting physics body bounds is the first thing that comes to mind, but i dont think that would be the issue here since you already have it set properly i believe. I also enable Inset Shadows in lighting properties of the vehicle, that also helps. And it's not a UV issue, trust me. My car's UV's are sort of a mess and i havent had an issue so far.
      I think I am missing something, have no idea what, knowing me its probably something simple I've overlooked.

      I've been having the second problem as well(i had also mentioned this in my thread.) I managed to minimize it at some point when i was playing with suspensions but then it started to become obvious again as i made more tweaks. Pretty annoying to see my Challenger rise up like a truck when it speeds up. :\
      cars don't usually do it in real life so I don't know why they do in EU4, I still think its a bug.


      I am adding this video as a visual of all 3 issues, although its quite hard to make out the jerking I mentioned.

      Comment


        #4
        That lighting issue with the wheels is so weird. Are all of your cars exported from the same software?

        I also think that suspension raising is a bug, unless there is a default property we are missing like i did with center of mass offset. Hope Ori jumps in to enlighten us.

        Btw, have you noticed something like this > my car is rear wheel drive. When i accelerate and then release the key the car starts to slow down but rear wheels start to rotate a lot slower(or faster) than they should be while the front wheels rotate and stop as expected. I tried this both on a box surface like your setup and a terrain and got the same result but strangely it gets fixed on a landscape that i scaled up after creation. I dont know if it is my vehicle settings or not so i'm not calling this one a bug for now. I should test it out with the sedan sometime.
        FREE VR Drum Kit Project
        FREE Color LUT Collection
        FREE Physics Driven Spacecraft Project
        FREE GTA Style Vehicle Interaction
        Dynamic DoF(Depth of Field)
        Camera Crossfade

        Comment


          #5
          The lighting issue on the wheels almost looks like the normals are backwards. Could you place the skeletal mesh of the car somewhere in the world and try to move some light around and see? I wouldn't expect this to be a vehicle specific problem as again it looks more like the normals are flipped.

          I'll have to take a closer look at the suspension issue. It definitely looks like a bug. One thing you can do is bring up the debug window with the command showdebug vehicle. In this window you'll see the suspension forces. If you're driving on a flat surface the force graph should be flat. I'd be interested to know if there's a sudden spike here.

          Jacky, I'd have to see exactly what you mean for the rear wheel drive. However if I understand it correctly it sounds like it may be related to the differential of the wheels. Are you using rear wheel open or rear wheel minimum slip? If you use minimum slip the car's differential will actually modify the amount the tires rotate. This is used when one tire is on ice, for example. I'm not sure if this is exactly the cause though I'd have to take a closer look.

          UPDATE: Sorry I also forgot to mention that if you're using rear wheel drive it makes sense for the back tires to spin more slowly as they are actually applying torque on the engine, which is still in some gear, while the front wheels are actually free to spin. I believe this is the correct behavior.

          Hope that helps, please post more videos it helps.
          Last edited by Ori Cohen; 07-12-2014, 12:20 AM.

          Comment


            #6
            Hi Ori!

            It is open rear drive. Now that you mention it, it makes sense that rear wheels would act different than the front wheels, but it looks odd to me when it happens in this manner. Maybe my gear&torque setup is making it look so aggressive.



            Here i'm not braking to slow down the car, and idle brake input is set to 0.


            I checked the debug for suspensions, btw, and suspension force is flat while driving on flat surface but rising behaviour is still there.
            FREE VR Drum Kit Project
            FREE Color LUT Collection
            FREE Physics Driven Spacecraft Project
            FREE GTA Style Vehicle Interaction
            Dynamic DoF(Depth of Field)
            Camera Crossfade

            Comment


              #7
              Originally posted by Ori Cohen View Post
              The lighting issue on the wheels almost looks like the normals are backwards. Could you place the skeletal mesh of the car somewhere in the world and try to move some light around and see? I wouldn't expect this to be a vehicle specific problem as again it looks more like the normals are flipped.
              hi Ori,

              I flipped the normals and reimported to check but then the mesh looked inside out so to double check if it was the normals/model I imported it into UDK, set up a blank level with a single point light, placed the mesh in the level then moved the light around and the lighting was exactly as I expected it to be (the other light types worked fine as well), I then did the same thing in UE4 and the lighting was a mess, the front back and left side of the car's body had almost correct shadows but the shadows on the roof and right side of the car's body weren't even close to how it should look, as for the wheels I have no clue what's going on with the shadows. I also tried the other types of lights and had basically the same result so I am at a loss as to what's going on with the lighting/shadows. I have made a video of this^^ to show the problem as clearly as possible.

              I'll have to take a closer look at the suspension issue. It definitely looks like a bug. One thing you can do is bring up the debug window with the command showdebug vehicle. In this window you'll see the suspension forces. If you're driving on a flat surface the force graph should be flat. I'd be interested to know if there's a sudden spike here.
              Like jacky I also used the command, you can see what happened at the end of the vid, camstudio was actually working for once.

              Comment


                #8
                Jacky,

                I'd be interested to know what your torque/gear settings are. The vehicle debug window should tell you what gear you're in when you're coasting. There is a setting called Damping Rate Zero Throttle Clutch Engaged (and a few others) which determine how quickly the tire speed will match the engine speed. I do agree that the car seems to slow down pretty quickly, though I think the front and back rotation looks ok - my guess is it's related to the interaction between clutch being engaged and the tires spinning freely.

                Smokey, would you be able to attach your fbx here? I'd like to show it to someone here that would have more info about what might be going on.

                Thanks for the info about the car suspension problem. I'll have to debug this

                Comment


                  #9
                  If the rear and front wheels are spinning at different speeds, it means that one of them is slipping/skidding. When I use engine brake going down a hill, it may be the case that only the back wheels brake, but they still rotate at the same speed as the front wheels.

                  Comment


                    #10
                    Spot on! It was Damping Rate Zero Throttle Clutch Engaged. I had set it to 4(default 2) for whatever reason when i was first playing around with vehicles then completely ignored it, not knowing what every parameter does what... But now i know better.

                    Thanks Ori!
                    FREE VR Drum Kit Project
                    FREE Color LUT Collection
                    FREE Physics Driven Spacecraft Project
                    FREE GTA Style Vehicle Interaction
                    Dynamic DoF(Depth of Field)
                    Camera Crossfade

                    Comment


                      #11
                      Originally posted by Ori Cohen View Post
                      Smokey, would you be able to attach your fbx here? I'd like to show it to someone here that would have more info about what might be going on.
                      hi, sorry for the late response, internet was down. while I want to fix the lighting issue I don't want to release the asset to everyone yet, would it be ok if I send you a PM with a link?

                      Thanks for the info about the car suspension problem. I'll have to debug this
                      awesome

                      Comment


                        #12
                        yeah sure, you can also e-mail me at ori dot cohen @ epicgames.com

                        Comment


                          #13
                          I just though of another question. how do you stop the wheels going into meshes like this.



                          the car drives over it perfectly but if you drive into a mesh where the bottom of the wheels is not touching it they intersect, is there a way to stop this from happening?

                          Comment


                            #14
                            We currently don't support actual collision on the tires. This is something we're working with NVIDIA to add. The case where the tires are very far from the body is more difficult as it really exposes this flaw. One approach you could take (we do this in the jeep sample game) is to add collision shapes to act as invisible fenders around the tires. This would be extra shapes added to the chassis of the car inside PhAT which you'd have to play with to get it so that it doesn't hit the ground, but at the same time blocks these bad cases.

                            We are looking to improve this however so that you can actually get proper blocking behavior from the tires. Not sure how soon we'll get this in though.

                            Hope that helps

                            Comment


                              #15
                              ok, ill give that a try, thanks.

                              Comment

                              Working...
                              X