Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ModelConverter

A converter class from glTF2 model to Rhodonite Native data

Hierarchy

  • ModelConverter

Index

Constructors

Methods

  • __getGeometryFromDracoBuffer(draco: any, decoder: any, arrayBuffer: ArrayBuffer): any
  • __getIndicesFromDraco(draco: any, decoder: any, dracoGeometry: any, triangleStripDrawMode: boolean): undefined | Uint32Array
  • __makeOutputSrgb(gltfModel: RnM2): undefined | boolean
  • __needParameterInitialization(materialJson: RnM2Material, materialTypeName: string): boolean
  • __needResizeToPowerOfTwoOnWebGl1(textureOption: any): boolean
  • __normalizeTypedArrayToFloat32Array(dataViewMethod: string, numberArray: number[] | TypedArray): Float32Array
  • __rewrapWithTypedArray(typedArrayClass: TypedArrayConstructor, uint8Array: Uint8Array, byteOffset: number, length: number): Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array
  • __sizeIsPowerOfTwo(image: HTMLImageElement): boolean
  • __takeRnBufferViewAndRnAccessorForDraco(accessor: RnM2Accessor, numOfAttributes: number, compositionNum: number, rnBuffer: Buffer): Accessor
  • __useNormalTexture(gltfModel: RnM2): boolean
  • _checkRnGltfLoaderOptionsExist(gltfModel: RnM2): boolean
  • _createTexture(texture: RnM2Texture, gltfModel: RnM2, __namedParameters?: { autoDetectTransparency: undefined | boolean }): Texture
  • _isSystemLittleEndian(): boolean
  • _readBinaryFromAccessorAndSetItToAccessorExtras(accessor: RnM2Accessor): Float32Array
  • _setupCamera(gltfModel: RnM2): void
  • setDefaultTextures(material: Material, gltfModel: RnM2): void

Generated using TypeDoc