Developer's log

Post anything about MX Simulator here. Please. I'm begging you.
jlv
Site Admin
Posts: 15016
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Developer's log

Post by jlv »

Stardate 2024-03-27-1663

Hey guys! This has been suggested quite a few times so I'll write about what I'm currently working on here.

Right now I'm finishing up the new terrain tessellation code. It used to create a nearly ideal tessellation that resulted in very few polygons but lots of draw calls and lots of data sent from system memory to graphics memory. This is what the old tessellation looked like:

Image

Now, I think this is a beautiful tessellation. It focuses detail closer to the camera and on bumpy areas and also has no T-junctions. It's a lot of the reason why MXS could do big maps with no draw distance limits on ancient graphics cards. But it's slow today.

The new way does the same basic thing, except instead of tessellating down to 8 triangle fans, it works on 16x16 grids of those fans. So it's much less accurate and makes way more polygons, but everything now resides in graphics memory and is more uniform so the GPU can spend less time waiting for memory and also work in larger batches. Here's what the new way looks like:

Image

Kind of sad to lose the more detailed tessellation but this is unquestionably better on modern hardware. Testing on a GT 1030 it went from 68 FPS to 127 FPS on the 4k thousandacres terrain.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Rowella94
Posts: 272
Joined: Mon May 27, 2019 4:51 am
Team: Mug Mafia

Re: Developer's log

Post by Rowella94 »

Really neat stuff, always cool to see behind the scenes
Wahlamt
Posts: 7947
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: Developer's log

Post by Wahlamt »

This is great to read! Thanks JLV!
Jakob Hubbard
Posts: 1184
Joined: Fri Nov 24, 2017 3:16 am
Team: Phil's
Location: Cold
Contact:

Re: Developer's log

Post by Jakob Hubbard »

68 to 127 fps on thousand acres is an incredible improvement. Can't wait for this to be finished up!
Image
Racers52
Posts: 3235
Joined: Sun Feb 03, 2013 8:10 pm
Location: Texas
Contact:

Re: Developer's log

Post by Racers52 »

Thanks for the update!
Atom6246
Posts: 3999
Joined: Fri Jul 13, 2012 1:28 am
Contact:

Re: Developer's log

Post by Atom6246 »

Awesomeness.
taylorsmx
Posts: 11
Joined: Wed Nov 15, 2017 7:01 am
Team: Privateer

Re: Developer's log

Post by taylorsmx »

any update to what you’re working on?
jlv
Site Admin
Posts: 15016
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Developer's log

Post by jlv »

Sorry, don't have anything yet.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
taylorsmx
Posts: 11
Joined: Wed Nov 15, 2017 7:01 am
Team: Privateer

Re: Developer's log

Post by taylorsmx »

Just wondering where the first person camera update is at on your to do list. I know a good bit of people that would love to play this game in first person once that comes out. just hard to handle all the motion there is with it now
jlv
Site Admin
Posts: 15016
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Developer's log

Post by jlv »

taylorsmx wrote: Fri Jun 07, 2024 12:21 pm Just wondering where the first person camera update is at on your to do list. I know a good bit of people that would love to play this game in first person once that comes out. just hard to handle all the motion there is with it now
I think the best way to do that would be make the camera position part of the UI scripting when I do that. Then it'd be infinitely configurable.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
aeffertz
Posts: 4037
Joined: Sat Sep 06, 2014 7:01 am
Team: Studio ATE
Location: Wiscansin

Re: Developer's log

Post by aeffertz »

jlv wrote: Fri Jun 07, 2024 7:23 pm
taylorsmx wrote: Fri Jun 07, 2024 12:21 pm Just wondering where the first person camera update is at on your to do list. I know a good bit of people that would love to play this game in first person once that comes out. just hard to handle all the motion there is with it now
I think the best way to do that would be make the camera position part of the UI scripting when I do that. Then it'd be infinitely configurable.
What's the plan for that if it happens? I must've missed it. I remember the gimble feature being added, wasn't that to fix the amount of shakiness? Or is it to stop the back and forth of rider body position?
Image
Lancer2004
Posts: 322
Joined: Sat Jun 22, 2019 4:50 am
Team: Shitter
Location: Arizona

Re: Developer's log

Post by Lancer2004 »

