Re: Relating Pixel and Model Space



Hello Jon,

I certainly agree it is ugly and not very helpful. Why do you think I
should play around with the aspect ratio m_aspect. Should this not be
set to the aspect ratio of ones OpenGL viewport (window)? Thus it is
variable, but controlled by the window size. Similarily, I am actually
interested in loading in different maps so the mapAspect is variable,
but again not something I can play with. I would think the only free
variable here is the camera's Z position and that there should be some
*simple* formula to calculate it. I can't imagine other people haven't
wanted to do this and am surprised someone has just jumped in with a
straight forward solution.

Cheers,
Donovan

To me that's ugly in the extreme, especially given that you don't know
why it works.

I'd like to see the value of m_aspect. Indeed, I'd start off with it at
1.0 and get to the situation where you get the desired fit in the
y-direction. After that you can adjust it (m_aspect) appropriately and
then think about why the value that works is successful.

Try a simple trace (print out values using printf or cout).

Best regards,

Jon C.

.



Relevant Pages

  • Re: Social aspects of DnD
    ... debate - ie making DnD more like a video game, ... want to play the game. ... non-combat encounters, mission goals, roleplaying, is listed ... The proposed ratio for story awards if you use them is 50/50. ...
    (rec.games.frp.dnd)
  • Re: Metric accents of 4-time
    ... I found this very interesting reading, particularly the part describing the problems those get that just wish to play without proper syncing - and they seem to not really have an organized method to do that. ... connected with a triplet bracket. ... out - shorthand notation for a ratio that is actually more complex. ... Then you might fond a notation for it. ...
    (rec.music.theory)
  • RE: Vista Ultimate, WMP 11 playback wrong aspect ratio (forces 16x
    ... When the asect ratio was set to custom 4:3 it would play widescreen. ... It seems that certain video file formats have an aspect ratio flag embedded. ...
    (microsoft.public.windowsmedia.player)
  • Re: Marys Wet, erm, Cupboard
    ... if you mean the "average win ratio per person". ... I play each person - and lose all the games. ... The other 99 players don't play ...
    (uk.games.video.misc)
  • Re: Shemti / Crocodile Temple + ousted
    ... Neither Shemti nor the Temple is in play at the requisite time. ... So in what window does Life Boon get played? ... Only usable at the end of a successful action (after resolving ... takes 1 damage. ...
    (rec.games.trading-cards.jyhad)