[2.1] Hlms editor

A place to show off your latest screenshots and for people to comment on them. Only start a new thread here if you have some nice images to show off!
User avatar
spookyboo
Silver Sponsor
Silver Sponsor
Posts: 1141
Joined: Tue Jul 06, 2004 5:57 am
x 151
Contact:

Re: [2.1] Hlms editor

Post by spookyboo »

Working on a new feature. It becomes possible to hoover over submeshes (see green pillars) and assign hlms materials to them. The (V2) mesh with the new material names can be saved (and the materials can be exported to a zip file). The image below is a (bit poor) example of the sibenik.mesh, but you get the idea. I need some better PBS materials...

Image
User avatar
GlowingPotato
Goblin
Posts: 211
Joined: Wed May 08, 2013 2:58 pm
x 10

Re: [2.1] Hlms editor

Post by GlowingPotato »

Super!

Every time you update this project, you put a smile in my face.

:D :D :D :D :D :D
User avatar
AshMcConnell
Silver Sponsor
Silver Sponsor
Posts: 605
Joined: Fri Dec 14, 2007 11:44 am
Location: Northern Ireland
x 16
Contact:

Re: [2.1] Hlms editor

Post by AshMcConnell »

Thanks spookyboo!

The HLMS editor is great. I am not quite knowledgeable enough to use it properly yet, but it looks fantastic. Thanks for your hard work!
User avatar
spookyboo
Silver Sponsor
Silver Sponsor
Posts: 1141
Joined: Tue Jul 06, 2004 5:57 am
x 151
Contact:

Re: [2.1] Hlms editor

Post by spookyboo »

Editor is updated. Grab the installer at https://github.com/spookyboo/HLMSEditor ... e?raw=true (first uninstall the old version). Changelog:
:arrow: new button added to reset the position/orientation of the camera
:arrow: new button added to switch modes: Off = selected material is assigned to the whole mesh; On = selected material can be assigned to the specific submesh (hoover with the mouse and double click)
Note, that materials are not automatically set in the mesh anymore. You always have to double click on the mesh to set the material (in both modes)
:arrow: Menu item to save the mesh (including materialnames in submeshes)
:arrow: Config screen (still contains a few items)
:arrow: Fixed the annoying 'jumping' of the screens. Beware that the aspect ratio of the renderwindow is fixed now an can only be resized by dragging left-right.

Note, that the editor is pretty stable, but I've only tested it on one computer.
Next things on my todo is updating the factsheet. After that, I probably look into a way to import other 3d models
User avatar
AshMcConnell
Silver Sponsor
Silver Sponsor
Posts: 605
Joined: Fri Dec 14, 2007 11:44 am
Location: Northern Ireland
x 16
Contact:

Re: [2.1] Hlms editor

Post by AshMcConnell »

Hi Spooky,

Is it possible to specify a env / reflection map? I thought it would be in the texture type dropdown.

Thanks!
Ash
User avatar
spookyboo
Silver Sponsor
Silver Sponsor
Posts: 1141
Joined: Tue Jul 06, 2004 5:57 am
x 151
Contact:

Re: [2.1] Hlms editor

Post by spookyboo »

env / reflection map is on my todo list. First trying to get the application running again with the latest Ogre repo :( and then importing other models (fbx, etc...)
User avatar
AshMcConnell
Silver Sponsor
Silver Sponsor
Posts: 605
Joined: Fri Dec 14, 2007 11:44 am
Location: Northern Ireland
x 16
Contact:

Re: [2.1] Hlms editor

Post by AshMcConnell »

Ok, cool :)

Thanks!
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5292
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1278
Contact:

Re: [2.1] Hlms editor

Post by dark_sylinc »

@spookyboo
We just merged a PR that added "Diffuse Background". When diffuse textures are not present, this colour will be used as "background" and replaces the diffuse texture's with a solid colour (mostly useful for the detail maps). The diffuse colour "kD" is later multiplied against the final result of mixing background diffuse with the detail maps.

In other words the UI should show the diffuse bg colour while no diffuse texture is set, and hide when a diffuse texture is applied.

