send a http request


(Yoey) #1

I’m wondering if i can get blender to report on a users interaction in a belnder game file. i.e. if they change their car colour to red, can it then update a database be sending out a http request.

Another related question, but not as important, is it possible then for blender to read the car colour from the database when it starts up, and display that colour.


(TankCoder) #2

I believe [email protected] made a little something with the game engine a while back that would open up a html page depending on which side of a rotating cube you clicked. I cant tell you where that is now though. and yes, you can do pretty much whatever you want with python scripting. you just have to know how. this might help, http://www.twistedmatrix.com


(Yoey) #3

Thanks a lot for the info. It’s good to know that it is possible.


([email protected]) #4

You can find that file here:

http://helium.homeip.net/stuff/homeCube.zip

Have fun,

[email protected]


(Yoey) #5

Thanks [email protected] This is awesome, I just added my own images and links, my friends will be impressed when they see me surf, hehe… anyways, I was thinking it would be good if the reflected images of the outer box were links as well, so I figured I would go into blender and edit your homecube.blend file, but it gives me “error: no error”. Is that because it is copy protected or whatever, or is just that I don’t have the right version of blender or what?

I have creator 2.23. I can open black.blend, which I am guessing is just the background or something, but not homecube.blend.

EDIT: On second thought, I guess that wouldn’t be quite as easy as I first thought becuse there are those other ploygons with normals facing the other way infront of the ones you want to trigger. I’d still like to give it a shot.


(corban) #6

hi there,

i hope this is the thing that was asked…

use a message actuator, set properties:

to: host_application
subject: load_url
body: http://www.nameofyourhost.net

when this actuator is invoked, it loads the urkl specified in body (only customize the body, the other fields should contain the text as above. and don’t try the link :slight_smile: ).

hope that helps.

EDIT: i uploaded a small blend file on my webpage, http://www.elektrolite.com
i know that this one doesn’t look good, i chrunched it together just tonight. (when i find more spare time you’ll see more of my blender work, so excuse the cheap look of this one). it uses some python for mouse nav wich still don’t work properly (see my other post). ok, have fun.
EDIT2:oops, i noticed that the nav arrows don’t show (seems texture has wrong size), but i’m at work and can’t change it from here, sorry…