This site requires JavaScript, please enable it in your browser!
Greenfoot back
SickTrickz832
SickTrickz832 wrote ...

2019/6/14

Mode 7 (3D Environments) in Greenfoot

SickTrickz832 SickTrickz832

2019/6/14

#
So after some searching around I have discovered some 3D scenarios in Greenfoot such as Castle Storm 3D. I done some research about it through multiple articles and learned it is a technique called Mode 7. As I don't just want to copy and paste from other scenarios, how would you guys go about getting this into a project as I am very confused about implementing it into Greenfoot. Any feedback is appreciated. And for those wondering my knowledge on Greenfoot, I have been using it for 7-8 months now follwed all tutorials like Joy of Code so I have a decnt knowledge of the software.
nccb nccb

2019/6/14

#
Looking up Mode 7, I think this mainly used to scale and transform the floor graphic. The technique for drawing fuller 3D is raycasting. If you're interested, part of my series on maths in Greenfoot is on how to implement raycasting. The full list of posts in order is here . The post introducing raycasting is about halfway down the list although I think you'll also want to read the posts before that on how to do line-of-sight.
SickTrickz832 SickTrickz832

2019/6/14

#
Thanks for the feedback. I've had a quick read at some of the posts but will have a more in depth read when I have time. I'm not too sure what I'm kind of game I'm going to make with this but I just want to get the "know how" down (if that makes sense) so when it comes to it it makes more sense. These posts do look helpful though, thanks a lot because reading through Java Articles on Stackoverflow and stuff is a nightmare XD. Any other comments are helpful.
polishman123 polishman123

2019/6/14

#
i have a question how i can use mode 7???
SickTrickz832 SickTrickz832

2019/6/14

#
polishman123 wrote...
i have a question how i can use mode 7???
What I am doing at the moment is reading through this post and have downloaded the scenario included in it and working from it. Not stealing it but just reading it through and changing it to see what happens Thanks to NCCB who posted earlier for the series. And I think the technique is called Mode 7 and the method is Raycasting.
SickTrickz832 SickTrickz832

2019/6/19

#
nccb wrote...
Looking up Mode 7, I think this mainly used to scale and transform the floor graphic. The technique for drawing fuller 3D is raycasting. If you're interested, part of my series on maths in Greenfoot is on how to implement raycasting. The full list of posts in order is here . The post introducing raycasting is about halfway down the list although I think you'll also want to read the posts before that on how to do line-of-sight.
Little update. NCCB Thanks for the post they are helping. However I understand that it is old but most of the scenarios and functions you've made do not work (such as the Car with type tracks and clamping speed). And where you are showing the code its not stated where in the code you have placed them. But I am learning some stuff from them though.
You need to login to post a reply.