VirtualDressingRoom2DParallax
Scenes with parallax enable a 3D experience solely based on 2D data. Check out this demo to see the feature in action. You can also find the source code for it in our sample repository.
![](../../__attachments/2670264366/giphy-4.gif?inst-v=3247bf35-2b53-488b-85d1-7f97c1d5130b)
The VirtualDressingRoom2DParallax
component is the easiest way to implement a virtual try-on in your web shop. It’s using scenes with parallax to enable a 3D experience that is based on pure 2D data. This works based on 2D garment assets and personalised mannequins (converted to 2D) as avatars.
To create a new VirtualDressingRoom2DParallax
use the appropriate method provided by the VirtualDressingRoomFactory
:
const dressingRoom = Pictofit.VirtualDressingRoomFactory.createDressingRoom2DParallax(webViewer, computeServer);