aeffertz wrote: Sat Jun 08, 2024 1:37 am
jlv wrote: Fri Jun 07, 2024 7:23 pm
taylorsmx wrote: Fri Jun 07, 2024 12:21 pm Just wondering where the first person camera update is at on your to do list. I know a good bit of people that would love to play this game in first person once that comes out. just hard to handle all the motion there is with it now
I think the best way to do that would be make the camera position part of the UI scripting when I do that. Then it'd be infinitely configurable.
What's the plan for that if it happens? I must've missed it. I remember the gimble feature being added, wasn't that to fix the amount of shakiness? Or is it to stop the back and forth of rider body position?
The gimble just helps with the shakiness, but that's basically it at least from my perspective. Doesn't make it a dynamic camera
Image <-- Discord

Image <-- payson is big brain
jlv
Site Admin
Posts: 15016
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Developer's log

Post by jlv »

aeffertz wrote: Sat Jun 08, 2024 1:37 am
jlv wrote: Fri Jun 07, 2024 7:23 pm
taylorsmx wrote: Fri Jun 07, 2024 12:21 pm Just wondering where the first person camera update is at on your to do list. I know a good bit of people that would love to play this game in first person once that comes out. just hard to handle all the motion there is with it now
I think the best way to do that would be make the camera position part of the UI scripting when I do that. Then it'd be infinitely configurable.
What's the plan for that if it happens? I must've missed it. I remember the gimble feature being added, wasn't that to fix the amount of shakiness? Or is it to stop the back and forth of rider body position?
What's wanted is a camera mode where the camera up axis is locked to the world up axis. (In other words, the camera pitch and roll are locked with only yaw matching the rider's direction.) I don't actually think it'd work well since it'd make it hard to feel how far you're leaning over but it's something MX Bikes players want.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
RFX_corentin_12
Posts: 1219
Joined: Tue Oct 11, 2011 1:26 pm
Team: Impact
Location: France

Re: Developer's log

Post by RFX_corentin_12 »

jlv wrote: Sun Jun 09, 2024 3:00 am
aeffertz wrote: Sat Jun 08, 2024 1:37 am
jlv wrote: Fri Jun 07, 2024 7:23 pm
I think the best way to do that would be make the camera position part of the UI scripting when I do that. Then it'd be infinitely configurable.
What's the plan for that if it happens? I must've missed it. I remember the gimble feature being added, wasn't that to fix the amount of shakiness? Or is it to stop the back and forth of rider body position?
What's wanted is a camera mode where the camera up axis is locked to the world up axis. (In other words, the camera pitch and roll are locked with only yaw matching the rider's direction.) I don't actually think it'd work well since it'd make it hard to feel how far you're leaning over but it's something MX Bikes players want.
I was wondering if in 3rd person we could have a little thing like that too cause i swear in outdoors the game feels laggy as fuck but my fps stay locked at 125fps (i5 13600k + 4070ti so def not a pc issue) but i think with this camera shaking so much with all the little bumps and things like that, this is what causing this feeling of lags/stutters so if we could smooth out a bit the camera it would be so much better
Image
jlv
Site Admin
Posts: 15016
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Developer's log

Post by jlv »

RFX_corentin_12 wrote: Sun Jun 09, 2024 7:57 am
jlv wrote: Sun Jun 09, 2024 3:00 am
aeffertz wrote: Sat Jun 08, 2024 1:37 am

What's the plan for that if it happens? I must've missed it. I remember the gimble feature being added, wasn't that to fix the amount of shakiness? Or is it to stop the back and forth of rider body position?
What's wanted is a camera mode where the camera up axis is locked to the world up axis. (In other words, the camera pitch and roll are locked with only yaw matching the rider's direction.) I don't actually think it'd work well since it'd make it hard to feel how far you're leaning over but it's something MX Bikes players want.
I was wondering if in 3rd person we could have a little thing like that too cause i swear in outdoors the game feels laggy as fuck but my fps stay locked at 125fps (i5 13600k + 4070ti so def not a pc issue) but i think with this camera shaking so much with all the little bumps and things like that, this is what causing this feeling of lags/stutters so if we could smooth out a bit the camera it would be so much better
Didn't realize it was a problem in 3rd person.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Post Reply