Advertisement

Pseudo 3D screen projection issue

Started by December 02, 2014 12:00 AM
12 comments, last by Kugelschreiber 10 years, 2 months ago

I think you are changing your mind as to whether the board is 1600 units long or 3200 units long.

Here we go again:

const double A = -2971600.0 / 313.0;
const double B = 21.0 / 5008.0;
const double C = -9200.0 / 313.0;

That too! Originally the world size was 1600 and I forgot to mention it, but it seems I did got the range right when I drew the triangle somehow.

Anyway, it works perfectly now. I couldn't have done this myself obviously. Thanks!


How would the equivalent look in Wolfram Alpha after you adjusted it according to my coordinates?

Advertisement

How would the equivalent look in Wolfram Alpha after you adjusted it according to my coordinates?


It would look like this.

Such an incredible relief to finally have this sorted. I don't think I can thank you enough.

Works perfectly with my other scenes as well, of course (that is, after I noticed the numerators for A & C had to be negated).

This topic is closed to new replies.

Advertisement