Questions tagged [panda3d]

Panda3D is an open source 3D Engine originally developed, and still actively maintained, by the Walt Disney VR Studio. Additional development and support for the open source community is provided by the Entertainment Technology Center of Carnegie Mellon University.

Panda3D is a 3D engine: a library of subroutines for 3D rendering and game development. The library is C++ with a set of Python bindings. Game development with Panda3D usually consists of writing a Python or C++ program that controls the Panda3D library.

Panda was created for commercial game development, and its primary users are still commercial game developers. Because of this, Panda3D needs to emphasize four areas: power, speed, completeness, and error tolerance. Everyone knows what power and speed are. But completeness and error tolerance deserve some extra commentary.

Completeness means that Panda3D contains tons of unexciting but essential tools: scene graph browsing, performance monitoring, animation optimizers, and so forth. These things may not be sexy, and as a result, open-source engines often don't have them. But when you're serious about getting work done, and not just playing, these tools need to be there.

Error tolerance is about the fact that all game developers create bugs. When you do, you want your engine to give you a clear error message and help you find the mistake. Too many engines will just crash if you pass the wrong value to a function. Panda3D almost never crashes, and much code is dedicated to the problem of tracking and isolating errors.

Finally, to come back to power and speed: the best way to gauge Panda3D's capabilities is to take a look at the Sample Programs. These are short programs that demonstrate a sampling of Panda3D's capabilities. The screenshots have frame-rates in the upper-right corner, taken on a Radeon X700.

Panda3D was developed by Disney for their massively multiplayer online game, Toontown. It was released as free software in 2002. Panda3D is now developed jointly by Disney and Carnegie Mellon University's Entertainment Technology Center.

Links

187 questions
1
vote
1 answer

Error in panda3d : raise Exception("Attempt to spawn multiple ShowBase instances!") Exception: Attempt to spawn multiple ShowBase instances

I am using panda3d and have came across an error. I have been looking for an answer for a while now, but I can't find one. Here is my error: Known pipe types: CocoaGraphicsPipe (all display modules loaded.) <__main__.MyGame object at…
Ryan joshi
  • 31
  • 3
1
vote
0 answers

Is it possible to pass geometry to a geometry shader?

Is there a way to pass an array of vertex data from the cpu straight to a geometry shader? If i want to build a sphere inside a GS, I'd rather have a pre calculated array of points that I can access from within the shader instead of generating them…
Roman
  • 107
  • 7
1
vote
2 answers

Panda3D: TypeError: run() missing 1 required positional argument: 'self'

I'm running into some problems where it returns: TypeError: run() missing 1 required positional argument: 'self' Here is the Code: from direct.showbase.ShowBase import ShowBase class MyGame(ShowBase): def __init__(self): super.__init__() Game…
Alomoria
  • 39
  • 4
1
vote
1 answer

when would I use a collision solid consisting of the intersection of two spheres and two half-spaces?

In Panda3D, I've been learning a bit about the built-in physics engine and its collision detection features. I'm trying to understand the DSSolid collision object, which is mentioned in a table on the Collision Solids manual page without…
LarsH
  • 27,481
  • 8
  • 94
  • 152
1
vote
2 answers

Panda3d rendered window to numpy array

I was following this topic to try to get the buffer data from a camera and save it as a numpy array. Following the topic I reused this code: base.graphicsEngine.renderFrame() dr = base.camNode.getDisplayRegion(0) tex = dr.getScreenshot() data =…
Masa Hu
  • 127
  • 13
1
vote
0 answers

Could not load texture

What I want is to load a picture in the Panda3D, but it can't run for the reason of could not load the texture. I really don't know why for the code could run well in the other environment. def run(self): base.win.setClearColor((.49, .49, .49,…
llz
  • 11
  • 1
1
vote
1 answer

How to get 3D coordinates of a triangle on a Geodesic Dome using Python?

I want to generate a Geodesic Dome (sphere) with triangles using the panda3d engine. I have searched in python for a function to position my all triangles in 3d world (x,y and z) and rotation to create the sphere. For rotation i use function…
ilapasle
  • 349
  • 4
  • 16
1
vote
1 answer

Collision handeling in Panda3D with traverse()

I am new to Panda3d and I am using some of the 'roaming ralph' code to check for collisions: In the 'roaming ralph' code example that comes with panda3d, it says # Normally, we would have to call traverse() to check for collisions. #…
1
vote
1 answer

Generating depth map with panda3d

I need to generate test data for 3d reconstruction code. For this I decided to use panda3d. I am able to create simple app and see the scene. Now I need to create depth map for the scene, i.e. for each pixel on the screen I need to calculate depth,…
Stepan Yakovenko
  • 8,670
  • 28
  • 113
  • 206
1
vote
1 answer

Math formula for first person 3d game

I want to make a first person 3d game but I can't set the camera formula right. So I have a rotation: 0 to 359. Next the x,y coordinates, z remains the same. Camera rotation : 0 - front, 90 - left, 180 - back, 270 - right but I can adapt it What is…
Horatiu Jeflea
  • 7,256
  • 6
  • 38
  • 67
1
vote
1 answer

Load egg file in Panda3D in Jupyter Notebook

I'm trying to use Panda3D in a Jupyter Notebook, but I'm having problems loading a model (i.e. an .egg file). This snippet of code runs at the command line but not in a Jupyter Notebook: from direct.showbase.ShowBase import ShowBase from…
user3731622
  • 4,844
  • 8
  • 45
  • 84
1
vote
1 answer

Access vertices' positions of a rigged model after rotating its joint angle in Panda3D

Hi, everyone, I've run into a problem when manipulating a rigged mesh model in Panda3D. I loaded a mesh model which has an armature modifier consisting of two adjoint bones( one for the palm, one for a collection of four fingers, namely index,…
Hawk Rong
  • 165
  • 1
  • 9
1
vote
0 answers

Tensorflow MultiGPU coredump

I am trying to have a tower-style multi-gpu training with Tensorflow. I am roughly following the cifar10 multigpu tutorial https://github.com/tensorflow/models/blob/master/tutorials/image/cifar10/cifar10_multi_gpu_train.py So, I have made a resnet…
mkuse
  • 2,250
  • 4
  • 32
  • 61
1
vote
2 answers

Exit while-looped child process when parent process is exited?

I'm trying to close child process(which is doing while loop) when parent process is exited (Whenever parent process is clean-exit, forced-exit or exited because of exception) not to make child process a zombie process. I'm making a game that…
Lee M.U.
  • 123
  • 1
  • 12
1
vote
2 answers

Depth Texture in Panda3D

In Panda3D, I have the following code self.manager = FilterManager(base.win, base.cam) self.sceneTex = Texture("scene") self.depthTex = Texture("depth") self.quad = self.manager.renderSceneInto(colortex=self.sceneTex, depthtex =…
jameszhao00
  • 7,213
  • 15
  • 62
  • 112