336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

http://blender.stackexchange.com/questions/6494/how-to-move-an-arduinos-servo-motors-using-blender


Noob here. 

I am trying to get Blender 2.6 to communicate to an Arduino Mega board via USB serial comms.

I cannot find a nice summary of how to write Python script to get Blender to send serial data to the Arduino. 

찾을수없다. a nice 요약 of how to 쓰는법 Python script를 to 얻는데 Blender를 to 보내는데 serial data를 to the Arduino에.

I found this guys project: http://justindailey.blogspot.com/2011/03/real-time-controlled-robotic-arm.html -> which is similar to what I want to do, 

but there are no details on how to establish serial communications to a specified USB port.Plus I am using Blender 2.6. Thanks!


 #include <Servo.h>

    // Servos to be used
    Servo servo1;
    int pos = 0;    // variable to store the servo position 

    void setup()
    {
      // This is using pin 9 (change accordingly)
      servo1.attach(9);  // attaches the servo on pin 9 to the servo object 
      pinMode(13, OUTPUT); //LED
      // initialize the serial port
      Serial.begin(9600);
      servo1.write(45); //initial servo position
    }

    int angle, light=0;

    void loop()
    {  
      // wait for the servo angle
      if(Serial.available() > 2){
        angle = Serial.read();
        servo1.write(angle);
        if (light==0) { 
          digitalWrite(13, HIGH); 
          light=1;   // set the LED on 
        }
        else { 
          digitalWrite(13, LOW);
          light =0;    // set the LED off
        }
      }
    }

http://howtomechatronics.com/tutorials/arduino/rotary-encoder-works-use-arduino/



https://blenderartists.org/forum/showthread.php?236135-Arduino-controls-Blender-object-in-real-time


Hi. This is a tutorial about how to render stereoscopic VR images with Blender

that will work with VR headsets such as the google cardboard or the oculus rift

so here's how it works 

first you should get a recent build of Blender

so this will only work with Blender versions after March 11th of 2016 (◀이때 이후 버젼!!!)

so and then a two point 78 this should be in

Next open up your favorite scene that you want to render in VR

and then set the resolution to two by one

in this case, i'm setting it to two k

so 2048 pixels by 1024

and even better quality would be 4k

but now 2k will do

next make sure that your camera is rotated correctly

so 90 degrees around the x-axis

and 0 degrees around the y-axis

the z-axis defines your primary and main view

usually in this case, i'd like to use something as minus 90 degrees

then position your camera

and it's always good if anywhere you look you have something to see VR

that's why i place the camera in the center of the sea

1:16 / 11:36

also it's a good idea to use human reference to position the z-axis

in this case, i'm setting it to 1.7 meters height

so that looks good

Next an able views that will make sure that you will have stereoscopic rendering

so you will have a left and right camera

and if you find the red and blue view in the viewport annoying 

you can turn that off in the stereoscopy settings

so you can choose just the left of right camera


1:52 / 11:36

so

Posted by ElectricShock
:
BLOG main image
잡동사니들(지극히 개인취향인...) (다른글에도 댓글 부탁해요♥) You May Leave English Messages on GuestBook. by ElectricShock

공지사항

카테고리

분류 전체보기 (782)
Programming(=프로그래밍) (3)
MiDi (2)
Animation (4)
Blender (3D Graphic Program.. (10)
Blendtuts.com (Series) (1)
Blender 기초 팁들 (2)
Processing (디지털미디어과) (2)
Music (1)
Books in the world (0)
Communication(CAN, UART, et.. (12)
MCU Examples (PIC 기반) (7)
Transistor (1)
Mikro C Pro (11)
Mikro Pascal (1)
Proton IDE (0)
Robot (0)
Swift 3D (1)
Dummies Series (1)
All about Hacking (0)
제2 외국어 (1)
PIC 해외서적들 (3)
AVR (25)
PIC (MikroC) (MPLAB) (4)
Assembly (2)
ARM (3)
Arduino (26)
PSpice (1)
Proteus ISIS (14)
CodeVision (2)
FPGA (15)
MPLAB (24)
PCB (the Procedure) (15)
3D Printer (5)
PICKIT3 (6)
Matlab (11)
RaspBerry PI (15)
BeagleBone (1)
Android Studio (17)
졸업작품 (172)
Korea History (0)
Issue(사회) (73)
Multimeter 리뷰 (1)
Oscilloscope (1)
A (34)
B (19)
J (6)
C (32)
P (12)
T (37)
H (12)
I (12)
M (44)
R (5)
E (5)
F (2)
D (9)
O (2)
L (7)
S (9)
W (2)
V (6)
G (14)
Visual C++ or Visual Studio (2)
Android App Development (0)

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백