playx_3d_scene 0.0.1
playx_3d_scene: ^0.0.1 copied to clipboard
Plugin for showing 3d models in flutter.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add playx_3d_scene
With Flutter:
$ flutter pub add playx_3d_scene
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
playx_3d_scene: ^0.0.1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:playx_3d_scene/controller/playx_3d_scene_controller.dart';
import 'package:playx_3d_scene/models/model/animation.dart';
import 'package:playx_3d_scene/models/model/glb_model.dart';
import 'package:playx_3d_scene/models/model/gltf_model.dart';
import 'package:playx_3d_scene/models/model/model.dart';
import 'package:playx_3d_scene/models/scene/camera/camera.dart';
import 'package:playx_3d_scene/models/scene/camera/enums/camera_mode.dart';
import 'package:playx_3d_scene/models/scene/camera/enums/fov.dart';
import 'package:playx_3d_scene/models/scene/camera/enums/projection_type.dart';
import 'package:playx_3d_scene/models/scene/camera/exposure.dart';
import 'package:playx_3d_scene/models/scene/camera/lens_projection.dart';
import 'package:playx_3d_scene/models/scene/camera/projection.dart';
import 'package:playx_3d_scene/models/scene/geometry/direction.dart';
import 'package:playx_3d_scene/models/scene/geometry/position.dart';
import 'package:playx_3d_scene/models/scene/geometry/size.dart';
import 'package:playx_3d_scene/models/scene/ground.dart';
import 'package:playx_3d_scene/models/scene/indirect_light/default_indirect_light.dart';
import 'package:playx_3d_scene/models/scene/indirect_light/hdr_indirect_light.dart';
import 'package:playx_3d_scene/models/scene/indirect_light/indirect_light.dart';
import 'package:playx_3d_scene/models/scene/indirect_light/ktx_indirect_light.dart';
import 'package:playx_3d_scene/models/scene/light/light.dart';
import 'package:playx_3d_scene/models/scene/light/light_type.dart';
import 'package:playx_3d_scene/models/scene/material/material.dart';
import 'package:playx_3d_scene/models/scene/material/material_paramater.dart';
import 'package:playx_3d_scene/models/scene/material/material_type.dart';
import 'package:playx_3d_scene/models/scene/material/texture/enums/mag_filter.dart';
import 'package:playx_3d_scene/models/scene/material/texture/enums/min_filter.dart';
import 'package:playx_3d_scene/models/scene/material/texture/enums/texture_type.dart';
import 'package:playx_3d_scene/models/scene/material/texture/enums/wrap_mode.dart';
import 'package:playx_3d_scene/models/scene/material/texture/texture.dart';
import 'package:playx_3d_scene/models/scene/material/texture/texture_sampler.dart';
import 'package:playx_3d_scene/models/scene/scene.dart';
import 'package:playx_3d_scene/models/scene/skybox/colored_skybox.dart';
import 'package:playx_3d_scene/models/scene/skybox/hdr_skybox.dart';
import 'package:playx_3d_scene/models/scene/skybox/ktx_skybox.dart';
import 'package:playx_3d_scene/models/scene/skybox/skybox.dart';
import 'package:playx_3d_scene/models/shapes/cube.dart';
import 'package:playx_3d_scene/models/shapes/plane.dart';
import 'package:playx_3d_scene/models/shapes/shape.dart';
import 'package:playx_3d_scene/models/shapes/sphere.dart';
import 'package:playx_3d_scene/models/state/model_state.dart';
import 'package:playx_3d_scene/models/state/scene_state.dart';
import 'package:playx_3d_scene/models/state/shape_state.dart';
import 'package:playx_3d_scene/utils/result.dart';
import 'package:playx_3d_scene/utils/utils.dart';
import 'package:playx_3d_scene/view/playx_3d_scene.dart';