Upload
Login or register
x
Anonymous comments allowed.
20 comments displayed.
User avatar #16 - cdm (10/29/2015) [-]
How... would you even begin coding this? This must've been a nightmare...
User avatar #213 to #16 - alfonshister ONLINE (10/30/2015) [-]
I would hihgly recommend another game with similar "what-the-heck-physics"

Look up "Monument Valley"
#226 to #213 - anon (11/14/2015) [-]
Agreed. Probably the best iOS game in existence. Not just because of the ******** geometry, but because it's so pweddy
#227 to #226 - anon (11/14/2015) [-]
The DLC is totally worth it too. Just wanted to add.
User avatar #228 to #227 - alfonshister ONLINE (11/14/2015) [-]
now im wondering how an anon found this comment.
#41 to #16 - fuckyouto (10/30/2015) [-]
pickedUpObjectScale = new Vector3.one * hit.distance;
User avatar #36 to #16 - thehumanidiot ONLINE (10/30/2015) [-]
Everything is based off of the initial distance/scale the object was picked up at versus the area behind it. Pseudo-code could look something like this-

>Pickup Object
>Check Initial Scale(size)
>Move Object to furthest point in visible space
>Scale Object Based on distance moved so that size appears same
(Would be based on a formula using original scale, roughly like
newScale = newDistance * startScale)
>Tada


Usually the most out of the box concepts like this are pretty easy to tackle
#18 to #16 - bminous (10/30/2015) [-]
It actually isn't that crazily complicated (I am most likely making a similar project for my graphics class).

The way your GPU renders the game is by converting objects in your game's 3D world space into 2D screen space using a bunch of matrices. One of these matrices is dependent upon how far away the object is from the camera (called the perspective matrix), which makes sense since objects that are farther away appear smaller.

If you take an object's coordinates in screen space and use the inverse of all of the matrices you just used to convert it there, it changes them back into world space. However, if you change the z-value of this perspective matrix, it'll change the object into 3D world space at the given z-distance and with a size that makes it look the same from the camera's perspective.

User avatar #170 to #18 - bigmanfifty (10/30/2015) [-]
So.... it's magic?
#159 to #18 - trollczar (10/30/2015) [-]
Most Based explanation for something as complex as perspective.
User avatar #71 to #18 - bubblesbubble (10/30/2015) [-]
I'm also in a computer graphics class (University of Wisconsin) and this is ******* cool, and it's amazing how easy the math is. We have to do a final projects before the end of the semester, I'm thinking of selecting one that does something similar to this.
0
#92 to #71 - bubblesbubble has deleted their comment [-]
User avatar #90 to #71 - jehk (10/30/2015) [-]
Madison? Or one of the other campuses
User avatar #93 to #90 - bubblesbubble (10/30/2015) [-]
Parkside Campus - much smaller but definitely has some solid professors. I'm considering getting my masters in madison
User avatar #95 to #93 - jehk (10/30/2015) [-]
Yea I've found that most schools related to the UW have good professors, many even similar quality to Madison. Shame that Madison is so expensive, but at least we're not Milwaukee.
User avatar #164 to #95 - trollczar (10/30/2015) [-]
UW-Platteville here, can attest for quality professors. Many of my Engineering professors graduated from Madison, but came here due to the quality of the undergrad program. Ive been told time and time again, that if you want to get a bachelor's degree go to the other UW's, but for graduates go to UW-Madison.
User avatar #59 to #18 - wraithguard ONLINE (10/30/2015) [-]
Nice
#30 to #18 - anon (10/30/2015) [-]
ELI5?
User avatar #88 to #30 - bminous (10/30/2015) [-]
Due to the way perspective works, a small object that's close and a large object that's far away both look the same size on your screen.

Take 3D object in world
Change it into 2D object on-your-screen-size
Change that back into a 3D object in world at a different distance, but with a size that is still the same when it is changed into 2D object-on-your-screen size
#29 to #18 - ugoboom ONLINE (10/30/2015) [-]
great explanation, dude
 Friends (0)