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