Guild icon
DDraceNetwork
DDraceNetwork / off-topic
Any languages allowed
Between 2025-02-05 00:00 and 2025-02-06 00:00
Avatar
@pilonpl sorry i couldnt provide it earlier, been busy
Avatar
Avatar
Overlord
Click to see attachment 🖼️
Sadly written up by someone who doesn't quite understand what they're talking about
Avatar
Avatar
risu
Sadly written up by someone who doesn't quite understand what they're talking about
Its from the same place as all the others
02:36
And i think thats somewhat the point?
02:36
Considrring the original math one
Avatar
yeah kinda?
Avatar
Understands only simple math and shoes advanced ones
Avatar
but like, floats do not have decimal parts...
Avatar
Ofc they do it says it right there
Avatar
While i know that tranzistor can be only in two states
02:38
So binary is still binary even with float and no decimal, im not angry man im just sad
02:38
Sittin and crying the night away
02:38
I should probably stop any thoughts and get new npc life
Avatar
if it said "fractional parts" I think the whole thing would've been much better already
Avatar
U are welcome to improve it
02:39
Avatar
but I totally agree, the sum of 1/10 and 2/10 is obviously equal to 0
Avatar
When will U sleep?
Avatar
I never do
Avatar
Och LLM Risu
02:42
Risu of the pond what is Your wisdom?
Avatar
please help me .zachriel this is not a joke
Avatar
Avatar
risu
please help me .zachriel this is not a joke
Well sounds lovely
Avatar
Now that we have that one covered...
02:45
Should i sleep or should i eat?
Avatar
Man will send me malware and my tired ass cant even play it
02:46
Yeah doesnt work for me
Avatar
mobile?
Avatar
Dont worry freddie videos of fireworks didnt play either ( i mean they did for 1 second)
02:46
Age
02:46
Aye
02:46
Mobile
02:46
On pc i use the superior browser option
Avatar
Nice last time there was anime girl on this channel i was in public space
02:47
And i didnt even plan to check ddnet its where i closed the app
02:51
@risu wow, what a username
Avatar
Avatar
Overlord
@risu wow, what a username
:3
Avatar
Avatar
Overlord
Nice last time there was anime girl on this channel i was in public space
Good thing I didn't post any anime girls
Avatar
Yes it was the usual fetishist
02:54
Soon the winter will be over
02:54
(sad noises)
03:00
Im giving sleep the last shot
Avatar
norming
Avatar
norming
Avatar
♂S1mple♂ 2025-02-05 06:25
Norming
Avatar
@tabby nowaying is that a Furiner avatar?!?!?!
Avatar
Avatar
risu
@tabby nowaying is that a Furiner avatar?!?!?!
yes
Avatar
Guess who I've got 442 (and counting!) wishes saved up for :P
Avatar
meeeee
Avatar
I'll consider it if you can do a good Minase Inori impression
Avatar
i don't play genshin, my pc can't run it
06:42
i have no idea what you're talking about
Avatar
Oh, that's her Japanese voice actor
Avatar
aw heeell nah
06:43
i gtg hospital
Avatar
hey it's not my fault that for some reason I always end up liking blue-haired girls voiced by Minase Inori
06:44
no, really, it has happened thrice now
Avatar
can't blame you
Avatar
and I didn't even know about the voice actor before liking these characters, so it's not like I'm playing into the pattern
06:45
tbf Furina's blue-hairedness is quite borderline
Avatar
it's got a little tint
Avatar
that dont look like lasagna
Avatar
Original message was deleted or could not be loaded.
Looks like fried fish skin
Avatar
looks like you ripped a rock from some mountain
Avatar
♂S1mple♂ 2025-02-05 11:56
Looks a little dry to me
Avatar
Original message was deleted or could not be loaded.
It's not similar to lasagna
Avatar
♂S1mple♂ 2025-02-05 11:59
Looks like deepfried melon
Avatar
looks like jpeg
Avatar
i showed my roommates and they said it looks like mold or steak
Avatar
Original message was deleted or could not be loaded.
It's similar to deepfried melon
Avatar
You guys aren't even funny - just rude at this point. It took me a long time and it was really tasty.
pepeW 1
Avatar
Avatar
meloƞ
You guys aren't even funny - just rude at this point. It took me a long time and it was really tasty.
why delete it though?
12:24
remember my disgusting lookking buns?
12:24
dont mind the public opinion, (tho i really thought it was a fish at first because i didnt read other messages)
Avatar
Avatar
meloƞ
You guys aren't even funny - just rude at this point. It took me a long time and it was really tasty.
mostly because 90% of the time brown and green in food thats usually not brown or green means something has gone horribly wrong
Avatar
Why would y'all bully 🍈
Avatar
Avatar
meloƞ
You guys aren't even funny - just rude at this point. It took me a long time and it was really tasty.
♂S1mple♂ 2025-02-05 12:35
Sorry it did look nice, i didn't mean to be rude nouis
Avatar
MilkeeyCat 2025-02-05 12:35
melon, now teach them a lesson how to not bully someone who has access to mute button 😬
12:36
or timeout
Avatar
"he cant ban us all" ~~ famous last words
Avatar
Avatar
Overlord
"he cant ban us all" ~~ famous last words
@Learath2 execute order 🍈.
Avatar
@meloƞ post the photo again, maybe it was the problem with lightning // Ur photography skills?
Avatar
Avatar
Overlord
@meloƞ post the photo again, maybe it was the problem with lightning // Ur photography skills?
Avatar
that's something
Avatar
Avatar
pilonpl
that's something
raycaster?
Avatar
yes
15:14
oldschool 3D
15:14
but it's hacked together right now
15:15
and there is distortion
15:15
which i don't fully understand
15:15
i mean why is it not a thing irl?
Avatar
How are you distributing your camera rays?
15:15
Are they equally spaced in terms of angle?
15:16
i don't think so
15:16
for now it's just this
Avatar
Avatar
pilonpl
for now it's just this
ok yeah that looks correct
Avatar
Jason Todd 2025-02-05 15:17
Что делать, если меня хотят задоксить черед дднет? (он абсолютно не смог это сделать и жидко обосрался), но все же я обижен
Avatar
How is the height of the lines determined? Do you divide by distance from camera or distance along the camera's Y axis?
Avatar
Avatar
Jason Todd
Что делать, если меня хотят задоксить черед дднет? (он абсолютно не смог это сделать и жидко обосрался), но все же я обижен
Jason Todd 2025-02-05 15:18
15:18
Avatar
(1/distance) * const
Avatar
Avatar
Jason Todd
Click to see attachment 🖼️
Jason Todd 2025-02-05 15:19
Если что я не кирилл из иркутска, просто сама попытка задоксить меня и моих друзей. Он смог найти моего друга и стал ему угрожать
Avatar
Avatar
Jason Todd
Если что я не кирилл из иркутска, просто сама попытка задоксить меня и моих друзей. Он смог найти моего друга и стал ему угрожать
Jason Todd 2025-02-05 15:19
Avatar
distance is is just length(hit_pos - camera_pos), right?
Avatar
yeah
15:20
the issue is that distance from the camera to the projection plane is larger on the edges
15:20
so there is distortion
Avatar
Yeah, you'll probably fix the distortion if you use dot(camera_dir, hit_pos - camera_pos) (edited)
Avatar
Avatar
Jason Todd
Click to see attachment 🖼️
Jason Todd 2025-02-05 15:20
Если что доксер это vad1mchik, мой ник это Komaru_cat, ник моего друга это рскзчик
Avatar
where camera_dir is a normalized vector
Avatar
i haven't implemented that yet
15:21
and my raycast function just adds the provided vector until it hits something
15:21
which is kinda bad
Avatar
yeah that's no good
Avatar
brute force programming basically
15:22
minimum required for an output
Avatar
line-line intersections aren't that hard to calculate :)
Avatar
i think raycasting in a grid should be similar to a line drawing algorithem
Avatar
Avatar
pilonpl
i think raycasting in a grid should be similar to a line drawing algorithem
yeah if you're doing a grid that's basically it
Avatar
Avatar
Jason Todd
Click to see attachment 🖼️
♂S1mple♂ 2025-02-05 15:23
я конечно не эксперт но что мешает просто ливнуть с сервера/замутить его?
Avatar
Avatar
♂S1mple♂
я конечно не эксперт но что мешает просто ливнуть с сервера/замутить его?
Jason Todd 2025-02-05 15:24
Он преследует постоянно, шантажирует, угрожает слить адреса, данные и т.д
15:24
Насколько я знаю, у него рецидив по нарушениям
Avatar
Avatar
Jason Todd
Он преследует постоянно, шантажирует, угрожает слить адреса, данные и т.д
♂S1mple♂ 2025-02-05 15:25
на протяжении какого времени
Avatar
Jason Todd 2025-02-05 15:25
Вчера, позавчера
Avatar
♂S1mple♂ 2025-02-05 15:25
ничо он не сольет я думаю
Avatar
Jason Todd 2025-02-05 15:25
Ок, просто предохраняюсь так сказать
Avatar
♂S1mple♂ 2025-02-05 15:26
да лучше еще сделай тикет в #✉-create-a-ticket
15:26
опиши ситуацию подробно
Avatar
Jason Todd 2025-02-05 15:26
Ок, спасибо за совет
Avatar
Avatar
pilonpl
for now it's just this
with this your "distance calculation" should basically be hit_pos.y - camera_pos.y
Avatar
Jason Todd 2025-02-05 15:26
А на каком языке?
Avatar
Avatar
Jason Todd
А на каком языке?
♂S1mple♂ 2025-02-05 15:27
тикеты только англ язык
❤️ 1
15:27
как и весь сервер кроме этого канала
Avatar
Jason Todd 2025-02-05 15:27
Ок, понял
Avatar
Avatar
risu
with this your "distance calculation" should basically be hit_pos.y - camera_pos.y
right
15:29
i guess it makes sense
15:30
i'll just ask chatgpt how to normalize a vector
15:30
it's super usefull
Avatar
you just divide each component by the length of the vector
15:31
you should probably know basic vector math without asking a robot...
Avatar
maybe
15:33
but it shows it's reasoning steps
Avatar
cool cool but what I mean is that this should be completely trivial and it should take you longer to type out than to figure out
Avatar
doesn't seem trivial to me
15:38
it is trivial if one component is 0
Avatar
Ok, something I should ask, how old are you?
justatest 1
15:39
This is high school stuff
15:39
if you've done high school math you should know this
Avatar
Avatar
pilonpl
but it shows it's reasoning steps
fun fact, most AI fails at basic math,,,
Avatar
Avatar
risu
This is high school stuff
i don't think so?
15:40
and it's not like you would get proofs at school
15:40
so
15:40
just a theorem
Avatar
Maybe you're not familiar with the English language terms but otherwise it's totally high school stuff
15:42
they teach you how to scale a vector, they teach you how to calculate the length of a vector
15:43
I don't remember if they talk about normalization specifically because I didn't pay attention in that particular class... but I'd kinda expect they do since it's such a common operation?
15:43
they teach you that scaling vectors follows the rules of normal multiplication
Avatar
i can probably work it out with pen and paper but i wouldn't just know it
Avatar
Avatar
risu
they teach you how to scale a vector, they teach you how to calculate the length of a vector
i "only" attended up to 12th grade, but i also only had basic things like vector addition, multiplication, subtraction, etc
Avatar
and it's not obvious at all
Avatar
ok maybe this is just my mathematically gifted ass or something
15:46
but I think it's pretty obvious that if you want something to become 1 you multiply it by its inverse
Avatar
Avatar
pilonpl
and it's not obvious at all
well it's obvious from a certain point of view. if you know the core structure of a vector and how basic math within a vector works, it's simple(r) to figure it out
15:46
and ofc - knowing what "normalizing" means and how to do that as a general term kekw (edited)
Avatar
Avatar
risu
but I think it's pretty obvious that if you want something to become 1 you multiply it by its inverse
well, in case of vectors it's a bit more complicated than that
Avatar
Avatar
pilonpl
well, in case of vectors it's a bit more complicated than that
except it's not
15:48
take a vector of length 5, scale it by 3, and you have a vector of length 15
15:48
it's literally just multiplication
Avatar
i mean yeah
Avatar
so if you want the length to end up at 1... length * scale = 1, solve for scale
Avatar
Avatar
risu
but I think it's pretty obvious that if you want something to become 1 you multiply it by its inverse
i guess i wouldn't think about that fact immediately
15:53
because it's usually useless
15:53
so i just ignore it
Avatar
normalizing makes things consistent, which imo is important :p
Avatar
Avatar
pilonpl
because it's usually useless
Thinking about inverses is pretty useful if you want to cancel out things...
Avatar
https://docs.singlestore.com/cloud/reference/sql-reference/vector-functions/vector-normalization/ this explains it pretty good - within sql, so everything stays humanly readable
SingleStore is a modern relational database for cloud and on-premises that delivers immediate insights for modern applications and analytical systems. Book a demo or trial today!
Avatar
Sorry for chewing you out like this, I just think it's important to know your basics well
Avatar
i kinda just assumed to work out vector normalization you would need like some equation like magnitude = 1 and new angle = old angle
15:57
because that how i though about vector normalization
15:57
that i want specific length with the same angle
Avatar
well if you think about it, uniformly scaling all components will preserve the angle
15:58
I get how that may not be obvious
15:59
It's a bit more obvious if you think of similar triangles
Avatar
yup
16:00
everything is obvious if you already explored the topic earlier
Avatar
specifically of right angled triangles where two of the sides align with the X and Y axes and the third side aligns with the vector itself
Avatar
such complicated if triangle has angle you make triangle big angle stays same you make triangle small angle stays same (edited)
Avatar
In lieu of textbooks I would recommend reading some of the Wikipedia articles on math topics, though they may be prohibitively dense at times
16:03
that's how I usually study when writing code that uses math that's new to me (edited)
Avatar
you can also take a look at ddnet's code handling of vector in src/base/math.h and src/base/vmath.h
Avatar
yeah i read wikipedia often
16:04
ddnet uses floating point
Avatar
If you've got a nice fixed point implementation it should be the same exact algorithms
16:04
Ackthuaylly!
Avatar
bool vector?
Avatar
useful for... some things (idk never used one before) (edited)
Avatar
it's not even used in ddnet code
Avatar
Avatar
risu
If you've got a nice fixed point implementation it should be the same exact algorithms
not completely for some functions due to error propagation
Avatar
monkalaugh i just looked for bvec4 and found usages, didnt see it was actually ubvec4, which is unsigned int8_t
Avatar
my fixed point implementation is just #define FIXED_SHIFT 16
16:07
sqrt i just copied from wikipedia
Avatar
Avatar
pilonpl
sqrt i just copied from wikipedia
how to.. calculate the sqrt?
Avatar
he probably used newton's method
Avatar
yeah
Avatar
i would never bother doing it in any way manually
Avatar
a bool vector in 2D represents one of the four quadrants of the plane, and in 3D one of the eight octants
Avatar
Avatar
meloƞ
i would never bother doing it in any way manually
it's fixed point so you can't just use the float square root instruction
Avatar
Avatar
risu
a bool vector in 2D represents one of the four quadrants of the plane, and in 3D one of the eight octants
you could alternatively think of it representing a subset of the axes
Avatar
Avatar
risu
it's fixed point so you can't just use the float square root instruction
yeah for that newtons method may be more profitable true
Avatar
Avatar
meloƞ
yeah for that newtons method may be more profitable true
one would have to benchmark...
Avatar
someone benchmark this in python gogogogo
Avatar
would be great to represent the players angle somehow
16:13
i guess a vector is ok
16:13
but i need to rotate it
Avatar
Avatar
TsPiggy
Click to see attachment 🖼️
Nara?
Avatar
which is yet another operation
Avatar
Multiply by some power of i :) (edited)
Avatar
time to implement fixed point complex numbers now
Avatar
i dont even know what you're trying to do pilonpl
16:13
help me get back on track
16:14
apart from normalizing a vector.. duuh
16:14
kekw
Avatar
i am making an oldschool game
Avatar
making a little game thing but with fixed point math because he's cool like that
Avatar
isnt that.. pretty restricting?
Avatar
you do you tho!
Avatar
Avatar
meloƞ
isnt that.. pretty restricting?
why is that ?
Avatar
it's just that i have to implement basic math for everything
16:15
did they even have FPUs when Wolfenstein 3D came out?
Avatar
Avatar
Chairn
why is that ?
because floating-point math is imo just easier overall
Avatar
Avatar
pilonpl
did they even have FPUs when Wolfenstein 3D came out?
fpu's were to expensive back then i think?
Avatar
I believe there's one place where fixed point is just completely superior, and that's global coordinates
Avatar
wolfenstein came out like 1990 iirc
Avatar
because you get consistent behaviour even far from the origin
Avatar
so what are floats good for?
16:18
incremental games i guess
Avatar
Avatar
risu
because you get consistent behaviour even far from the origin
use doubles then? xd
Avatar
Everything else lol
Avatar
Avatar
Teero
use doubles then? xd
Still not consistent, behaviour still depends on the power of two you're away from the origin
Avatar
floats are useful for practically everything, measurements, graphics, coordinates, fractions
Avatar
just the more pronounced effects are pushed much further away with doubles
Avatar
basically everywhere were you need/want decimal precision
Avatar
Avatar
pilonpl
so what are floats good for?
scientific computing
Avatar
yes will you ever need values over 1e30?
Avatar
the subtle inconsistencies are everywhere
Avatar
risu you are tripping today, go to bed again lmao
Avatar
Avatar
Teero
yes will you ever need values over 1e30?
ofc, i need it to calculate each particle within your potato moon
Avatar
Avatar
risu
the subtle inconsistencies are everywhere
everything is consistent if u take everything into account
16:20
the whole universe
Avatar
Avatar
Ryozuki
everything is consistent if u take everything into account
solve 3body problem pls!
Avatar
I'd like it if my players could rely on something working every time no matter where in the world they are
Avatar
@Ryozuki also as a sidequest solve ddnet analytically please
Avatar
fixed point can still be inconsistent rotation wise
16:21
is there a way to solve that issue? (edited)
Avatar
wdym?
Avatar
Avatar
Teero
yes will you ever need values over 1e30?
Time to make a space game owo
Avatar
just use pi as 4
HUH 1
Avatar
Avatar
risu
Time to make a space game owo
im doing that and doubles are way enough
Avatar
Avatar
Teero
wdym?
units are square so rotations matter
Avatar
Avatar
pilonpl
units are square so rotations matter
then use larger numbers
Avatar
Avatar
Teero
im doing that and doubles are way enough
Your space game doesn't have enough space
Avatar
wait, so instead of calculating ( pi / diameter ) - i could've done ( 4 / diameter ) the entire time? GOD DAMN IT
Avatar
some structure rotated 45 degrees can techincally behave differently
Avatar
Avatar
risu
Your space game doesn't have enough space
idk our solar system is there in 1:1 scale
16:22
dunno if thats enough for you
Avatar
not even multiple galaxies what is this a space game for ants?
Avatar
Avatar
Ryozuki
just use pi as 4
The Indiana pi bill was bill 246 of the 1897 sitting of the Indiana General Assembly, one of the most notorious attempts to establish mathematical truth by legislative fiat. Despite its name, the main result claimed by the bill is a method to square the circle. The bill implies incorrect values of the mathematical constant π, the ratio of the ci...
Avatar
Also, can I go knitting on the fringes of the solar system? Is it precise enough?
Avatar
Avatar
risu
Also, can I go knitting on the fringes of the solar system? Is it precise enough?
too_much
16:24
^ dis u today risu!
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
Avatar
I'm sorry I think of my game engines as art projects that need to be pristine and beautiful That's why I've never released anything :)
Avatar
Avatar
risu
Also, can I go knitting on the fringes of the solar system? Is it precise enough?
yes you can, every other planet is scaled and transformed relative to you, you will never see any inaccuracies (edited)
16:25
you are the center of the universe
Avatar
Multiplayer?
16:26
just made it a week ago its not a game really
16:26
working on shader stuff rn
Avatar
ok then you good
16:26
king shit
Avatar
@meloƞ can u vc rq?
Avatar
i would if i werent pooping my soul out rn
16:27
gimme like ~3 mins
Avatar
Avatar
meloƞ
i would if i werent pooping my soul out rn
how can u hold your fingers steady and type while pooping
16:27
u liar
Avatar
Avatar
Teero
how can u hold your fingers steady and type while pooping
Magic
Avatar
Avatar
Teero
u liar
Oh yeah? Alright bet
Avatar
send vid
Avatar
is rotating vectors trivial too?
Avatar
Avatar
pilonpl
is rotating vectors trivial too?
no 😔
Avatar
Avatar
meloƞ
Click to see attachment 🖼️
reflection says everything
Avatar
i think it requires sin and cos
Avatar
Damn floor is dirty af
Avatar
usually yeah you'd do it with sin and cos
Avatar
God damn it
Avatar
implementing sin is probably hard
Avatar
Avatar
pilonpl
implementing sin is probably hard
A good sin implementation is complicated to be sure. A simple one just takes some number of the most significant terms from the infinite series
Avatar
Avatar
Teero
you are the center of the universe
visible universe
Avatar
Avatar
pilonpl
implementing sin is probably hard
use either cordic or table based methods
16:55
once you have sin, cos is trivial
Avatar
Avatar
risu
A good sin implementation is complicated to be sure. A simple one just takes some number of the most significant terms from the infinite series
don't use taylor series, they converge too slowly and have quite big errors
Avatar
Avatar
Chairn
use either cordic or table based methods
oh, right, the cordic thing, somehow forgor
Avatar
i'd recommend you take a look at glibc math library implementation, although it's quite complicated (i didn't understood everything)
Avatar
Avatar
Chairn
once you have sin, cos is trivial
many would even go as far as to do cos first
16:56
makes implementing sin really easy :)
Avatar
sin is easier because it's almost linear close to 0, so you can do range reduction and limit error
Avatar
Avatar
Chairn
i'd recommend you take a look at glibc math library implementation, although it's quite complicated (i didn't understood everything)
Maybe some other libc would be easier to understand? I've heard that glibc is particularly hard to read
Avatar
hmm, newlib's libm might be easier, didn't check
Avatar
Avatar
meloƞ
God damn it
nouis
Avatar
.STD !шастик? 2025-02-05 17:58
ищу когера я новичо
Avatar
Avatar
meloƞ
Click to see attachment 🖼️
show feet pics🍉 🍉
Avatar
♂S1mple♂ 2025-02-05 20:15
the hell
Avatar
BREAKING: Chinese President Xi Jinping opposes Trump's plan to take over Gaza and supports Palestinian rule over the territory.
20:45
justatest
Avatar
♂S1mple♂ 2025-02-05 21:05
Im sorry what that ussr symbol doing on this red thing
21:05
Ok better not ask it ig (edited)
21:06
@Tater where is he
Avatar
The bullshit between those further goes xd
21:57
At this point, just leave the two regions alone, let them handle it eye to eye
Exported 335 message(s)
Timezone: UTC+0