Glassmark/Indiemark/Lonet2 FOCUS data into Unreal

 

Hi there,

I've searched a few topics but can't find a clear answer on this so am posting a specific query :

I'm using a single Indiemark device to track FOCUS on my cine lens.

I've remapped this in Lonet2 and have seen this work in Unreal-native via a Lonet2LiveLink plugin.

Now I want to get this scalar into Aximmetry and over to Unreal so I can track focus on the camera.

I'm using OptiTrack as the Camera Tracking source = no lens info there

I've also run through the new Camera Calibrator too and am happily using that as the "External Lens Data"

But I see no obvious way to get data from Lonet2 into the Flow mix to get it over to Unreal. So many documents/conversations are focused on ZOOM which I don't need to consider with my prime lens. I do see that I can manually set the Cam Focus parameter to a custom scalar in Aximmetry but see no 'sources' that can feed from Lonet2 although i tried OSC but failed due to lack of experience.

Is there any advice on how to get that Lonet2 data into the mix or otherwise I may have to consider using the LiveLink route and looking into hacking out the blueprint to not update the Focus Distance.


Thanks so much!

Matt Hermans
Electric Lens Co

   Renbry

 
Profile Image
Renbry
  -  

Bumping this for attention. It seems like a missing part of the workflow and the documentation doesn't describe this process.

 
Profile Image
Patrik@Aximmetry
  -  

Hello Renbry,

A very similar question has been answered in this forum post: https://my.aximmetry.com/post/649-glassmark-lens-encoder-not-controlling-fo


Best Regards
Patrik

 
Profile Image
Renbry
  -  

@patrik

Thanks for the reply.

Because it's anything but clear or documented - do you refer to this specific line by Zoltan ? :

Alternatively you can omit using Device Mapper for tracking (clear everything there) and just set the Tracking Device, Tracking Mode, Zoom Device directly on the INPUT panel.

I'll try this out tomorrow and hope it works. It could be worth getting this into documentation for componentised workflows where all tracking, zoom and focus aren't supplied from one source e.g Mosys.

 
Profile Image
Renbry
  -  
On a similar topic - is there a way to visualise/debug out values that are coming in from 'sources' ? I couldn't find a way to see the data feed in from Lonet. Any kind of 'print' command or such that we could use from pins to debug/develop graphs ? 
 
Profile Image
Eifert@Aximmetry
  -  

Hi Renbry,

We also have documentation on Lonet: https://aximmetry.com/learn/tutorials/control-methods/using-glassmark-indiemark-encoders/

Once you added Lonet as a Zoom device in the INPUT on the control board. It should send the focus to the Unreal.
You can see the focus value by peeking at the Control Data connection. You can peek by pressing down CTRL while hovering over the connection:

You can visualize the values by adding Camera Tracking module in the Flow Editor:


Then in the Camera Tracking module set the Zoom Device to Lonet.
And then you can peek at the Focus and Zoom output pins. Or you can even connect them out into preview views with Scalar Peeker modules, like this:

Warmest regards,

 
Profile Image
Renbry
  -  

Amazing!

Thanks for the help - I was confused at first about the Zoom also covering the Focus functionality so now I know they're bundled.

The "peek" is a really cool trick too, thanks for telling me about that. Super handy!

Matt Hermans

Electric Lens Co

 
Profile Image
WillDylan
  -  

Hi Eifert,

I notice the data is in the Focus Sensor instead of Cam Focus or Focus Distance. Am I heading the right directions?


 
Profile Image
Eifert@Aximmetry
  -  

Hi Will,

Not really, you should use the Focus Distance pin instead of the raw focus data from the Focus Sensor pin.

Also, you don't need to edit the Control Data collection connection. If you correctly set up the Camera compound, it will send the correct Cam Focus through the Control Data collection connection.
You just need to add the Lonet in the Zoom Device of the Input panel:

Zoom devices include the focus data.

More on Lonet here: https://aximmetry.com/learn/tutorials/control-methods/using-glassmark-indiemark-encoders/

Warmest regards,

 
Profile Image
Renbry
  -  

Hi Will & Eifert,

I've found a similar setup to Will works for me -

Setting the "Zoom Device" to Lonet2, keeping Tracking Device set to OptiTrack and External Lens Data to On as shown here:

Gives me no meaningful data on the "Control Data\Cam Focus" scalar.

However using the Camera Tracking module and the Focus Sensor pin shows me values changing in accordance with the focus ring/Indiemark movements and this scalar seems to be in Metres as specified in my Lonet2 calibration xml.

I'm doing the Set Collection Scalar to bring that into the Control Data bundle and sending that to Unreal; which finally shows me a moving focus distance!

I know Eifert says not to do this - but can you advise on whether this isn't a good idea as the other method doesn't seem to work for me (and Will?)

Thanks so much!



 
Profile Image
Eifert@Aximmetry
  -  

Hi,

To clarify my previous somewhat misleading comments:
The Focus Distance pin only works when the tracking system sends calibrated focus data with professional tracking systems or when a Calibration profile is selected with focus calibration.
Aximmetry doesn't recognize LONet's calibration (Map Encoder) as a professional tracking system. So you need to do the calibration in Aximmetry.
Currently, it is possible to make focus calibration in Aximmetry using the Basic Calibrator: https://aximmetry.com/learn/tutorials/for-studio-operators/basic-lens-calibration-without-lens-distortion/#focus-encoder Note, even if you did lens calibration with the Camera Calibrator, you can use the same file and add a focus calibration to it with the Basic Calibrator.

The Focus Sensor pin returns data even when there is no calibration.

Warmest regards,
 
Profile Image
Renbry
  -  

Thanks again Eifert,

I can try this calibration. I wonder what the difference is - is there a conversion happening ?

Currently my Lonet2 setup has me set focus distances against the rotational degrees and this seems to be coming through ok (via the Focus Sensor) however there's a chance that I may have needed to force a certain metric unit to the mapping e.g centimetres vs metres but at the moment it seems to be translating through to Unreal. I haven't done any forensic tests against virtual distance markers but I could find time to validate this.

Anyway, thanks for the help and I can take a look at the calibration you mention.

Matt Hermans

 
Profile Image
Eifert@Aximmetry
  -  

Hi Renbry,

In this focus calibration: https://aximmetry.com/learn/tutorials/for-studio-operators/basic-lens-calibration-without-lens-distortion/#focus-encoder
You try to figure out the actual focus distance for different raw focus sensor and zoom sensor encoder values. From that Aximmetry will plot a focus distance, this focus distance value will hopefully be very close to the real-world focus distance of your camera. Then Aximmetry takes care of all the converting and everything else, you just need to specify the calibration file in your camera compound.

To my understanding, Lonet2 mapping is similar, but only for one zoom level and no visual aid.

Of course, Aximmetry plans to automate this focus calibration too in later versions of the Camera Calibrator.

Warmest regards,

;