my panda3d scene editor

This is my own panda3d scene editor.

requires panda3d 1.7.x and cegui 7.x

I’m still learning so my code isn’t elegant… but some of you could find my work interesting.

DOWNLOAD: localhostr.com/file/ktvojat/P3DE.zip

DISCALIMER: I take no responsibility for bad language in code comments

Feature to add soon:

  • Export scene
  • Import scene with python module and tools

Hi, it doesn’t start on my PC. :frowning: I receive:

Traceback (most recent call last):
  File "main.py", line 11, in <module>
    from gui import *
  File "/.../P3DE/gui.py", line 4, in <module>
    import sys, os, string, PyCEGUI
ImportError: No module named PyCEGUI

Anyway, some words about your deployment.

You shouldn’t put useless files inside your package. pyc files, log files, bak files, komodo files, …

Stick with a clear nomenclature. I would expect to find project information in files named like README, INSTALL, AUTHORS, LICENSE, CHANGELOG, …

If you want to distribute “only” the source version, write an installation guide (a guide for the installation of dependencies).

But, to be honest, I think you’d better deploy even a p3d version of your editor, too.

Put some screenshots of your work here, this will promote your work better.

What’s the license? If it’s open source, would you mind putting it into a version control system on sourceforge or the like? this way we could browse the code without downloading anything and the development process would be more transparent.

Gonna throw a look after a response.

Thanks in advance.

It looks like the OP author’s software uses PyCEGUI, which you can get from:

http://pypi.python.org/pypi/PyCEGUI/0.7.5/

It’s licensed under the MIT license.

So it’s opensource :slight_smile:

For the code yeah I know it’s so messy but I’m dealing with graduation exams so I’ll fix later for sure.

Anyway your error is because you need an installation of PyCEGUI in your system, as I wrote in the first post.

for curious people code.google.com/p/p3deditor/

Edit: update and screenshot:
ubuntuone.com/p/1AUA/

A few questions on this script

#1 how do I add my own egg files
#2 is there anyway of determining distance
#3 why is everything in the examples bright white?

Thanks

Hi I’ve installed PyCEGUI and downloaded your code. Executing main.py gave no response at all. I’ve run it with the console and executing it with panda’s ppython gives this result:

ImportError: No module named PyQt4.QtCore

I also ran it with my default python with the same result.
Using pythonw had no effect whatsoever: No error message but also nothing else.

I’m using windows 7 64bit. I’ve installed a running copy of panda3d which works great and python 3.2 as well as python 2.7. The installer of PyCEGUI detected python 2.7 on my pythonpath and I installed PyCEGUI in the directory the installer suggested.

What can I do?

Hi,

Did you install pyQt4?
http://www.riverbankcomputing.co.uk/software/pyqt/download

The TXT file that came with it said

"This iz my editor that creates panda3d scenes.

Since I’m such a noob coding I really don’t want to implement many GUI elements.
So what? How tha f**k do we use this “thing”?

Very simple! RRRRage shortcut!!

Tab - Toggle view from scene exploring to edit mode

Scene exploring mode:

Mouse - move camera
W - Move camera
A - Move camera
S - Move camera
D - Move camera

T - take off
G - land

EditMode:
Mouse - de/selection
S - Scale objects in all three dimensions
X - Move object along the x axis
Y - Move object along the y axis
Z - Move object along the z axis
H - Rotate object heading
P - Rotate object pitching
R - Rotate object rolling
D - Duplicate objects (to implement)
W - Set wireframe attribute (to implement)

L - Open submode AddLight
P - point light
D - directional light (to implement)
A - ambient light (to implement)

E - Erase selected objects"

“Very simple! RRRRage shortcut!!” means nothing to me at all. In order to use “TAB” to switch to edit mode from game mode, one has to be able to start game mode first. There does not seem to be a way to do that.

A tool that no one can use is no tool at all.

This tool just does not work.

GUI EXE should have been included in the package.

Sorry.

Hello! Thank you for your interest :slight_smile:
but that version is really outdated, it depended on CEGUI (pyCEGUI) and it was a mix between pycegui and qt4.

Please, use this mercurial repository as reference: p3deditor.googlecode.com

This contains the latest version which erased the dependency on pyCEGUI and works with pyQT and panda3d.
As you can see, pyQT is way more powerful, flexible and easy to set up on your installation (cegui needed a scratch compile). I’m recently back to work on this so there are possible updates in the near future :slight_smile:
If you find malfunctioning and/or experience any problem feel free to reply to this thread or open a ticket on google code. :slight_smile:

Thank you for your interest,
Claudio