Lighting and erode.

Post your suggestions here
FlyinHigh
Posts: 612
Joined: Thu Apr 26, 2012 12:37 am

Re: Lighting and erode.

Post by FlyinHigh »

Would there be any way to make erode carry over into the next races? Then we could use some more starter ruts, and they just get a little deeper and rougher as the nights go on which would be more consistent for the riders, rather than guessing and having no idea how its going to form and learning as we go which is what causes so many to crash.
Image
jlv
Site Admin
Posts: 14910
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Lighting and erode.

Post by jlv »

I'd be hard to make it automatic since the server barely knows anything about the track. I could possibly do something like let a client save and restore the track. Might be a bit slow sending that much data over UDP though.

It could be done fairly easily if the clients were required to stay connected for the entire time the track is eroding.
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.
checkerz
Posts: 8787
Joined: Tue Apr 22, 2008 4:23 am
Team: RaGe Factory

Re: Lighting and erode.

Post by checkerz »

jlv wrote: For the lighting, I could try some simple ambient self-occlusion when calculating the terrain vertex shading values. I'm in the middle of integrating the scripting engine right now and I'd like to get it wrapped up before I start tearing into anything else though.
Is this lighting update something we would be able to have before outdoors?

Went through a lot of testing/smashing my head into a wall with the kicker stuff in SX to ultimately just have to turn off erode on jumps for SX as the solution we thought we found was the jump shapes were not correct, but even with "correct" jump shapes the issue persisted. Understandable, it's part of development, but I'd like to avoid banging my head against the wall more fighting the lack of visibility of erode for outdoors and heading down the road of using erode for outdoors if it ultimately isn't going to work because you can't see it.

Unlike SX where the tracks were previously smooth, so no erode on the rhythms didn't really matter; it's a huge thing for outdoors, as either we have to build rough tracks or having erode working well and that changes the workload on terrain creation significantly.

I'm happy to continue to help testing and developing the settings side, and we're making progress, but the visual element is a pretty substantial road block right now.
SKlein
Posts: 376
Joined: Mon Mar 16, 2015 7:08 pm
Team: Evergood
Location: MN

Re: Lighting and erode.

Post by SKlein »

jlv wrote:I could possibly do something like let a client save and restore the track. Might be a bit slow sending that much data over UDP though.

It could be done fairly easily if the clients were required to stay connected for the entire time the track is eroding.
So if you drop network mid race will the client be able to pull back missed erode data on re-connection to the server, or is the person out of luck?
Image
jlv
Site Admin
Posts: 14910
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Lighting and erode.

Post by jlv »

checkerz wrote:
jlv wrote: For the lighting, I could try some simple ambient self-occlusion when calculating the terrain vertex shading values. I'm in the middle of integrating the scripting engine right now and I'd like to get it wrapped up before I start tearing into anything else though.
Is this lighting update something we would be able to have before outdoors?

Went through a lot of testing/smashing my head into a wall with the kicker stuff in SX to ultimately just have to turn off erode on jumps for SX as the solution we thought we found was the jump shapes were not correct, but even with "correct" jump shapes the issue persisted. Understandable, it's part of development, but I'd like to avoid banging my head against the wall more fighting the lack of visibility of erode for outdoors and heading down the road of using erode for outdoors if it ultimately isn't going to work because you can't see it.

Unlike SX where the tracks were previously smooth, so no erode on the rhythms didn't really matter; it's a huge thing for outdoors, as either we have to build rough tracks or having erode working well and that changes the workload on terrain creation significantly.

I'm happy to continue to help testing and developing the settings side, and we're making progress, but the visual element is a pretty substantial road block right now.
Probably not in a month for the self-occlusion. For the kicker thing, I was thinking it might help if I projected the force vector to the terrain before removing the Y component. I had ruled out that idea before but now I'm thinking it might actually be better that way. That should be an easy change to make. I just want to wrap up some stuff with the scripting integration first.
SKlein wrote:
jlv wrote:I could possibly do something like let a client save and restore the track. Might be a bit slow sending that much data over UDP though.

It could be done fairly easily if the clients were required to stay connected for the entire time the track is eroding.
So if you drop network mid race will the client be able to pull back missed erode data on re-connection to the server, or is the person out of luck?
They'd be out of luck.
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.
checkerz
Posts: 8787
Joined: Tue Apr 22, 2008 4:23 am
Team: RaGe Factory

Re: Lighting and erode.

Post by checkerz »

jlv wrote:
checkerz wrote:
jlv wrote: For the lighting, I could try some simple ambient self-occlusion when calculating the terrain vertex shading values. I'm in the middle of integrating the scripting engine right now and I'd like to get it wrapped up before I start tearing into anything else though.
Is this lighting update something we would be able to have before outdoors?

Went through a lot of testing/smashing my head into a wall with the kicker stuff in SX to ultimately just have to turn off erode on jumps for SX as the solution we thought we found was the jump shapes were not correct, but even with "correct" jump shapes the issue persisted. Understandable, it's part of development, but I'd like to avoid banging my head against the wall more fighting the lack of visibility of erode for outdoors and heading down the road of using erode for outdoors if it ultimately isn't going to work because you can't see it.

Unlike SX where the tracks were previously smooth, so no erode on the rhythms didn't really matter; it's a huge thing for outdoors, as either we have to build rough tracks or having erode working well and that changes the workload on terrain creation significantly.

