Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Controlling desktop blender with N900 accelerometers

    Reply
    Page 1 of 3 | 1   2     3   | Next
    int_ua | # 1 | 2010-09-09, 06:39 | Report

    Both Blender and Maemo have python.
    So it is potentially possible and potentially not so hard to make N900 3d blender controller.
    All we need is python modules for:
    0. Recording accelerometers data on N900;
    1. Streaming accelerometers data live to desktop and caching it real-time;
    2. Controlling active blender view;

    I suppose it will be:
    a) active only when holding some button (camera for example), and
    b) turning blender view relative, not absolute.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by int_ua; 2011-09-20 at 23:47.
    The Following 2 Users Say Thank You to int_ua For This Useful Post:
    Cue, Helmuth

     
    paulkoan | # 2 | 2010-09-09, 08:59 | Report

    Great idea!

    From your description you just want to control the scene camera, but you could also use it for tracking when recording video with the n900 camera.

    But even if you wanted to use a more advanced camera and use tracking, you could literally strap the n900 to a video camera. If you had the clocks synced on both.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to paulkoan For This Useful Post:
    int_ua, ysss

     
    int_ua | # 3 | 2010-09-10, 14:26 | Report

    Just found similar project:
    http://www.aktasway.com/blog/2009/06...-with-blender/
    woohoo =)
    but the archive with sources is not downloadable =(
    Had written a comment and waiting for a reply...

    Edit | Forward | Quote | Quick Reply | Thanks

     
    int_ua | # 4 | 2010-09-10, 14:51 | Report

    Originally Posted by paulkoan View Post
    you could also use it for tracking when recording video with the n900 camera.

    But even if you wanted to use a more advanced camera and use tracking, you could literally strap the n900 to a video camera. If you had the clocks synced on both.
    To be honest, I don't get it yet. please explain more
    What data can be synced with video this way?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    luiscesjr | # 5 | 2010-09-10, 15:18 | Report

    What`s the pratical use of this? I mean, I`m not complaining, I`m just asking.
    Like, could we use pc mouse via acc control ( example )? Or maybe play a game?

    Edit : And oh, for the guys who knows about this, and will port it, the source codes are avaible to download in the link given before.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to luiscesjr For This Useful Post:
    int_ua

     
    int_ua | # 6 | 2010-09-10, 15:45 | Report

    Originally Posted by luiscesjr View Post
    What`s the pratical use of this?
    Like, could we use pc mouse via acc control ( example )? Or maybe play a game?
    Edit: the source codes are avaible to download
    First of all I want to control 3d view of Blender (in edit mode, not in games or videos). I think it would be much more comfortable then with mouse or numpad.

    Is it's URL http://www.aktasway.com/blog/2009/06.../blender95.rar ?
    I can't download it:
    Originally Posted by
    Sorry, no posts could be found here. Try searching below:
    Can someone send it to my by email or any other way?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    int_ua | # 7 | 2010-09-10, 15:50 | Report

    Here is quick reference for controlling 3d view with Python:
    http://www.blender.org/documentation...ps.view3d.html

    Edit | Forward | Quote | Quick Reply | Thanks

     
    luiscesjr | # 8 | 2010-09-10, 16:16 | Report

    Oh, well, sorry, I didn`t click the link in that post cause for me the source wouldn`t be of much use, and I didn`t check it was dead. Anyway, it seems to be a nice app, and as I am right now developing something personal, I might still be able to test it when you guys release it. =)

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to luiscesjr For This Useful Post:
    int_ua

     
    int_ua | # 9 | 2010-09-13, 18:55 | Report

    First working code that controls one boolean value of 3d view with python (for Blender 2.54):

    Code:
    import bpy
    
    def test():
        areas = bpy.context.screen.areas
        for area in areas:
            if area.type == 'VIEW_3D':
                area.active_space.show_floor=not(area.active_space.show_floor)
    test()
    using two links:
    http://www.blender.org/documentation...aceView3D.html
    http://blenderartists.org/forum/showthread.php?t=193207

    Update: rotating camera (not view yet but object named so):
    Code:
    area.active_space.camera.rotation_euler.rotate(0.2,'X')

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by int_ua; 2010-09-13 at 19:08.

     
    int_ua | # 10 | 2010-09-15, 23:33 | Report

    It was easy:
    http://www.youtube.com/watch?v=gkQ9wUo1DFk
    Now the only thing that left is translating raw accelerometer data in blender moves...

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 3 | 1   2     3   | Next
vBulletin® Version 3.8.8
Normal Logout