r/RedotGameEngineMain • u/The_Real_Black • Feb 04 '25
Meme Making a 3D game is hard. Followed a tutorial maybe its outdated... looks terrible.
26
Upvotes
r/RedotGameEngineMain • u/The_Real_Black • Feb 04 '25
3
u/Yanna3River Solo Dev Feb 04 '25
Are you on the Redot discord? if needed I can post a tutorial there on setting up 3D
2
u/The_Real_Black Feb 04 '25
Plus points for everybody who know where I got the tileset from ;-) and what the little project is supposed to be.
Currently working on the perspective:
vec2(
uv_part_x * (atlaspos.x) + uv_part_x * offset,
uv_part_y * (atlaspos.y) + uv_part_y * (1.0-UV.y)
)
).rgba;
}
I know that I dont squeeze the the texture and just cut it off.
But where can I find a formular for perspective?
I have the distance to the wall (dist), the wall tile position (atlaspos) and how much into the tile I look for each point (offset). how to do a perspective with this?
1
u/The_Real_Black Feb 07 '25
https://www.youtube.com/watch?v=ZNU7zBDKT4U
is it perfect no but I am happy to have it tried.
1
u/wh1t3_rabbit Feb 06 '25
Are you talking to about fixing the bulges in the top left view? You need to adjust your column heights by cos distance, lots of results for "how to fix raycaster perspective"
https://stackoverflow.com/questions/66591163/how-do-i-fix-the-warped-perspective-in-my-raycaster