Hello all,
Me and a friend are working on making our own 3D renderer for this semester. Now the only simple point of this renderer is to display an .obj file that’s loaded by using triangles. That’s it no fancy stuff. We set some goals to only use java graphics to accomplish this.
Our method simply takes the perspective projection formula, which can be found in wikipedia, and draws it on the screen. Our problem is that we need to set the viewer’s perspective to a ridiculously large value to get the model to display and even that won’t do it properly.
Does anyone have some advice on how I could scale the perspective formula relatively to the screen size?
If code is needed I would be glad to provide it, but I love to tackle new problems and attempt my best, so any pointers would be great.
Thanks!