猫史档案馆


python求助

用户:勤奋的程序喵勤奋的程序喵查看:7 回复:3 评论:7 创建时间:2024-04-28T17:13:39


探月编程猫python的wood3d库怎么用?急急急


回复

上一页1 页 / 共 1下一页
红绿j哥红绿j哥

from STARMAP import * # 导入星图代码,请勿删除
miao.meow('喵喵')
miao.meow('miao')
miao.meow('喵!!')
miao.meow('miao喵呜')
miao.meow('喵喵')
miao.meow('喵喵喵喵喵喵')
miao.meow('喵呜')
miao.meow('miao!!!')

 

点赞0


评论


勤奋的程序喵勤奋的程序喵

?代码有问题吧

点赞0


评论


红绿j哥红绿j哥

from wood3d import *
import time
import math
import random

frame=1/30
scene = Scene()
camera = Camera(50, 1, 0.0001, 1000000)

camera.position.set(100, 160, 300)
stars = {}
renderer = WebGLRenderer({'antialias': True})
renderer.render(scene, camera)
# 添加环境光
ambient = AmbientLight(0x333333, 3)
scene.add(ambient)
# 添加点光源
point = PointLight(0xffffff, 4, 200)
scene.add(point)
# 添加控制器
controls = OrbitControls()
# controls.autoRotate = True

点赞0


评论