I'm happy to continue to help testing and developing the settings side, and we're making progress, but the visual element is a pretty substantial road block right now.
Probably not in a month for the self-occlusion. For the kicker thing, I was thinking it might help if I projected the force vector to the terrain before removing the Y component. I had ruled out that idea before but now I'm thinking it might actually be better that way. That should be an easy change to make. I just want to wrap up some stuff with the scripting integration first.

Not a real rush on the kicker thing as it isn't really an outdoor issue. I mean, cool when it comes I'm excited to test it, but don't over rush that part.

Just going to have to work with decals and lighting we have currently to do the best we can for outdoors, just hard with elevation and shadows and everything to really make this work.
Hi Im Skyqe
Posts: 3020
Joined: Wed Dec 22, 2010 4:52 pm
Team: wat

Re: Lighting and erode.

Post by Hi Im Skyqe »

JLV, do wheel collisions create erode currently? It just seems we are trying to mimic real life ruts and bumps but cannot achieve the same shape or spacing in some area's. Could the shape or sizing of the current collisions have something to do with this?
Sabo
Posts: 228
Joined: Sat Sep 12, 2015 1:01 am
Team: <3 lane
Location: Western PA
Contact:

Re: Lighting and erode.

Post by Sabo »

Hi Im Skyqe wrote:JLV, do wheel collisions create erode currently? It just seems we are trying to mimic real life ruts and bumps but cannot achieve the same shape or spacing in some area's. Could the shape or sizing of the current collisions have something to do with this?
I don't believe they do. I believe erode width is something that is edited in the tileinfo. If you look at Jay's A1, you can tell it is a lot thinner and more aggressive.
TeamHavocRacing wrote:As I awake from champagne wishes and caviar dreams, I realize it's back to Pabst Blue Ribbon and Doritos.
jlv
Site Admin
Posts: 14910
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Lighting and erode.

Post by jlv »

Hi Im Skyqe wrote:JLV, do wheel collisions create erode currently? It just seems we are trying to mimic real life ruts and bumps but cannot achieve the same shape or spacing in some area's. Could the shape or sizing of the current collisions have something to do with this?
It's calculated from the tire to ground contacts. Not sure if you meant something else by wheel collisions. The main obstacle for small ruts is the track resolution doesn't have enough detail for it. (On top of that, the contact info in the erode packets is averaged to save bandwidth which also reduces the resolution in a way.) I'd worry less about skinny ruts and more about getting the bumps right since that is actually possible as opposed to trying to make something that you don't have the detail to represent.
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.
Hi Im Skyqe
Posts: 3020
Joined: Wed Dec 22, 2010 4:52 pm
Team: wat

Re: Lighting and erode.

Post by Hi Im Skyqe »

jlv wrote:
Hi Im Skyqe wrote:JLV, do wheel collisions create erode currently? It just seems we are trying to mimic real life ruts and bumps but cannot achieve the same shape or spacing in some area's. Could the shape or sizing of the current collisions have something to do with this?
It's calculated from the tire to ground contacts. Not sure if you meant something else by wheel collisions. The main obstacle for small ruts is the track resolution doesn't have enough detail for it. (On top of that, the contact info in the erode packets is averaged to save bandwidth which also reduces the resolution in a way.) I'd worry less about skinny ruts and more about getting the bumps right since that is actually possible as opposed to trying to make something that you don't have the detail to represent.
I used the wrong wording with collision. I was asking what the shape of the tire creating the erode is. When you run erode at 100 it seems that the erode forming is shaped like a sphere.

Image

No idea if I am correct or even in the ballpark but it seems like the current tire shaped like a sphere? I was just wondering if the changing the shape of the tire to have a flatter side profile could help?
yzmxer608
Posts: 15352
Joined: Mon Dec 29, 2008 4:30 am
Team: SYS
Location: Wisconsin, U.S.A

Re: Lighting and erode.

Post by yzmxer608 »

TeamHavocRacing wrote:If I had a nickel for every time someone asked for this, I would have a whole shitload of nickels.
Hi Im Skyqe
Posts: 3020
Joined: Wed Dec 22, 2010 4:52 pm
Team: wat

Re: Lighting and erode.

Post by Hi Im Skyqe »

Thanks Nate.
jlv
Site Admin
Posts: 14910
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Lighting and erode.

Post by jlv »

Hi Im Skyqe wrote:
jlv wrote:
Hi Im Skyqe wrote:JLV, do wheel collisions create erode currently? It just seems we are trying to mimic real life ruts and bumps but cannot achieve the same shape or spacing in some area's. Could the shape or sizing of the current collisions have something to do with this?
It's calculated from the tire to ground contacts. Not sure if you meant something else by wheel collisions. The main obstacle for small ruts is the track resolution doesn't have enough detail for it. (On top of that, the contact info in the erode packets is averaged to save bandwidth which also reduces the resolution in a way.) I'd worry less about skinny ruts and more about getting the bumps right since that is actually possible as opposed to trying to make something that you don't have the detail to represent.
I used the wrong wording with collision. I was asking what the shape of the tire creating the erode is. When you run erode at 100 it seems that the erode forming is shaped like a sphere.

Image

No idea if I am correct or even in the ballpark but it seems like the current tire shaped like a sphere? I was just wondering if the changing the shape of the tire to have a flatter side profile could help?
Erode digs using the same shape as the brush in the editor. It's a radial spline curve with the slope set to 0 at the edge and center.
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