问题标签 [panda3d]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - Cursor position stops working after cursor leaves window
I a pretty new to panda3d, and I came across a problem that I have no idea how to fix. I am trying to control the camera using the cursor's location, but every time it the cursor leaves the application window, and reenters it the program stops recording the cursor's position. Is this a task problem? I put the function's that receive the cursor position and control the camera into taskmgr. That section of my code is below.
Thanks in advance.
python - Panda3d Blender 创建的房间无法正确显示
编辑:不知道我做了什么,但它仍然工作墙壁不能正确显示......
使用 Panda3d 和 python,我在搅拌机中创建了一个带有几个对象的小房间,并修改了 Panda3d 的一个示例,它工作了一段时间,但出现了问题(墙壁不显示等)。
这个例子在两面墙上显示了轻微的效果
https://dl.dropboxusercontent.com/u/12781104/blender_glitch.zip
然而,这个例子根本不起作用,当我改变墙壁和物体的颜色时,它全是黑色的
https://dl.dropboxusercontent.com/u/12781104/BlenderNotWorking.zip
python - PyCharm 中 Panda3d 的自动补全
有人使用 PyCharn 自动完成 Panda3d 库吗?PyCharm 似乎无法自动为这个库创建 Python 骨架,所以如果我至少可以在 PyCharm 中手动定义这些存根,我也会很高兴。但我还没有找到解决方案。
任何想法如何告诉 PyCharm “二进制”库中有哪些 Python 模块和类?
python - Panda3d 模型旋转
我有一个基于教程编写的程序:
我想要类似的东西:
self.environ.rotate(要旋转的轴,以度为单位)
我在谷歌上进行了广泛的搜索,唯一看起来像它会起作用的是:http: //www.panda3d.org/manual/index.php/Position,_Rotation_and_Scale_Intervals 你猜怎么着!它没有。您能否指点我一个深入解释 Hpr 的网站,或者只是在这里解释一下?谢谢。
python - Python 显示 .ply、.stl、.igs、.step 图像
我正在寻找一种在任何类型的 python 窗口中显示 .ply、.stl、.step 或 .igs 的方法。这个想法是我的学生正在移动一个拿着零件的机器人,我想展示那个零件也在 3d 中移动。
上面列出的格式是我可以制作的。
我探索过 Panda3D、OPenGL、Vpython 和 Blender。我不使用搅拌机的唯一原因是因为我只想要一个窗口和实时。
谢谢您的帮助。
如果你有很棒的例子。
c++ - 在 Panda3D 中实现我自己的镜头
背景
我正在尝试实现一个高度非线性的镜头,以在 Panda3D 中为复杂的投影设置进行镜头失真。我想按照这种方法使用这个实现。
问题
我可以用 Python 来做吗(如果可以,怎么做,我做错了什么)还是必须用 C++ 来做(如果可以,我从哪里开始)?
迄今为止的尝试
我试过子类化Lens,但是如果我让我的子类调用超级构造函数(或者根本不覆盖构造函数),我会收到一个错误:
如果我不调用超级构造函数 class isinstance(Lens)
,但 Panda3D 代码无法识别:
结果TypeError: LensNode.set_lens() argument 1 must be Lens, not MyLens
。
如果我PerspectiveLens
改为子类,我可以调用超级构造函数并将我的类的实例传递给setLens()
,但它的任何重写方法都不会被调用,并且渲染的场景看起来像是用 stock 渲染的PerspectiveLens
。
c++ - 无法打开 lib python。熊猫3D项目。VS
我刚刚用 Panda3D 开始了一个 C++ 项目。(视觉工作室 2010)
使用简单的 HelloWorld,我添加了路径等。没有编译错误,除了:
刚刚出现错误:
我不知道如何解决它。
请帮忙!
谢谢 !
panda3d - Models/background in Panda3D
When I load any egg file as a model in Panda3D, the background's colour remains white. The colours of the texture/background doesn't appear even on using lights. Why does this happen? Also, from where can I find egg files to use as models/actors in Panda3D ? I've tried converting obj file to egg file and exporting 3ds/max files as obj too.
python - 如何使用 Twisted 连接两个程序
我在 Twisted 中有一个需要从 echoclient 获取输入的 echoserver。echocient 是一个 GUI (Panda3D)。单击按钮时,客户端仅发送一条短消息。
所以我有消息要在不规则的时间发送(仅在单击按钮时)。
如何建立永久连接(reactor.run() 已在客户端程序开始时启动)并发送消息。
我不想在 EchoClient/connectionMade 中编写轮询机制。我看到了一个 gtk+ 的例子,但不能把它翻译成 Panda。怎么走。下面的代码根本不起作用,但让您了解我想要什么(基本上是永久连接,有时用户在按下按钮时会发送一些东西)。
python - Python:Toontown 的服务器模拟器
好的,所以我正在为迪士尼现已关闭的游戏 Toontown Online 制作服务器,但我在添加此代码后遇到了问题。游戏需要这部分,它对游戏至关重要,没有它,游戏将不发送客户端,“AvatarChooser.enter”,玩家将无法创建他们的角色!如果需要,我会放出更多的代码,但现在是这样。
我收到此错误:
TypeError: __ init __() 正好需要 2 个参数(1 个给定)
任何帮助将不胜感激!
错误发生在: