Author Topic: ObjectsEditor  (Read 16300 times)

Offline Wojtek

  • int
  • **
  • Posts: 62
    • View Profile
ObjectsEditor
« on: August 09, 2011, 11:51:57 pm »
Hello,

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


Thanks,
Wojtek
« Last Edit: August 09, 2011, 11:55:35 pm by Wojtek »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12298
    • View Profile
    • http://www.jpct.net
Re: ObjectsEditor
« Reply #1 on: August 10, 2011, 12:48:45 pm »
Nice one. I'll add it to the projects page later, if you don't mind.

Offline Wojtek

  • int
  • **
  • Posts: 62
    • View Profile
Re: ObjectsEditor
« Reply #2 on: August 10, 2011, 06:59:40 pm »
Sure please do :)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12298
    • View Profile
    • http://www.jpct.net
Re: ObjectsEditor
« Reply #3 on: August 10, 2011, 09:32:41 pm »
Added!

Offline Wojtek

  • int
  • **
  • Posts: 62
    • View Profile
Re: ObjectsEditor
« Reply #4 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

Changes:
- 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

Offline zammbi

  • float
  • ****
  • Posts: 361
    • View Profile
Re: ObjectsEditor
« Reply #5 on: March 04, 2012, 02:55:04 am »
Doesn't seem to support Windows 64bit. Missing lwjgl 64bit versions?

Edit:
Got it working had to add the missing lwjgl 64bit and update the lwjgl library to get it to work.
« Last Edit: March 04, 2012, 03:04:29 am by zammbi »