Skip to content
English
  • There are no suggestions because the search field is empty.

[How to] Apply Lens materials with Lens Simulator module?

Thanks to the Lens Simulator module, you can apply different lenses to any frames and thus offer a customized virtual try-on experience to your users.

How to apply lens materials?

During the VTO experience, use the appropriate methods to apply a lens material (based on its SKU identifier) to the frames currently displayed in the VTO.

For photochromic lenses, you can change the exposure level to show how the lens looks when it is more or less exposed to sunlight.

For further information, see the corresponding documentation.

To help you get started with the Lens Simulator API, the following lens tints (listed below) are included and available for integration using the SKU identifiers provided.

Simple colors

sample_lens_black Sample_Black
sample_lens_blue Sample_Blue
sample_lens_brown Sample_Brown
sample_lens_green Sample_Green
sample_lens_grey Sample_Grey
sample_lens_purple Sample_Purple

Metallic mirror-like colors

sample_lens_mirrorblack Sample_MirrorBlack
sample_lens_mirrorbrown Sample_MirrorBrown
sample_lens_mirrorgreen Sample_MirrorGreen
sample_lens_mirrorgrey Sample_MirrorGrey
sample_lens_mirrorgreybrown Sample_MirrorGreyBrown
sample_lens_mirrorpurple Sample_MirrorPurple

Photochromatic colors

sample_lens_photochromaticbrown Sample_PhotochromaticBrown
sample_lens_photochromaticgreen Sample_PhotochromaticGreen
sample_lens_photochromaticgrey Sample_PhotochromaticGrey

Follow this Codepen example!

Want to offer a virtual try-on experience with your own private lenses?

If you offer other types of lenses (different tints, gradient lenses, mirror/flash lenses, photochromic lenses), please make sure to order their digitization and send us a sample of each lens type. Our team will digitize them to ensure an accurate rendering of your lenses in the Virtual Try-On.

You can as always contact our team at fbx-salescs@fittingbox.com if you have any questions.