jPCT - a 3d engine for Java => Projects => Topic started by: Wojtek on August 09, 2011, 11:51:57 pm

Title: ObjectsEditor
Post by: Wojtek on August 09, 2011, 11:51:57 pm

Recently I was playing a little bit with JPCT and decided to create a visual editor to see how properties change are affecting rendered object.

As editor is quite helpful for me I thought it may be also helpful to other people.
Currently it does not have rich functionalities yet, however it allows to:
* modify environment properties like ambient light, background etc
* add multiple lights to the environment
* add multiple primitive elements (from Primitives class) to scene
* add rectangular billboard objects to scene
* import 3ds objects and add them to scene
* save/load environment properties
* save/load composed object
* define basic object properties (textures, color, lighting, geometry, shader etc)

Editor always works on compiled objects, so I have not added any properties that cannot be applied to compiled object.

Regarding to current limitations:
* it is not possible to save object in format that could be used later to import it in other application - currently it is only possible to watch effect and replay it by applying the same changes in other application
* I have problem with removing textures from Object3D - I have not found any method in JPCT to reset object texture information
* I do not know how to reset texture information in shader, so if one object has 2 textures assigned and the second one has only one, then second object will be also rendered with 2 textures
* I am not sure how to manage properly resize of GLCanvas. When window is resized, then framebuffer and canvas are recreated and all present objects are disappearing...
* Shaders are not linking properly on some machines
* GUI is very very simple.....

Ok, and there are some screenshots:

If anybody is interested, here is link to compressed program: http://www.wojtech.virthost.pl/oe/ObjectsEditor.zip (http://www.wojtech.virthost.pl/oe/ObjectsEditor.zip)

Title: Re: ObjectsEditor
Post by: EgonOlsen on August 10, 2011, 12:48:45 pm
Nice one. I'll add it to the projects page later, if you don't mind.
Title: Re: ObjectsEditor
Post by: Wojtek on August 10, 2011, 06:59:40 pm
Sure please do :)
Title: Re: ObjectsEditor
Post by: EgonOlsen on August 10, 2011, 09:32:41 pm
Title: Re: ObjectsEditor
Post by: Wojtek on August 24, 2011, 12:17:07 am
I have uploaded newer version of ObjectsEditor (link is the same): http://www.wojtech.virthost.pl/oe/ObjectsEditor.zip (http://www.wojtech.virthost.pl/oe/ObjectsEditor.zip)

- improved standard shader performance
- added glow shader
- added possibility to select texture blending mode
- added Compiled flag that allows to compile/decompile object
- added culling flag
Title: Re: ObjectsEditor
Post by: zammbi on March 04, 2012, 02:55:04 am
Doesn't seem to support Windows 64bit. Missing lwjgl 64bit versions?

Got it working had to add the missing lwjgl 64bit and update the lwjgl library to get it to work.