Discuss Scratch

DatLlamaKid
Scratcher
17 posts

Need help with a more advanced raycast system

Im making a 3d raycasting game using a recent Griffpatch tutorial. Im wondering if it's possible to raycast a texture onto the wall, preferably several methods with a how-to, if possible. Also, is it possible to have multiple textures on the same wall, and how would that be able to happen?

Also, currently the raycast can only render blocky objects, or some very rough spheres. Would it be possible to create more advanced shapes (objects that don't reach all the way to the ceiling, spheres etc, etc?)

Project link:
https://scratch.mit.edu/projects/683342069/

Griffpatch channel link;you'll be able to see the raycasting tutorials if you scroll a little:
https://www.youtube.com/c/griffpatch/videos


Any help is appreciated.
GearedParalysis
Scratcher
3 posts

Need help with a more advanced raycast system

hes already done it i think, or maybe hes about to( i saw textures in his raycast game from the new ultra fast image scanner in his new video).
GearedParalysis
Scratcher
3 posts

Need help with a more advanced raycast system

Also keep in mind it“s not real 3d as the walls just shrink the further they are. but there are many 3d engines in scratch already that uses somewhat understandable math to make it real. (search ”projection matrix", if you want to understand them better)
Bob-_-cUlT
Scratcher
89 posts

Need help with a more advanced raycast system

The people that make 3D scratch games should be given a Harvard scholarship. LIke just HOW!?
Jareddddddd
Scratcher
1000+ posts

Need help with a more advanced raycast system

so with griffpatchs engine, you cant map textures to walls, and you cant create true 3d objects. It technically isnt even 3d, as it just maps a 2d space into a world that looks 3d. I dont know of any scratch engines (that are finished) that work as a full 3d environment, and this require trigonometric knowledge.
Projection matrixes are a way to store info, i would suggest trying to create simple 3d objects before moving onto more complex figures
super_cooperbro
Scratcher
86 posts

Need help with a more advanced raycast system

Bob-_-cUlT wrote:

The people that make 3D scratch games should be given a Harvard scholarship. LIke just HOW!?
I'm making a Backrooms scratch game. I have the raycaster for the level but I need to find out how to make the textures reflect onto the floor. If anyone knows something about this please tell me.

Powered by DjangoBB