Py淡

Python, Python, Python! In the spirit of "import antigravity"

Entries from 2015-07-01 to 1 month

How to record the panda3d app screen as avi file using ffmpeg

# It's better to use base.movie() instead of this code. see belowHere is an example script I wrote today. To run this on your PC, at least the model in the script needs to be replaced with your egg file. Panda3d has a nice facility to save…

Making 3D model from 2D side view image with Smoothie-3D

Smoothie-3D: squirrel modeling - YouTubeI made a 3d fish model for my current project. As you can see in the above Youtube demo video, they made making 3d model really easy. It would have been quite a lot of work if I did this in blender f…

忍者ブログの独自タグをつかって各記事をはてなブログに転送してみた。

忍者ブログでは複数のカテゴリを設定できないという制限があり、英語のページを分けるのが簡単ではないということではてなブログへと移転しました。無料ブログから独自ドメインに引っ越すときに便利。忍者ブログから独自ドメインにjavascriptでリダイレクト…

Using buffer protocol to dynamically texture with 2D numpy array in Panda3d

I followed this official blog post "Buffer protocol support" and came up with a short example of simple video player in panda3d using numpy 2d array as texture. The trick was to use setRamImage on Texture object. To do that, we have to set…

Geany 1.25 is out! Overview plugin is now included in Geany-Plugins!

There was an announcement in the Geany-Users email list that Overview plugin is now officially included in the Geany-Plugins! Overview plugin is a plugin that provides sublime text minimap like feature for Geany. I had built it from source…