bx-865-apps #1
|
@ -3,7 +3,7 @@ import { IMAGE_URL, SERVER_URL, } from '../../constants'
|
||||||
import { onMounted, onUnmounted, reactive, ref } from 'vue';
|
import { onMounted, onUnmounted, reactive, ref } from 'vue';
|
||||||
import { Box3, Vector2, Vector3 } from 'three';
|
import { Box3, Vector2, Vector3 } from 'three';
|
||||||
|
|
||||||
import { useTresContext } from '@tresjs/core';
|
import { useTresContext, useSeek } from '@tresjs/core';
|
||||||
import { useGLTF } from '@tresjs/cientos'
|
import { useGLTF } from '@tresjs/cientos'
|
||||||
|
|
||||||
const max_size = reactive({
|
const max_size = reactive({
|
||||||
|
@ -43,6 +43,7 @@ function shadows_and_pos(scene: any) {
|
||||||
const models = ref<model3DType[]>([])
|
const models = ref<model3DType[]>([])
|
||||||
const clickable = ref<clickableAreaType[]>([])
|
const clickable = ref<clickableAreaType[]>([])
|
||||||
const { controls, raycaster, camera, scene } = useTresContext()
|
const { controls, raycaster, camera, scene } = useTresContext()
|
||||||
|
const { seekAllByName } = useSeek()
|
||||||
|
|
||||||
const loadModels = async () => {
|
const loadModels = async () => {
|
||||||
const res = await fetch(`${SERVER_URL}/api/obj/element/?parent__isnull=True`)
|
const res = await fetch(`${SERVER_URL}/api/obj/element/?parent__isnull=True`)
|
||||||
|
|
Loading…
Reference in New Issue