Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualcaibbor

Posted 17 December 2012 - 06:42 PM

I've found countless threads, articles, etc about this topic, but I'm not doing something right. I can create a view frustum but it isn't on the shape of the 'view' (it's much much wider)

I'll explain my process here as best I can without getting too deep into the math. if everything here checks out, I'll look closer at those operations.

steps I take:

1.) create a unit cube (8 vertices) with these bounds:

min/max x: -0.5f to 0.5f
min/max y: -0.5f to 0.5f
min/max z: -0.1f to -1.1f

(if z ranges from positive to negative, the frustum becomes more like an hour glass)

2.) invert my projection matrix
3.) multiply each of my cube's vertices by this inverted projection matrix
4.) ...
5.) profit

I don't know how to apply the view resolution like 800x600 because the thing is already pretty big at this point, with the smallest face of the frustum (the screen) being slightly larger than the actual screen space.

#5caibbor

Posted 17 December 2012 - 06:15 PM

I've found countless threads, articles, etc about this topic, but I'm not doing something right. I can create a frustum but it isn't on the shape of the 'view' (it's much much wider)

I'll explain my process here as best I can without getting too deep into the math. if everything here checks out, I'll look closer at those operations.

steps I take:

1.) create a unit cube (8 vertices) with these bounds:

min/max x: -0.5f to 0.5f
min/max y: -0.5f to 0.5f
min/max z: -0.1f to -1.1f

(if z ranges from positive to negative, the frustum becomes more like an hour glass)

2.) invert my projection matrix
3.) multiply each of my cube's vertices by this inverted projection matrix
4.) ...
5.) profit

I don't know how to apply the view resolution like 800x600 because the thing is already pretty big at this point, with the smallest face of the frustum (the screen) being slightly larger than the actual screen space.

#4caibbor

Posted 17 December 2012 - 06:15 PM

I've found countless threads, articles, etc about this topic, but I'm not doing something right. I can create a frustum but it isn't on the shape of the 'view' (it's much much wider)

I'll explain my process here as best I can without getting too deep into the math. if everything here checks out, I'll look closer at those operations.

steps I take:

1.) create a unit cube (8 vertices) with these bounds:

min/max x: -0.5f to 0.5f
min/max y: -0.5f to 0.5f
min/max z: -0.1f to -1.1f

(if z ranges from positive to negative, the frustum becomes more like an hour glass)

2.) invert my projection matrix
3.) multiply each of my cube's vertices by this inverted projection matrix
4.) ...
5.) profit

I don't know how to apply the view resolution like 800x600 because the thing is already pretty big at this point, with the smallest face of the frustum (the screen) being slightly larger than the actual screen space.

#3caibbor

Posted 17 December 2012 - 04:05 PM

I've found countless threads, articles, etc about this topic, but I'm not doing something right. I can create a frustum but it isn't on the shape of the 'view' (it's much much wider)

I'll explain my process here as best I can without getting too deep into the math. if everything here checks out, I'll look closer at those operations.

steps I take:

1.) create a unit cube (8 vertices) with these bounds:

min/max x: -0.5f to 0.5f
min/max y: -0.5f to 0.5f
min/max z: -0.1f to -1.1f

(if z ranges from positive to negative, the frustum becomes more like an hour glass)

2.) invert my projection matrix
3.) multiply each of my cube's vertices by this inverted projection matrix
4.) ...
4.) profit

I don't know how to apply the view resolution like 800x600 because the thing is already pretty big at this point, with the smallest face of the frustum (the screen) being slightly larger than the actaul screen space.

#2caibbor

Posted 17 December 2012 - 04:05 PM

I've found countless threads, articles, etc about this topic, but I'm not doing something right. I can create a frustum but it isn't on the shape of the 'view'

I'll explain my process here as best I can without getting too deep into the math. if everything here checks out, I'll look closer at those operations.

steps I take:

1.) create a unit cube (8 vertices) with these bounds:

min/max x: -0.5f to 0.5f
min/max y: -0.5f to 0.5f
min/max z: -0.1f to -1.1f

(if z ranges from positive to negative, the frustum becomes more like an hour glass)

2.) invert my projection matrix
3.) multiply each of my cube's vertices by this inverted projection matrix
4.) ...
4.) profit

I don't know how to apply the view resolution like 800x600 because the thing is already pretty big at this point, with the smallest face of the frustum (the screen) being slightly larger than the actaul screen space.

#1caibbor

Posted 17 December 2012 - 04:02 PM

I've found countless threads, articles, etc about this topic, but I'm not doing something right. I can create a frustum but it isn't on the shape of the 'view'

I'll explain my process here as best I can without getting too deep into the math. if everything here checks out, I'll look closer at those operations.

steps I take:

1.) create a unit cube (8 vertices) with these bounds:

min/max x: -0.5f to 0.5f
min/max y: -0.5f to 0.5f
min/max z: -0.1f to -0.6f

(if z ranges from positive to negative, the frustum becomes more like an hour glass)

2.) invert my projection matrix
3.) multiply each of my cube's vertices by this inverted projection matrix
4.) ...
4.) profit

I don't know how to apply the view resolution like 800x600 because the thing is already pretty big at this point, with the smallest face of the frustum (the screen) being slightly larger than the actaul screen space.

PARTNERS