Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    WIP 3D racing game

    Work In Progress
    8
    22
    2153
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • vincent2105
      vincent2105 last edited by

      Thank you @Skullo , and yes, I would like to reuse it for completely different games. The map is extremely flat, I'm going to make sure I can get all kinds of elevation changes, it's one of my priorities.

      1 Reply Last reply Reply Quote 2
      • Jaywalker
        Jaywalker Donator last edited by

        Are you getting the elevation changes with the raycast method?

        1 Reply Last reply Reply Quote 0
        • vincent2105
          vincent2105 last edited by vincent2105

          @Jaywalker Yes. In fact I use the rayCastObject function, in two different ways, one to detect the ground and the other to detect objects of a certain height. I use the rayCastobject function on about twenty objects in all.

          Keeping in mind that I am moving on a two-dimensional tilemap, I use the rayCastObject function on the 9 squares adjacent to the one on which the player is standing, at a height of 1.5m and with a target located at 2 meters in front of the camera, it allows me to detect trees, buildings etc. And I am also testing 10 large objects.

          Regarding the ground, in my tilemap, I assign an index greater than 100 to all squares that are occupied by a large object such as a bridge, a hill etc... If the tile has an index > 100 I test the desired object, this allows me to use the function only once and not to test all the large objects.

          Jaywalker 1 Reply Last reply Reply Quote 3
          • Dave
            Dave Fuze Team last edited by

            Absolutely amazing dude. Will be keeping a very close eye on this.. Very exciting indeed.

            1 Reply Last reply Reply Quote 2
            • vincent2105
              vincent2105 last edited by

              Thanks Dave! I'm starting to feel the pressure! Otherwise I just estimated how long it would take me to fill the tilemap... At the rate of one tile per second, that would be 16 hours... it's a bit scary

              1 Reply Last reply Reply Quote 1
              • Dave
                Dave Fuze Team last edited by

                @vincent2105 Don't look at the whole wall to be built, just focus on one brick at a time :) Doesn't matter how far you get - what matters is you're doing something awesome!

                1 Reply Last reply Reply Quote 3
                • spikey
                  spikey F last edited by spikey

                  @vincent2105 your teaser creates some good vibes, please keep on the good work. Watching the trailer I had this song in my head: "Welcome to Miami - Bienvenido a Miami.." https://bit.ly/3MYf9OY
                  I know, the sound style is more for an intro 😉
                  And no pressure, its also fun to watch the work in progress.

                  1 Reply Last reply Reply Quote 2
                  • SteveZX81
                    SteveZX81 F last edited by

                    Wow, that looks amazing, can't wait to see more. Well done

                    1 Reply Last reply Reply Quote 2
                    • vincent2105
                      vincent2105 last edited by

                      Thanks guys for your support! :) This evening I finally put aside the tilemap, I wanted to clear my mind and work on something else... So I looked into accelerations, brakings etc... There is plenty to do there too, but for a start, I think it already looks better !

                      1 Reply Last reply Reply Quote 5
                      • Jaywalker
                        Jaywalker Donator @vincent2105 last edited by

                        @vincent2105 interesting. I think if one would do 4 raycasts for each wheel, you could also make a little physics engine :O

                        vincent2105 1 Reply Last reply Reply Quote 1
                        • vincent2105
                          vincent2105 @Jaywalker last edited by vincent2105

                          @jaywalker It's good that you mention it, I started modifying my camera too. I even think that 2 calls to rayCastObject() are enough. With a single call to rayCastObject(), and comparing the .y of the vector, with the .y of the vector at the previous frame, I can now calculate the inclination of the camera/car. I really want to limit the number of calls to this function because I will also have to manage the other competing cars.

                          1 Reply Last reply Reply Quote 2
                          • vincent2105
                            vincent2105 last edited by vincent2105

                            I think I finally found the solution for setting the altitude of each area...
                            With a tilemap of 240 x 240 tiles, it's very tedious... Rather than having total freedom, I'm going to delimit flat areas of 10x10 tiles which can thus have different altitudes... That gives me an array to complete of 576 elements, it's already better than 57600 !
                            I will add very large objects to create slopes and render all less linear.
                            It's clearer in my head now, but I imagine I'll still run into some unexpected issues.

                            Ben 2.0 1 Reply Last reply Reply Quote 5
                            • Ben 2.0
                              Ben 2.0 @vincent2105 last edited by

                              @vincent2105 Some plan is better than no plan! But in all seriousness this is sounding like quite a fun project.

                              vincent2105 1 Reply Last reply Reply Quote 1
                              • vincent2105
                                vincent2105 @Ben 2.0 last edited by

                                Thanks @ben-2-0 ! :) I can't wait to have some free time to set this up. In the evening after work and family life, I'm often too tired to immerse myself in it, like many of us probably.

                                1 Reply Last reply Reply Quote 0
                                • vincent2105
                                  vincent2105 last edited by vincent2105

                                  The level design of my game will be partly guided by the technical constraint: indeed, distant objects disappear...
                                  I wonder if in a future update of fuze, we could adjust the distance from which objects would disappear. I imagine that a lot of tests have been done and the answer is no, so I will design my map without forgetting this constraint.

                                  1 Reply Last reply Reply Quote 3
                                  • vincent2105
                                    vincent2105 last edited by

                                    I made a bit of progress tonight on slopes... I'm using very basic shapes for the terrain. (cube, wedge). It's a bit of a mess, but I now have an important routine for me. Objects are positioned in height according to the terrain on which they are.

                                    vincent2105 1 Reply Last reply Reply Quote 4
                                    • vincent2105
                                      vincent2105 @vincent2105 last edited by

                                      I'm thinking about the last big problem before I can design the map. It's about the positioning and the management of collisions with very large objects... I have to minimize the number of collision tests which are very taxing. I've been thinking about it for a few days, but it's not perfectly clear yet. I can't wait to solve this problem... Designing the map will be a great reward for me... It's a bit of a carrot that keeps the donkey going...

                                      alt text

                                      1 Reply Last reply Reply Quote 3
                                      • vincent2105
                                        vincent2105 last edited by

                                        Ouch! motivation wanes :/ Although I found a suitable solution for setting up very large objects, I see a lot of work to be done before having a fun racing game... I imagine also using the engine for an adventure or space exploration game, even if it's even more work, but in fact I don't know... I'll wait for the motivation to come back.

                                        1 Reply Last reply Reply Quote 4
                                        • First post
                                          Last post