What is the math related to 3D graphics?
#1
Posted 20 April 2015 - 06:29 PM
Thanks in advance,
Creator
#3
Posted 20 April 2015 - 06:45 PM
#4
Posted 20 April 2015 - 06:48 PM
#5
Posted 20 April 2015 - 06:54 PM
#6
Posted 20 April 2015 - 07:13 PM
I recommend you read the WikiPedia article on perspective projection it because it explains everything and has all the maths.
You can make a top-down perspective with:
x = p.x / p.z
y = p.y / p.z
The z-axis is the depth (smaller = closer to the camera)
And you have to do the transformations yourself
Here are a couple examples of 3D in ComputerCraft:
3D Maze
A little 3D demo in CC
Wolf3d-style 3d engine
#7
Posted 20 April 2015 - 07:19 PM
#8
Posted 20 April 2015 - 07:43 PM
#9
Posted 20 April 2015 - 08:36 PM
What bothers me most is how to take the camera angle and position into account. Moreover, I have no idea how to transform from 3d to 2d.
Edited by Creator, 20 April 2015 - 08:37 PM.
#10
Posted 20 April 2015 - 08:45 PM
Creator, on 20 April 2015 - 08:36 PM, said:
What bothers me most is how to take the camera angle and position into account. Moreover, I have no idea how to transform from 3d to 2d.
1) really? http://lmgtfy.com/?q=raycasting
2) reading the posted links would definitely be a good start
#11
Posted 20 April 2015 - 08:53 PM
#12
Posted 20 April 2015 - 08:59 PM
Creator, on 20 April 2015 - 08:53 PM, said:
and then you're out of luck, because there aren't any simple tutorials for it.
Sorry, but that's the problem that I ran into.
Edited by CrazedProgrammer, 20 April 2015 - 08:59 PM.
#13
Posted 20 April 2015 - 09:02 PM
#14
Posted 21 April 2015 - 05:40 AM
PS: http://lmgtfy.com/?q=9gag
Edited by Creator, 21 April 2015 - 05:49 AM.
#16
Posted 16 June 2015 - 06:11 PM
#17
Posted 16 June 2015 - 07:05 PM
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











