#Wind physics
1 messages · Page 1 of 1 (latest)
YES PLEASE!!! I NEED PROPER SAIL BOATS!!!
no more need for propellers hidden behind wool
the biggest issue is figuring out where wind should point
irl it depends on air pressure and what not
but there's no way to simulate that without completely killing performance
do you think random would work
most people wouldn't like that
already had a guy mald about it when it was suggested
right
if it were me i would tell him to cry about it but if that's not an option maybe make the winds different depending on the location
let me see how i can explain it
even something like "wind points toward nearest body of water" would kill performance to implement
hmmm
would making the direction more general still be a problem, like 16 chunks point to the nearest water regardless
yes
because you can’t do it during terrain gen
so you’ll have to calculate it on the fly
so it would be a problem when generating new chunks
pretty much
you don't know if there's a body of water in a chunk until you actually generate it
are you sure it would kill performance
nvm
so wind direction is the problem not the strength?
would it be easier to use the technique with biomes instead of blocks
same issue
you don't know what biome it is in ungenerated chunks
so you would have to constantly recalculate every time a chunk is generated
which would be heavy on the pc
is there a common wind direction for diffrent biomes irl
no
wind direction depends mostly on location
location relative to equator and what not
so a cold location on the north and south pole are going to have different winds
right
lol, wonder if it would be possible to get biome map of a world and generate the wind depending on temperature
prob easiest solution
what about modded world gen
add em to list, if unknown set to default
sure, ya cant add all biomes from modded
but ya can cover most popular ones for sure
Can you use what alekiponi does for wind?
https://www.curseforge.com/minecraft/mc-mods/alekiships/screenshots
which is?
found it in the code
Tbh, I don't know the technical stuff since idk code but when you sit in the ship and steer it then there is a little wind guage that pops up that tells you the wind direction.
it’s random
the wind is randomized
Still don't get why that's a problem
So what if they mald about realism
It's simpler to do random and it won't butcher fps
i mean
there’s no way to predict it ahead of time
so you can’t really plan for it
that’s the only thing i can think of
Can't you just make so the initial wind direction us random and then it'll slowly shift side to side?
Like the wind starts going west, but slowly shift northwards, then shifts southwards. But still in the general direction of being west
you would have to know the code ahead of time to plan for it
which sounds meh
the average player isn’t going to dive into the codebase to figure out how wind changes and at what intervals
so they’ll still end up in a situation where the wind will change halfway into a trip
leading to them having to either swim in a painfully slow zig zag pattern
But that's realistic?
or just cutting their losses
Wind direction is always changing
irl wind is consistent and is based on well known laws
either way
I’m just playing devil’s advocate
What if the changes follow the daylight cycle?
Like the wind will go north at midday and slowly the wind will circulate around
So at midnight it'll go south
There are mods that change daylight cycle length so maybe you could take that into consideration as well.
You could maybe have it count ticks
Either way, if it follows some aspect of time, it'll be consistent
If you were to use a simplfied version of air pressure that did not evaluate every tick, maybe it could be stopped from killing performace? Maybe it could determine wind in each chunk instead of per block?
Maybe multiple chunks per wind chunk even
what does sea of thieves do for wind?
it's random right?
like it changes direction at random?
I'm working on a wind addon
wind direction is determined by moon phase, strength is based on weather and time of day
right now the wind isn't location based (but is dimension based)
location based wind just does not sound fun
most of the time sailing would just be trying to get within the wind
Here's the current version if yall want to try or give feedback (not finished) (fabric 1.20.1)
The only location based wind I'm currently considering is scaling wind based on biome (but leaving direction alone)
fair
honestly a vs addon that does wind similar to sea of thieves would be pretty neat
like you can put sails on a bearing and rotate it to catch the wind
so you dont need to move the entire ship to the wind
That does sound cool. Tbh idk if I would know how to make that. What I'm currently going for is compat with eureka and just making it a bit more immersive
I want to make it so that ships of different sizes are faaster/slower depending on direction of travel relative to the wind, I think it's a fun gamplay feature (like sea of theives)
yeah
if an addon were to use a bearing to rotate sails then it should probably be a secondary feature
so that you dont need create but it benefits to have it
Make a showcase
👍
I’m just rewriting some code because I realized the wind physics weren’t good but I’ll send a video once I’ve got it working again
generate a wind map using the biome map
or the seed map or whatever it's called
and temperature
