my panda3d scene editor

Return to Code Snippets

my panda3d scene editor

Postby SniZzo92 » Fri Apr 29, 2011 3:14 pm

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: http://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
apathic.
User avatar
SniZzo92
 
Posts: 53
Joined: Thu Aug 14, 2008 10:25 am
Location: Udine, Italy

Postby flavio » Sat Apr 30, 2011 2:55 am

Hi, it doesn't start on my PC. :( I receive:
Code: Select all
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.
User avatar
flavio
 
Posts: 543
Joined: Fri Apr 16, 2010 12:45 pm
Location: Rome, Italy

Postby Nemesis#13 » Sat Apr 30, 2011 3:36 pm

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.
User avatar
Nemesis#13
 
Posts: 1041
Joined: Mon Aug 04, 2008 8:09 pm
Location: Germany

Postby DangerOnTheRanger » Tue May 03, 2011 5:51 pm

yaio wrote:Hi, it doesn't start on my PC. :( I receive:
Code: Select all
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



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

http://pypi.python.org/pypi/PyCEGUI/0.7.5/
Last edited by DangerOnTheRanger on Tue Nov 22, 2011 1:26 pm, edited 2 times in total.
User avatar
DangerOnTheRanger
 
Posts: 240
Joined: Fri Aug 27, 2010 4:59 pm

Postby SniZzo92 » Tue May 10, 2011 9:51 am

It's licensed under the MIT license.

So it's opensource :)

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.
apathic.
User avatar
SniZzo92
 
Posts: 53
Joined: Thu Aug 14, 2008 10:25 am
Location: Udine, Italy

Postby SniZzo92 » Thu Aug 04, 2011 8:16 pm

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

Edit: update and screenshot:
http://ubuntuone.com/p/1AUA/
apathic.
User avatar
SniZzo92
 
Posts: 53
Joined: Thu Aug 14, 2008 10:25 am
Location: Udine, Italy

Postby Shaba1 » Tue Oct 11, 2011 12:16 am

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
Shaba1
 
Posts: 195
Joined: Sat Sep 24, 2005 1:26 pm

Postby zwillenguru » Tue Nov 22, 2011 5:12 am

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:
Code: Select all
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?
zwillenguru
 
Posts: 12
Joined: Mon Nov 21, 2011 10:21 am

Postby shimrod » Mon Nov 28, 2011 6:21 am

shimrod
 
Posts: 308
Joined: Mon Dec 28, 2009 11:39 am

Just does not work

Postby Incenseman2003 » Tue Oct 23, 2012 5:50 pm

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.
Incenseman2003
 
Posts: 1
Joined: Tue Oct 23, 2012 5:38 pm

Postby SniZzo92 » Fri Feb 08, 2013 12:41 pm

Hello! Thank you for your interest :)
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: http://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 :)
If you find malfunctioning and/or experience any problem feel free to reply to this thread or open a ticket on google code. :)

Thank you for your interest,
Claudio
apathic.
User avatar
SniZzo92
 
Posts: 53
Joined: Thu Aug 14, 2008 10:25 am
Location: Udine, Italy


Return to Code Snippets

Who is online

Users browsing this forum: No registered users and 1 guest