python
memo boneMap=dict([(b.name, i) for i, b in enumerate(bones)])
swigã使ã£ã¦bulletã®pythonãã¤ã³ãã£ã³ã°ãä½ã£ã¦ãã¦ãBasicDemoãããç¨åº¦åãã¨ããã¾ã§ã§ããã 1ãã¬ã¼ã 50msãããããã£ã¦ãã¦ãC++ã ã¨1ãã¬ã¼ã 5msããããªã®ã§10åãããé ã2msããããªã®ã§25åãããé ãã£ãã OpenGLã®æç»ãC++ã«åãã¦ãã¾â¦
http://code.google.com/p/freetype-py/pythonã®freetypeã©ãããctypesã§å®è£ ããã¦ããã®ã§å¥éfreetypeã®ãã¤ããªãå¿ è¦ã¨ãªããWindowsã®å ´åã http://gnuwin32.sourceforge.net/packages/freetype.htm ãããã¤ããªãå ¥æãã¦ãä¸ã® bin/freetype6.dllâ¦
OpenGL ES2.0 ããã°ã©ãã³ã°ã¬ã¤ããåèã«ãã¦ãæ°ããAPIã ãã使ã£ã¦ã¢ãã«ãã¥ã¼ã¯ãä½æä¸ã https://github.com/ousttrue/glbase zipãã¡ã¤ã«ã®ä¸ã®ã¢ãã«ã表示 GLSL vbo interleavedãªé ç¹é å èªåã®persepectiveè¡å attributeå¤æ°ã®åãåã uniâ¦
ã ãããåããã¿ã¼ã³ã§æ¸ããã®ã§æµç¨ã§ããããã«ã¡ã¢ã githubã¨ãbitbucketã«ãªãã¸ããªãä½ã£ã¦pypiã§å ¬éããæ³å®ã setup.py, README.rst, MANIFEST.inã®ï¼ã¤ããã¯ããããsetup.py #!/usr/bin/env python # coding: utf-8 from setuptools import sâ¦
zipã®ä¸èº«ãè¦ãããã¼ã«ãä½ã£ã¦ããã¨ãããSJISã§ä½ããã(Windowsã§ä½ããã)ã¢ã¼ã«ã¤ãã§ã¯æååããçºçãããã¨ãããã£ãã 調ã¹ã¦ã¿ãã¨ãã¡ã¤ã«ãã¹ã«ãã«ããã¤ãæåã使ããã¦ããã¨ãã«utf-8決ããã¡ã®å¦çãããã®ãã¾ããã¦ãï¼ç®æä¿®æ£ãâ¦
ãå ¥éã½ã¼ã·ã£ã«ãã¼ã¿ããèªãã§ãããï¼ç« ã®ãµã³ãã«ã³ã¼ãã®èªè¨¼ã§ãããããªãã2010å¹´ã®6æãããã«twitter apiã®èªè¨¼æ¹æ³ãoauthãªã³ãªã¼ã«ãªã£ã¦ããã®å¾ããã«oauth2.0ã«å¤ãã£ãããããããã§ãã¾ããããªãããã ã 2012å¹´1æã®æç¹ã§pythonããâ¦
OpenGLã§ä½ãããæ¸ãã¨ãã«ã¯GUIã¨OpenGLãé£çµããé¨åã§ãããããã¤ã©ã¼ãã¬ã¼ãã³ã¼ãã大éçºçããã®ã§ãããã©ã¤ãã©ãªåãã¦ã¿ãã OpenGLã®Controllerã¯ã©ã¹ãè¦ç´ã«æ²¿ã£ã¦ä½ããã¨ã§å種GUIéã§ä½¿ãåããã§ããè¨è¨ã http://pypi.python.org/pyâ¦
http://hp.vector.co.jp/authors/VA025927/prog/winclass.html 㨠http://code.activestate.com/recipes/208699-calling-windows-api-using-ctypes-and-win32con/ ãåä½ãã¦ã¿ããc++ã§win32apiã使ã£ã¦ããã¨ãªãã¨ãªããããããªãã¦ã£ã³ãã¦ãã¯ã©ã¹åãâ¦
swigã®ãµã³ãã«ã typemap(in) char * + int lenã®å¼æ°ãStringã¨ãã¦æ±ã typemap(ignore)ã¨typemap(argout) åºåç¨ã®ãã¤ã³ã¿ãè¿ãå¤ã§è¿ã(è¤æ°ãã£ããtupleã«ã¤ãã) numpyã®arrayå ¥åºå downcast ãªã©example.h #include <string> #include <array> class String { s</array></string>â¦
å é±ã¯å¿ããã¦å ¨ç¶ã§ããªãã£ãããä»æ¥ããä½æ¥åéã IrrlichtMLã®freetypeã使ã£ããã©ã³ã表示ã¨æ¥æ¬èªå ¥åã®ã¨ãããåä½ããã¨ããã¾ã§ã§ããã irrlichtãswigã使ã£ã¦pythonãã¤ã³ãã£ã³ã°ã«ãããã®ã§ã 01.HelloWorld.py 02.Quake3Map.py 03.Custâ¦
Irrlichtã®exampleã®10çªã¾ã§ãã ãããåãããã«ãªã£ããhttps://bitbucket.org/ousttrue/onibi/src/tip/swigirr/python/examplesswigã«æ £ãã¦ããã®ã§ããã£ããglslã®ãµã³ãã«ãåãããã¨ãã§ããããã¨ãpythonã©ãããirrlichtã®namespaceæ¯ã«åå²ãâ¦
irrlicthã®pythonã©ãããã§ããã ã¨ãããããHelloWorldããã®ã¾ã¾åãããã«ãªã£ãã å½é¢ã¯ãIrrlichtã®exampleã®åä½ã確èªããªãã足ããªãè¦ç´ ã®ã©ãããé²ããæ¹éããã¨ããã¼ã¿ã®èªã¿è¾¼ã¿ãä¸ä¾¿ãªã®ã§ãpythonå´ã§ãã¼ã¿ããã¼ããã¦irrlichtã®ã¡â¦
ã ãããã¸ãªã³ã°ãããã®å®æ度ã«ãªã£ãã®ã§å ¬éãã¦ã¿ããhttp://matosus304.blog106.fc2.com/blog-category-7.html ã§é å¸ããã¦ããPMCAçãªãã®ãpmxãã¼ã¹ã§ä½ã£ããä»åã¯ãªãã¨ãªãBitbacketã«ãªãã¸ããªãä½ã£ãã®ã§ãã¡ãã§é å¸ãã¦ããã¾ãã httâ¦
ãã£ã¬ã¯ããªæå®ã§ä¸èº«ãå ¨é¨å¦çããã¿ã¤ãã®ãã®ãããããç¡ãã£ãã®ã§ãdocstringãhtmlåãããã¼ã«ã¨ãã¦epydocãé¸æãã¦ãã(sphinxã¨ãpydocã§ãã§ããã®ãããï¼)ã ã§ããã¼ã¯ã¢ããæ¹å¼ã«restructuredTextãæå®ããã¨éä¸ã§æ»ã¬ã > epydoc.pyâ¦
åããæ¸ããªããæ°ã«ãªã£ã¦ããtupleã¨æ¼ç®ã®åªå 度å¤æ´ã®æ¬å¼§ã®åºå¥ãã©ããã¦ããã®ãã¨ããåé¡ããã£ãã®ã ããä»æ¥æ°ä»ããã >>> (1) 1 >>> (1,) (1,)ï¼è¦ç´ ã®tupleã¯ä¸è¨ã®ããã« ã«ã³ããæããªãã¨ãããªãã®ã§ãã£ãã éã«ã«ã³ããç¡ãã¨ä¸åtupâ¦
findã³ãã³ãããã°ããããæ¸ããªãã¦ãããã®ã ãã©windowsã ã£ãã®ã§ #!/usr/bin/env python #coding:utf-8 import os def visit(arg, d, files): for f in files: if f.lower().endswith(".pyc"): pyc=os.path.join(d, f) print(pyc) os.remove(pyc) os.â¦
ã¤ã³ã¹ãã¼ã©ãããããsetup.pyã®63è¡ä»è¿ä»¥ä¸ã®ããã«æ¹é ãcontentså¼æ°ãstrã®ã¨ãã¨bytesã®ã¨ãã®ä¸¡æ¹ãããã¿ããã ã def wrap_write_script(self, script_name, contents, *arg, **kwarg): if type(contents) is bytes: bad_text = re.compile( b"\nâ¦
é¨åãªã®ã§ããã ãã§ã¯åããªãããtkinterã¨ã®æ¥ç¶æ¹æ³ã«ã¤ãã¦ã OpenGL.Tk.RawOpenglã使ãã®ããã½ã§ãOpenGL.Tk.Openglã¯ãã¦ã¹æä½çãæåããçµã¿è¾¼ã¾ãã便å©Widgetãªã®ã ã£ãã RawOpenglã®ã³ã¼ãéã¯å°ãªãã®ã§ãç´æ¥tkinter.Widgetãç¶æ¿ãããâ¦
ç¶ãã C:\PyOpenGL-Demo-3.0.1b1\PyOpenGL-Demo\tom>Line.py Traceback (most recent call last): File "C:\PyOpenGL-Demo-3.0.1b1\PyOpenGL-Demo\tom\Line.py", line 9, in <module> __version__ = string.split('$Revision: 1.1.1.1 $')[1] AttributeError: 'modu</module>â¦
PyOpenGL-3.0.2a2.zip ã > C:\Python32\python setup.py install ãããç¹ã«ä¿®æ£ããªãã¦ãåãã2012/01/20è¿½è¨ Windows7 64bit python3.2 32bit ã§pyOpenGLã使ã段åãã®ã¡ã¢ã ã¾ããæ®éã«python3.2ãã¤ã³ã¹ãã¼ã«ã http://pyopengl.sourceforge.net/â¦
http://code.google.com/p/python-incompatibility/downloads/detail?name=setuptools-0.7a1dev-r66.tar.gz&can=2&q=http://old.nabble.com/setuptools-0.7a-for-Python-3-fails-to-build-on-Windows-td22957712.html
Windowsçpython-2.7-amd64åãã®numpyããã«ãããæé ãç°å¢ Windows7 64bit C:\Python27ã«64bitã®æ¹ãã¤ã³ã¹ãã¼ã«ããã¦ãã C:\Program Files (x86)\Microsoft Visual Studio 9.0(Visual C++ 2008 Express Edition) C:\Program Files (x86)\Microsoft Vâ¦
ã«ã¹ã¿ã ã®ãã¼ã«ãå®ç¾©ããã«ã¯ãpythonã¹ã¯ãªãããæå®ã®ä½ç½®ã«ç½®ãã¦existsã¨generateã®ï¼ã¤ã®é¢æ°ãå®ç¾©ããã°ããã$HOME/.scons/site_scons/site_tools/msvc10.py import os vs_path='C:\\Program Files (x86)\\Microsoft Visual Studio 10.0' vc_patâ¦
vc2010 express editionãwindows7(64bit)ã«ã¤ã³ã¹ãã¼ã«ãã¦ããå ´å import os vs_path='C:\\Program Files (x86)\\Microsoft Visual Studio 10.0' vc_path=vs_path+'\\VC' sdk_path='C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1' AddOption('--arcâ¦
sconsã«ã¯Toolã¨ããæ¦å¿µããã£ã¦ããããã³ã³ãã¤ã©ããªã³ã«ã®ã»ããã表ãã¦ãããWindowsã ã¨vcãMinGWãªã©ããããLinuxã ã¨gccã ãããã«32bitã¨64bitãããã®ã§Windowsã®Cã¯ç°å¢ããããããããã¨ã # ç¡æå® env = Environment() # Defaultããã¶ãâ¦
tolua++ãSConstructã使ã£ã¦ããã®ã§èªãã§ã¿ãã ã¨ãããããã«ããã¦ã¿ãã ãVisual studio ã³ãã³ãããã³ãããã§éå§ã > cd \work\tolua++-1.0.93 > scons scons: Reading SConscript files ... scons: warning: The Options class is deprecated; â¦
blenderã¨ãtolua++ã®ãã«ãã·ã¹ãã ã«ä½¿ããã¦ããsconsã調ã¹ã¦ããã®ã§ã¡ã¢ãsconsã¯ããã¸ã§ã¯ããã«ãã®ãã¡ãmakeã®æ©è½ã代æ¿ããpython製ã®ãã¼ã«ã ãä¾åæ§ã解決ãã¦ã³ã³ãã¤ã©ãå¼ã³åºãã¦ããªã³ã«ãå¼ã³åºãã¨ãããããblenderã ã¨sconsã«å ãâ¦
blenderã®sconsãvc10対å¿ããã --- build_files/scons/tools/mstoolkit.py (ãªãã¸ã§ã³ 35779) +++ build_files/scons/tools/mstoolkit.py (ä½æ¥ã³ãã¼) @@ -67,6 +67,8 @@ # look for toolkit if os.environ.has_key('VCToolkitInstallDir'): MSToolkitDiâ¦
http://enbug.tdiary.net/20090626.htmlããã«ããã£ã¯ããªãæãããã«è¿½å ã import os # print ' inflating... ã®æ¬¡ã«æ¿å ¥ dir=os.path.dirname(name) if not os.path.exists(dir): print ' mkdir: %s' % (dir) os.makedirs(dir) å¿ è¦ååã