Author Topic: python Proposition  (Read 4903 times)

Offline Deceit

  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
on: December 01, 2008, 05:49:30 PM
first of all let me say WOW and much kudos to you johnny lee.

the math of your viewport in the head tracker is very impresive to say the least, lol i could go on and on about it but thats not what the topic name is so heres the real body.

would this be possible to program in python? my skills in programming are nowhere near yours, or the math comprehension anyway... but i use blender 3D for alot of my game ideas, to see them work at a low level with little effort

one thing i cant get right is the prespective
(again i just dont understand the math behind it enough yet)
the "fish tank" effect is not there, rotating the "camera" brings more of the enviorment (above,below, and side to side of the rectangles) into the field of view. rather than just chngeing the angle at which it is seen.
"if that make sense,if not i can provide pics of what i mean"

HOW did you get past this snag, ie. thought Process, and problum solving ideas


im going to keep trying and do some more research but if anyone has any good ideas for a place to find explanations (possibly a diagram) of the math used in head tracking it would help alot

or if anyone would like to help recreate this effect with the blender python engine, i can promis it will resault in some awsome examples



Offline ashgavs

  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Reply #1 on: March 03, 2010, 12:25:27 AM
So I know you wrote this ages ago, but I thought  if you were interested generally I would respond:

You can download something called IronPython. IronPython runs exactly the same as regular python but rather than being compiled to C, its compiled to C#.  Consequently, you can import C# libraries to Python, and have them run using Python code. Not all libraries are supported however, and you might have to learn how to translate them over. But yes, this is very possible
--Ashley