Thursday, March 11, 2010

Application of Blender in Teaching

Hi everyone,

This are the Simulations made in Blender to teach Principles of Physics. Using simple techniques of modeling, texture, render and simple python script.

The same thing we are doing in Project Oscar, Simulation explaining various concepts, Instruments modeling for repository of Chemical Lab and Physics lab.

This one explains the concept of Density of States, a widely used concept in Solid State Physics.
Developed by University of Granada, Spain.

This is an example Pole standing. This Simulation created in Blender 2.44 using Bullet Physics.

Sunday, March 7, 2010

ImportError: No module named Rasterizer

I was trying to make a GUI for a script that would enable a user to run an external script through clicking an OK button.
def button_event(evt) :
if evt==EV_BT_OK:
Blender.Run('C:\Documents and Settings\hiral mehta\Desktop\project stuff\')

However, this contains modules like Rasterizer etc. Hence, when I run the GUI script (with [ALT]+P) it gives an error saying ImportError: No module named Rasterizer.

Is it not possible to create a GUI for a script which will have a button which when clicked runs a script in the BGE (for e.g. a button when clicked displays the mouse pointer in the BGE)

Please help.

Saturday, March 6, 2010

GUI for scripts

I was making a GUI for python scripts in Blender 2.49. The ones that run when you press [ALT]+P in your text window. I made a button, which when clicked calls a function. Now I can use a simple function such as the Draw.Exit() on a "Cancel" button. However, I want to be able to run another script when a button is clicked. There's a Blender.Run(script) sub-module for that, but I'm having trouble with that.

If anyone has used Run before, please help me out. How is it used? (The API information on Run didn't help me much)