Skip to content

ariapahlavan/vib3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

VIB3 User Guide

Quick setup πŸš€

Install VIB3

npm install vib3

Initialize a renderer

const vib3 = Vib3.init()

NOTE: you can pass your own canvas or other parameters: Vib3.init({ canvas })

Add a camera

vib3.withCameras( camera )

Run the animation loop

vib3.animate()

Add a mesh to the scene

vib3.scene.add( mesh )

Add animations

vib3.addAnimation( (timeS, timeMS) => {
    mesh.rotation.x = timeS
    mesh.rotation.y = timeS
})

cube

Add fog

vib3.enableFog(0xF2F8F7)

Add scissor view for troubleshooting

vib3
      .withCameras( camera )
      .withCameraHelpers( new CameraHelper(camera) )
      .enableSplitView()

scissor