Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - LibertyBear

Pages: [1]
1
Graphics / Massive HELP needed with raycasting code
« on: April 21, 2021, 07:11:24 pm »
I already posted this in the projects board, but I'll post this again here(Where it is labeled as "help").

Im making a simple raycasting module, everything works fine, except object rendering... I can have walls, floors, ceilings, movement, ect... but objects just wont work right.

I based my stuff on this(https://lodev.org/cgtutor/raycasting.html) tutorial and Thomas van der Berg's raycaster.

Here's everything I have: https://github.com/LibertyBear/sfmlTest/blob/main/main.cpp

I really cannot get sprites working, if anybody could help it'd be much appreciated

2
SFML projects / HELP with sprite rendering in Raycast engine
« on: April 20, 2021, 11:12:20 am »
Hi lads, new to this forum. Ok heres the story thus far:

Im new to SFML and right off the bat wanted to make a Raycaster (life is short), and kinda found a lack of prebuilt raycaster libraries... so thats what Im going for, a simple raycast engine/library.

I came across this(https://lodev.org/cgtutor/raycasting.html) golden text, but its on a custom SDL library, but the formulas and such still work on SFML.
So I started interpreting it in SFML and then found out a chad called Thomas van der Berg already did that and better than me. So the repository Im gonna link is 80% his stuff.

Anyhow, the key element I'm still lacking is sprite rendering. I cant for the love of me get it working. The walls ceiling and floors render alright, but the sprites either turn into a wall or screw all the rendering.

Here's what I've got so far: https://github.com/LibertyBear/sfmlTest/blob/main/main.cpp

Any help would be greatly appreciated

Pages: [1]
anything