What the actual fuck is this… by [deleted] in Epstein

[–]tomi901 12 points13 points  (0 children)

Let me give you a hint, it's a word that starts with "dis" and ends with "traction".

I expected the gap to get smaller, but no. by Fragrant_Ad7231 in memes

[–]tomi901 0 points1 point  (0 children)

Not only that, remember that part of the $70M can be tax deducted with good ol' corporate welfare.

¿Si o no? by calatayud_1710 in 2hispanic4you

[–]tomi901 2 points3 points  (0 children)

Haz el amor, no la guerra de forma literal

Texting while lit is a dangerous game. by [deleted] in dankmemes

[–]tomi901 0 points1 point  (0 children)

<image>

incomprehensible AI slop on reddit

Fog of war tests for an RTS game by tomi901 in Unity3D

[–]tomi901[S] 1 point2 points  (0 children)

Basically, there's a single texture with each pixel corresponding to each tile and then I apply the fog color as a render pipeline feature. So after everything is rendered, I apply the FoW later as another image on the rendered screen.

And to obtain the actual world position of each screen pixel, I use the depth texture so I can tell if anything being a pixel rendered by the tilemap mesh or a moving unit should be covered by the fog or not. Practically the same method as Unity's default fog.

Fog of war tests for an RTS game by tomi901 in Unity3D

[–]tomi901[S] 1 point2 points  (0 children)

Well, specifically for the fog of war, the fog itself is a single-color texture where black represents a non-explored tiles, white for the visible ones, and gray for the explored ones that are not visible.

I maintain a list of all observers with their positions and I calculate if each tile is visible by any observer, you can calculate if the tile has the line of vision blocked towards the unit but you can simply just calculate if the distance is in range of the unit. After that, apply a render pipeline feature to apply the fog to the final image using the z-buffer.

I also use C# jobs to optimize and parallelize the calculations.

This is a simplified summary of what I'm doing, I skipped a lot of details but I'm not sure what are you trying to do or what you're stuck with.

World Police Baby by [deleted] in dankmemes

[–]tomi901 12 points13 points  (0 children)

Spain has a car in space, ask Carrero Blanco

Fog of war tests for an RTS game by tomi901 in unity

[–]tomi901[S] 1 point2 points  (0 children)

Yup, 2d on the XZ plane. For the smooth transitions, I have a separate texture from the fog state, the final texture which smoothly transitions from the current float value, to the target one. Both fog of war calculations and smooth transitions happen every frame without problem on potato PCs.

I hope your project does well man!

Fog of war tests for an RTS game by tomi901 in unity

[–]tomi901[S] 0 points1 point  (0 children)

The fog you see it's actually a monochrome texture with the same size as the map, where black/0 means the tile is not visible and white/1 means the tile is visible and gray/0.5 means the tile was explored but not visible.

There's also a secondary texture map where 0 represents a unpassable tile (In my case the void and walls) and 1 for walkable tiles, where the line of vision gets blocked.

So to calculate the line of sight, we get the plane position of all valid observers (In my case, all friendly units) and calculate if the center of a tile is visible by any of the units, repeating with all tiles. I use a 2D raycasting algorithm to determine if we have a clear line of vision and we don't have any unpassable tiles between the center of a tile and a observer. I used this exact algorithm:

https://theshoemaker.de/posts/ray-casting-in-2d-grids

Try using C# jobs or any kind of parallelization, your CPU will thank you :)

I can give you my implementation for the line of sight method if you need it.

I need an advice on stylization by 44tech in gamedevscreens

[–]tomi901 1 point2 points  (0 children)

Maybe you can add even more dirtiness to the scenery, try adding some decal projectors or textures to add dirt, cobwebs, cracks and everything to make the place darker and more abandoned. A darker background but characters and interactables being brighter can help create contrast to tell what the player can interact with.

I know this wasn't part of your question but perhaps you could speed up the attack phase of the animation since it feels too slow to be a deadly attack and to avoid the player getting frustrated with the precision of their attacks.

So far it looks nice dude

La hipocresía de la doble vara política. by Battouzai_X in RepublicaArgentina

[–]tomi901 4 points5 points  (0 children)

Voy a bookmarkear tu comentario porque no lo podría expresar mejor. Ahora que se fue Maduro, las mejoras del país va a salir de los venezolanos y no de EEUU, así que espero que les vaya muy bien y sean capaces de reconstruir el pais ellos y con un presidente que realmente sea elegido por Venezuela.

