
游戏
文章平均质量分 85
thu_yumeng
这个作者很懒,什么都没留下…
展开
-
panda3d配置,使用python IDE
想用python的IDE方便调试废话不多说直接代码:from sys import pathpath.append('D:\Panda3D-1.7.2')path.append('D:\Panda3D-1.7.2\\bin')from direct.showbase.ShowBase import ShowBaseclass MyApp(ShowBase):原创 2012-06-24 21:22:43 · 2440 阅读 · 0 评论 -
panda3d中Scene Graph的介绍
在计算机图形学中,需要用一些基本元素构成一个复杂的场景,因此需要一个数据结构scene graph来存储该场景中的元素的基本关系。每一条边代表两个基本元素之间的相对位置关系等,在一些引擎中scene graph将3d模型存储在线性表中。panda3d存储结构稍微复杂为树状结构,简单的说是自上而下的结构且无回边,即子节点的性质不能影响父节点的性质, panda3d中存储Scene Graph树节点的原创 2012-07-15 14:06:25 · 1479 阅读 · 0 评论 -
panda3d 根据collision detection(碰撞检测)实例探究Panda3d类组织结构
首先贴一段代码:from direct.showbase.ShowBase import ShowBasefrom panda3d.core import *import randomclass Application(ShowBase): def __init__(self): ShowBase.__init__(self) self原创 2012-08-03 17:13:49 · 1816 阅读 · 0 评论 -
panda3d attachNewNode的探究
首先看下attachNewNode的函数定义: NodePath attachNewNode(PandaNodenode, intsort, Threadcurrent_thread )注意attachNewNode函数返回的是NodePath是PandaNode的Handle,原创 2012-08-02 11:30:50 · 1345 阅读 · 0 评论 -
panda3d 解读Roaming Ralph程序
这里就不贴代码了,笔者根据自己阅读代码的过程流水账式的解读,主要便于自己之后的阅读,也希望给其他读者带来帮助。首先解读这段代码:import direct.directbase.DirectStart这是 from direct.showbase.ShowBase import ShowBase的简写,由panda3d的manual可以查到,而ShowBase是panda3d运行和渲染原创 2012-08-05 11:34:43 · 1062 阅读 · 1 评论 -
panda3d 解决ShowBase和DirectObject之间冲突的代码
话不多说,有需要的人自会看懂。###Contains the code to initialize the gamefrom direct.showbase.ShowBase import ShowBasefrom direct.showbase.DirectObject import DirectObjectfrom direct.task原创 2012-08-05 13:58:10 · 892 阅读 · 0 评论 -
panda3d 中导入image
http://www.panda3d.org/forums/viewtopic.php?t=11268转载 2012-08-09 16:59:06 · 974 阅读 · 2 评论