It's basically needed to achieve this:
http://www.ogre3d.org/forums/viewtopic.php?f=25&t=88740
User avatar
spookyboo
Silver Sponsor
Silver Sponsor
Posts: 1141
Joined: Tue Jul 06, 2004 5:57 am
x 151
Contact:

Re: [2.1] Hlms editor

Post by spookyboo »

I will update with the latest commit and take a look. I also have to add the two sided shadow patch and still working on importing other models (already possible to import fbx, obj, dae, ... and converting to v2 meshes... yeah). My todo list keeps growing :D
Thanks!
User avatar
spookyboo
Silver Sponsor
Silver Sponsor
Posts: 1141
Joined: Tue Jul 06, 2004 5:57 am
x 151
Contact:

Re: [2.1] Hlms editor

Post by spookyboo »

Editor is updated. Grab the installer at https://github.com/spookyboo/HLMSEditor ... e?raw=true. Changelog:

:arrow: Import other 3D models and convert them to V2 meshes (I tried Ogre .xml, .obj, .fbx, .x). Note, that this currently only concerns static models and the plugin needs some more tlc, but fore me it is enough for the moment. Animations/bones is also not implemented yet (volunteers? See https://github.com/spookyboo/AssImpPlugin)

Next steps:
:arrow: Upgrade to the latest Ogre version and implement its new features (two-sided lighting and background colour).
:arrow: In addition I will look into optimize materials. Eg. If a mesh uses multiple materials, an 'Optimize' option combines similar datablocks into one, pack textures (atlas textures), rearranges uv's in the mesh, compress textures, convert format, ... Preferably with just one button.
User avatar
devxkh
Halfling
Posts: 84
Joined: Tue Aug 02, 2016 6:07 pm
Location: Germany
x 12

Re: [2.1] Hlms editor

Post by devxkh »

seems like i'm too stupid :mrgreen:
How can i apply the material to the model`?
Pushing the "generate Hlms" button doesnt work.
Image
My little OGRE engine -> FrankE WIP
User avatar
spookyboo
Silver Sponsor
Silver Sponsor
Posts: 1141
Joined: Tue Jul 06, 2004 5:57 am
x 151
Contact:

Re: [2.1] Hlms editor

Post by spookyboo »

Double click on the model.
If you want to apply the material to a particular submesh, enable submesh selection (pushing the button with the red cross), hoover over a submesh and double click.
I am not sure whether double clicking the model is a good idea, but I don't see an easy / fast alternative.
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5292
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1278
Contact:

Re: [2.1] Hlms editor

Post by dark_sylinc »

spookyboo wrote: :arrow: In addition I will look into optimize materials. Eg. If a mesh uses multiple materials, an 'Optimize' option combines similar datablocks into one, pack textures (atlas textures), rearranges uv's in the mesh, compress textures, convert format, ... Preferably with just one button.
Just a note regarding atlas textures:
  • GLES 2 is the only API that will benefit from texture atlases. We have texture arrays for the rest. Perhaps an exception is if the textures are too uneven (i.e. texture arrays requires all textures to be of the same size, while texture atlases can pack together textures of different sizes).
  • The interface is not there, but the idea is that it would be possible to specify a list of textures that should be loaded together (i.e. into the same array) through a texture.json file or something like that. This way the user can ensure textures that are likely going to be used together (i.e. level textures) end up in the same array (instead of being in different arrays because there's useless junk that got loaded in the middle)
User avatar
spookyboo
Silver Sponsor
Silver Sponsor
Posts: 1141
Joined: Tue Jul 06, 2004 5:57 am
x 151
Contact:

Re: [2.1] Hlms editor

Post by spookyboo »

GLES 2 is the only API that will benefit from texture atlases
Ah. I didn' t know that
User avatar
GlowingPotato
Goblin
Posts: 211
Joined: Wed May 08, 2013 2:58 pm
x 10

Re: [2.1] Hlms editor

Post by GlowingPotato »

Hi spooky,

You mentioned that I would need KDE plugin to display TGA thumbnails...

Could you elaborate a bit on this subject ? Would me possible for me to display TGA thumbnails without the need to recompile you project?
User avatar
spookyboo
Silver Sponsor
Silver Sponsor
Posts: 1141
Joined: Tue Jul 06, 2004 5:57 am
x 151
Contact:

Re: [2.1] Hlms editor

Post by spookyboo »

It annoys me also that I don't see TGA's. I have to investigate a bit more, because I don't know in detail what to do. It may or may not involve recompilation. This weekend I'm busy with cubemaps/skyboxes, auto-generation of the hlms and some other things. After that, I will look into it.
User avatar
GlowingPotato
Goblin
Posts: 211
Joined: Wed May 08, 2013 2:58 pm
x 10

Re: [2.1] Hlms editor

Post by GlowingPotato »

Thanks a lot!
User avatar
spookyboo
Silver Sponsor
Silver Sponsor
Posts: 1141
Joined: Tue Jul 06, 2004 5:57 am
x 151
Contact:

Re: [2.1] Hlms editor

Post by spookyboo »

Some updates again.
:arrow: Cubemap skybox support (a few skyboxes are added, but you can also add your own (only cubemaps))
:arrow: Automatic generation of materials (you don't have to press the cog anymore after everytime change. Materials are updated automatically)
:arrow: Two-sided lighting added
:arrow: Background colour added for PBS in case there is no diffuse map
:arrow: Context menu added (right-click) when you are in the render window (this is currently the only way to display a skybox)

As usual you can download the binaries on https://github.com/spookyboo/HLMSEditor ... e?raw=true
If you encounter any bugs, please let me know.
User avatar
AshMcConnell
Silver Sponsor
Silver Sponsor
Posts: 605
Joined: Fri Dec 14, 2007 11:44 am
Location: Northern Ireland
x 16
Contact:

Re: [2.1] Hlms editor

Post by AshMcConnell »

Awesome! Thanks spooky!
User avatar
spookyboo
Silver Sponsor
Silver Sponsor
Posts: 1141
Joined: Tue Jul 06, 2004 5:57 am
x 151
Contact:

Re: [2.1] Hlms editor

Post by spookyboo »

@GlowingPotato
I just updated the setup file and added support for other image formats in Qt. I wasn't aware that dds and tga did not work at all on machines that didn't have Qt installed. On my development machine some dds files such as cubemaps are not shown in the editor and I thought you were referring to that. Turned out that also my laptop (which doesn't have Qt) dds and tga weren't supported. I also added a check to the editor that displays in the Ogre.log which image formats are supported by Qt.
Can you check whether it works?
User avatar
GlowingPotato
Goblin
Posts: 211
Joined: Wed May 08, 2013 2:58 pm
x 10

Re: [2.1] Hlms editor

Post by GlowingPotato »

It does work!!!

Its working!!!! :D :D :D :D :D :D :D :D
User avatar
AshMcConnell
Silver Sponsor
Silver Sponsor
Posts: 605
Joined: Fri Dec 14, 2007 11:44 am
Location: Northern Ireland
x 16
Contact:

Re: [2.1] Hlms editor

Post by AshMcConnell »

GlowingPotato wrote:It does work!!!

Its working!!!! :D :D :D :D :D :D :D :D
LOL, are you glad it worked? :D
User avatar
AshMcConnell
Silver Sponsor
Silver Sponsor
Posts: 605
Joined: Fri Dec 14, 2007 11:44 am
Location: Northern Ireland
x 16
Contact:

Re: [2.1] Hlms editor

Post by AshMcConnell »

Is it possible to rotate the object relative to the skybox?

Image
User avatar
spookyboo
Silver Sponsor
Silver Sponsor
Posts: 1141
Joined: Tue Jul 06, 2004 5:57 am
x 151
Contact:

Re: [2.1] Hlms editor

Post by spookyboo »

No, currently not. I put it on my todo
User avatar
AshMcConnell
Silver Sponsor
Silver Sponsor
Posts: 605
Joined: Fri Dec 14, 2007 11:44 am
Location: Northern Ireland
x 16
Contact:

Re: [2.1] Hlms editor

Post by AshMcConnell »

Thanks!
Post Reply