How to control depth of field with arduino

 

The program can send the variable value of potentiometer through serial port. I thought about controlling the depth of field of aximmetry through this value. Now I don't know how aximmetry gets this value to control the depth of field.

void setup() 

{

  Serial.begin(9600);  

  pinMode(A0, INPUT);  

}


void loop() 

{

  Serial.println(analogRead(A0)); 

  delay(500);  

}

How to control depth of field with arduino


   ansot100

 
Profile Image
TwentyStudios
  -  
Why not send the data is OSC from the Arduino into Aximmetry? 
https://github.com/CNMAT/OSC#
 
Profile Image
Eifert@Aximmetry
  -  

Hi,

It is much more elegant and probably reliable to receive the focus with the serial port than with OSC. However, serial port is only available in Broadcast licenses, while OSC is available in all license types.

You can use the Serial Client module to receive data through a serial port:
How to control depth of field with arduino

For more information, please visit: https://aximmetry.com/learn/virtual-production-workflow/preparation-of-the-production-environment-phase-i/setting-up-inputs-outputs-for-virtual-production/external-controllers/using-serial-port-in-aximmetry/


In tracked camera compounds (TrackedCam, LED Wall, AR), you can dynamically set the focus in Unreal by overriding the focus value in the Control Data collection. This can be achieved by using a Set Collection Scalar module with the Cam Focus Key pin to overwrite the value:

In virtual cameras, you just connect your focus data to the Cam Focus Distance pin of the Unreal module:
How to control depth of field with arduino


In scenes that are not utilizing Unreal and are instead rendered by Aximmetry with Render compounds, you will need to edit the Render_.... compound. Once you are inside the Render compound, enable the Depth Of Field GW module within it. Following this, you can connect your focus data to the focus pin of the Render compound.

Warmest regards,