Pseudo 3d?

Get help using Construct 2

Post » Tue May 15, 2012 6:10 pm

Like Wolfenstein 3d or the original DooM? It was raycasting back in those days. I was wondering if theres any way we could do that with c2? I know @Yann did somethin like that in his maze but I dunno how lol =D
B
13
S
5
G
2
Posts: 306
Reputation: 3,262

Post » Tue May 15, 2012 6:41 pm

In my maze there was no ray casting, it's only front plane and side plane sprites, rotated and scaled to create the scene.
That's why it's always a strict frontal perspective with the POV exactly in the middle of the front plane.
Making a wolfenstein-like... hmmm dunno, I saw a 3D plugin for C2 a while ago here...
B
68
S
22
G
14
Posts: 1,485
Reputation: 16,561

Post » Tue May 15, 2012 7:03 pm

Im fine with the 90 degree only turns infact its exactly what I want what I was wonderin tho is how you did it lol
B
13
S
5
G
2
Posts: 306
Reputation: 3,262

Post » Wed May 16, 2012 4:11 pm

Anyone else have any input on how this could be done in c2?
B
13
S
5
G
2
Posts: 306
Reputation: 3,262

Post » Wed May 16, 2012 7:56 pm

This page describes how to do ray casting:
http://lodev.org/cgtutor/raycasting.html

Here's a crude implantation:
https://www.dropbox.com/s/qleknlzeqn2z2 ... .capx?dl=1
/examples11/raycast.capx
I have a slow computer so I made the example with a small display.
Last edited by R0J0hound on Sun Sep 17, 2017 10:26 pm, edited 1 time in total.
B
94
S
33
G
113
Posts: 5,356
Reputation: 73,273

Post » Wed May 16, 2012 8:24 pm

wow my mind is blown lol. Now to try to figure out how that example works
B
13
S
5
G
2
Posts: 306
Reputation: 3,262

Post » Fri May 18, 2012 8:03 pm

That's very clever. Well done!
B
5
S
2
G
3
Posts: 1
Reputation: 2,195

Post » Fri May 18, 2012 8:10 pm

@R0J0hound, your "crude" examples always amaze me. Very nice job!
Don't see the fnords and they won't eat you!
B
79
S
17
G
12
Posts: 323
Reputation: 11,850

Post » Fri May 18, 2012 11:00 pm

@Wastrel Thanks.

Here is an improved example with:
* textured walls
* more precise wall/ray intersections
* angled walls
https://www.dropbox.com/s/lvox71xpnpvlg ... .capx?dl=1
/examples11/raycast2.capx
Last edited by R0J0hound on Sun Sep 17, 2017 10:25 pm, edited 1 time in total.
B
94
S
33
G
113
Posts: 5,356
Reputation: 73,273

Post » Sat May 19, 2012 11:49 am

OK, how in the world is this done? We don't have sprite distortions like that!
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 55 guests