This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
Partial 3D
Started by Joe3000, 07 August 2013 - 11:22 PMPosted 08 August 2013 - 01:22 AM
So I saw Nitrogen Fingers with his 3D objects and I wanted to try to make some myself. Although, I am a terrible coder XD. So this was my attempt to make a 3D cube. It's essentially 8 sprites that are the 4 points of the cube. You can use W, A, S, and D to move the cube around and Q and E to get closer or farther away (You can use T to end the program). Don't get too close or far away though, the points are not connected to each other in any way so if you get too close to them or too far they tend to group up and not work. That is also the reason why it isn't actually a cube, because you can move really far in any direction and since the points are connected it makes a sorta prism. Final note, I am only in pre-calc in high school so I don't any math when working in 3 Dimensions, which is kinda why I had to wing it with this thing and used a system of trial and error to see what would work and what wouldn't, but the out come was fairly decent and I like it so far (although there probably are tons of 3D modeling in CC and mine probably looks like shit compared to those XD) so if you know any 3D math, please share! I want to make more 3D things.
[attachment=1297:Capture1.PNG]
[attachment=1298:Capture2.PNG]
[attachment=1299:Capture3.PNG]
Posted 08 August 2013 - 03:35 AM
Great job! If you're interested in more 3D, there's a cool article on ray casting that's not hard to understand here. This is the same method GopherAlt used to make his Wolfenstein 3D engine.
Posted 08 August 2013 - 09:12 AM
Do you mind uploading some screenshots of this?
I'd love to see how it looks! ;)/>
I'd love to see how it looks! ;)/>
Posted 08 August 2013 - 11:34 AM
Thanks and i'll check it out!Great job! If you're interested in more 3D, there's a cool article on ray casting that's not hard to understand here. This is the same method GopherAlt used to make his Wolfenstein 3D engine.
Sure, I just put some on there, I have never really used a forum before so i'm not exactly sure if I did it right XDDo you mind uploading some screenshots of this?
I'd love to see how it looks! ;)/>
Posted 08 August 2013 - 11:37 AM
Wow really nice job!
Posted 08 August 2013 - 10:36 PM
This is pretty cool!
I noticed some strange behaviour when moving the cube back and forward. The points will converge when moving back, but when moving forward they would stay converged on the y axis, so the cube would become a flat rectangular prism.
Besides that nice job :)/>
I noticed some strange behaviour when moving the cube back and forward. The points will converge when moving back, but when moving forward they would stay converged on the y axis, so the cube would become a flat rectangular prism.
Besides that nice job :)/>
Posted 09 August 2013 - 12:19 AM
O_O did…. did Nitrogen Fingers just comment on my forum?
Posted 09 August 2013 - 08:38 PM
O_O did…. did Nitrogen Fingers just comment on my forum?
Unless there's some optical illusion on this page, I think he did. What's the big deal?
Posted 10 August 2013 - 01:11 AM
O_O did…. did Nitrogen Fingers just comment on my forum?
Unless there's some optical illusion on this page, I think he did. What's the big deal?
He kinda kicked off my love of computer programming, I forget where I learned of CC but once I did I looked up tutorials and did some basic stuff like password protected doors and computers that wrote messages when you typed something in. Eventually, I found Nitrogen Fingers and he made me realize how much you really could do with this kind of stuff, and ever since then I have always been trying push the boundaries of what I can do, and now I have started learning Java (and a little of html) and am considering getting a degree in computer science when I go off to college. That's why i <3 Nitrogen Fingers
Posted 10 August 2013 - 08:05 AM
This looks like a nice program! I like how much 3D stuff there is on the forums lately.
The link isn't working for me.Great job! If you're interested in more 3D, there's a cool article on ray casting that's not hard to understand here. This is the same method GopherAlt used to make his Wolfenstein 3D engine.
Posted 10 August 2013 - 09:58 AM
The link isn't working for me.
Huh, works for me. If you're still interested just google ray casting 3D or something similar. Does it work for anyone else?
Posted 10 August 2013 - 10:44 AM
The link isn't working for me.
Huh, works for me. If you're still interested just google ray casting 3D or something similar. Does it work for anyone else?
Yes it works for me