Discuss Scratch

lightedblox
Scratcher
73 posts

Making 3rd Person 3D game into a first-person one.

https://scratch.mit.edu/projects/235786326/

I just cant, for the life of me make it first person. I've tried everything, so can someone smarter than me please help.


If you want to, you can remix it but you could just suggest to me what I should do.

Please…. Try our freshly baked new projects! (Now in 3D!)


DOOM 3D OBJ IMPORTER STARFOX 3D GAME DEMO
(Click on the images to play them!)
DerpyHead0
Scratcher
1000+ posts

Making 3rd Person 3D game into a first-person one.

just so you know, i'm pretty sure any changes would have to be made to the goto custom block.

messing around to figure something out right now.

when I start as a clone
delete this clone
DerpyHead0
Scratcher
1000+ posts

Making 3rd Person 3D game into a first-person one.

ok just realized something, the entire perspective is faked. in reality, the point where objects become 0 size is infinetly far away. yet here, you can easily get objects past the vanishing point and give them a negative size.
you're going to have to probably redo a ton of the 3d engine, because this is a mess.
a good start is
go to x: ((x)/(z)) y: ((y)/(z))

this will make an object in 3d space appear with correct perspective. the only issue is if z goes negative, which then you need something called vector cross product i believe. i never got that far, so sadly i can't help you at this point.\


EDIT: if you do get this done, could you tell me some things on how you did it? some of this i don't think i could ever figure out.

Last edited by DerpyHead0 (July 9, 2018 19:35:06)


when I start as a clone
delete this clone
DerpyHead0
Scratcher
1000+ posts

Making 3rd Person 3D game into a first-person one.

ok nvm just do this in your goto script:
set [tS v] to ((0) - ((200)/(3DZ)))

any point behind the camera will be in the opposite position, but that's about it.
still, i have no idea what vector cross product is, i just heard that it solves this problem.


EDIT: if you want a proper 3d perspective in 3rd person, do this:
set [tS v] to ((0) - ((200)/((3DZ)-(4))))

also clip a bit further back, not just for 3rd person. you can see the triangles dissapear.

Last edited by DerpyHead0 (July 9, 2018 23:02:26)


when I start as a clone
delete this clone
lightedblox
Scratcher
73 posts

Making 3rd Person 3D game into a first-person one.

Wow, that worked perfectly. Thank you!

Please…. Try our freshly baked new projects! (Now in 3D!)


DOOM 3D OBJ IMPORTER STARFOX 3D GAME DEMO
(Click on the images to play them!)
lightedblox
Scratcher
73 posts

Making 3rd Person 3D game into a first-person one.

You said you wanted to know something on how I did it, what specifically?

Please…. Try our freshly baked new projects! (Now in 3D!)


DOOM 3D OBJ IMPORTER STARFOX 3D GAME DEMO
(Click on the images to play them!)
juju5347
Scratcher
3 posts

Making 3rd Person 3D game into a first-person one.

set [ dfnjgjvkdfngdsfg] to []
juju5347
Scratcher
3 posts

Making 3rd Person 3D game into a first-person one.


set to
HyperDash928
Scratcher
8 posts

Making 3rd Person 3D game into a first-person one.

juju5347 wrote:


set to
please don't necro.

when green flag clicked
forever

start making cool idea
take a break
have new cool idea
forget about old project
end
Neobit64
Scratcher
2 posts

Making 3rd Person 3D game into a first-person one.

when green flag clicked
move (1) steps
set [awakeness v] to [0]
Neobit64
Scratcher
2 posts

Making 3rd Person 3D game into a first-person one.

when I receive [work on game v]
change [work v] by (game)
set [new project v] to [bugged]
8ninja8
Scratcher
5 posts

Making 3rd Person 3D game into a first-person one.

when green flag clicked
forever
turn cw (1) degrees
end
Fjinx-Bs
Scratcher
1 post

Making 3rd Person 3D game into a first-person one.

when green flag clicked
forever
set [ iDIOT] to []
end
Gamer412coolbro
Scratcher
1 post

Making 3rd Person 3D game into a first-person one.

n
cool_dude_67
Scratcher
1 post

Making 3rd Person 3D game into a first-person one.

move (7) steps
Bradey482
Scratcher
1 post

Making 3rd Person 3D game into a first-person one.

hi
sargonk
Scratcher
2 posts

Making 3rd Person 3D game into a first-person one.

I'm trying to make my player visible and I cant figure out how can some one help me
sargonk
Scratcher
2 posts

Making 3rd Person 3D game into a first-person one.

/ fortnight perspective
MineTurte
Scratcher
500+ posts

Making 3rd Person 3D game into a first-person one.

sargonk wrote:

/ fortnight perspective
If you don't know already what you are doing is called necroposting. It's when you post on a really old topic and don't provide helpful feedback. Please next time refrain from this as it clogs up the forums and is effectively spamming. Thanks!

(pronouns are she/her). Advanced Alpha Game Studios Manager. Our website: https://aags2.w3spaces.com
This is JuniperActias. AKA Moth mommy. If I helped you out consider following Juni-Bug (my new account)!




If you found this secret, say uwu
Signature gradients here













Powered by DjangoBB