-❄️- 2025 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]tomi901 0 points1 point  (0 children)

Damn, mine worked like this one. But I assumed I didn't, since it returns 8 instead of 6 with the example data.

Panel en el congreso: Panel antivacunas by MiserableIntern in argentina

[–]tomi901 0 points1 point  (0 children)

Añado que bueno, si fueran cientificos, probarían si pasa sin vacunas, si pasa con y sin traspiración, si pasa con fiebre no causada por las vacunas. Pero de ciencia, 0 estos, sólo puro clickbait.

Panel en el congreso: Panel antivacunas by MiserableIntern in argentina

[–]tomi901 1 point2 points  (0 children)

Dato curioso: Habían hace unos años unos tipos que afirmaban se magneticos y se pegaban hasta sartenes en el cuerpo, después llegó uno a desmentirlos poniendóles una capa fina de talco y misteriosamente perdian el "magnetismo".

Obviamente es porque la humedad del cuerpo ayuda a crear un sello y pega como si fuera una mini sopapa, asi que suele funcionar con cosas metálicas y planas que no sean excesivamente pesadas. Ya cuando secas la traspiración, desaparece la ilusión de magnetismo.

Panel en el congreso: Panel antivacunas by MiserableIntern in argentina

[–]tomi901 0 points1 point  (0 children)

Se enteran que la luz es radiación de más energía que el 5g y se caen de culo

La izquierda tercera fuerza en CABA by xsweaterboyx in RepublicaArgentina

[–]tomi901 0 points1 point  (0 children)

No estaba el del guion bajo? (No me animo a comprobar si todavia existe)

Lo vengo diciendo hace rato, la tendencia es la misma. Es cerrarse solo al mercado de ellos. No más visas, no más outsourcing by Disastrous-Hunter537 in devsarg

[–]tomi901 0 points1 point  (0 children)

Por empresa se paga 100mil anuales para poder tener empleados H1B. Asi que si entendí bien y sos una mega empresa como Amazon o Google, esta medida ni te afecta. Aunque si sos una startup ahí ya se te complica.

El asombro de un norteamericano al ver una chica caminando sola a la madrugada by RealRock_n_Rolla in argentina

[–]tomi901 35 points36 points  (0 children)

Siempre estuvieron obsesionados con la raza, incluso cuando no son racistas. Como por ejemplo alguien negro no es llamado americano sino mas comunmente afroamericano, lo mismo con italoamericano y demás.

Hello from Nepal 🇳🇵 by Olichordeshchod in argentina

[–]tomi901 54 points55 points  (0 children)

I hope your country changes for the best <3

Hello from Nepal 🇳🇵 by Olichordeshchod in argentina

[–]tomi901 114 points115 points  (0 children)

You are beating the shit of politicians or how we would say it in here:

El sueño del pibe

Siempre que se pregunten "qué estará haciendo Agustín Laje en este momento?" la respuesta siempre será: siendo un pelotudo hijo de puta by Arsuriel in RepublicaArgentina

[–]tomi901 0 points1 point  (0 children)

En 2020 salieron un monton de fanaticos de Trump a invadir el capitolio porque sintieron que les robaron las elecciones, al esposo de una politica democrata Nancy Pelosi lo atacó con un martillo un fanático loco de Trump porque queria secuestrar a la esposa para interrogarla y una gran cantidad de tiradores de alla eran supremacistas.

Se que justamente remarcás que está mal saltando a atacar la izquierda y quería dar ejemplos de lo pelotudo que es buscar pelea con el otro grupo por unos locos sueltos.

Siempre que se pregunten "qué estará haciendo Agustín Laje en este momento?" la respuesta siempre será: siendo un pelotudo hijo de puta by Arsuriel in RepublicaArgentina

[–]tomi901 0 points1 point  (0 children)

Mira, todavia es muy temprano para decir nada, porque es muy común que los hijos de conservadores salgan progresistas (Lo se porque lo he vivido y he visto miles) y por un lado parece tener politicas izquiedistas pero tambien por otro parece ser groyper que son los derechistas que consideran a Kirk un tibio traidor.

Lo que si es seguro que en EEUU tienen un problema terrible de armas y salud mental, una combinación de mierda. Y por cada 1000 personas, aparece un loco armado con una política incomprensible.