Library
Moderators: winston, another_commander
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: Library
New toys! Nice! How is performance affected in general by this?
Re: Library
Not at all .-) And I'm developing my Oolite related things on a 10 years old laptop with a weak CPU. It's still smooth and the FPS range doesn't change, so performance is not affected. The used framecallback doesn't do all updates in one turn though. On every call it just does one update. And the GPU is not in danger as well. It's 1 model with 12 subents (v 4 / f 2 for each). All are sharing the same shaders (~10 ALU), so shader-swapping seems to be no concern as well, but I'm using a pretty small set of AddOns while developing. Texture sizes are small as well (128px x 128px).
Sidenote: The more I think about it - a particle system could use the same approach. Maybe I'll do it next .-)
The only thing is the GC atm. I haven't looked at it closer yet, but I've seen an increase (not unexpected) when the map is active inflight.
Re: Library
Library v1.7 is online.
Changes:
- Added Lib_PAD.js.
- Added Lib_Starmap.js.
- Added Visual Effect for shields -"lib_shield", a 10 x 10 x 0.4 model (see Screenshot).
Changes:
- Added Lib_PAD.js.
- Added Lib_Starmap.js.
- Added Visual Effect for shields -"lib_shield", a 10 x 10 x 0.4 model (see Screenshot).
- montana05
- ---- E L I T E ----
- Posts: 1166
- Joined: Mon May 30, 2016 3:54 am
- Location: lurking in The Devils Triangle (G1)
Re: Library
Great, downloading now. I am very interested to have a look at your PAD features.
Scars remind us where we've been. They don't have to dictate where we're going.
Re: Library
Library v1.7.1 is online and now in the manager as well.
Changes:
- Fix for player got fined in Lib_PAD_Events.js.
- Added option to align right in scrToWidth.
Additionally Lib_MatFinder is available - a tool to work out materials entries. As this is only useful for developers it's not in the manager.
Lib_MatFinder (oxz, 28.1 KB)
Changes:
- Fix for player got fined in Lib_PAD_Events.js.
- Added option to align right in scrToWidth.
Additionally Lib_MatFinder is available - a tool to work out materials entries. As this is only useful for developers it's not in the manager.
Lib_MatFinder (oxz, 28.1 KB)
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: Library
Woah! Nice! Just one thing: In the description of the material properties inside missiontext, it should be mentioned somewhere that shininess is NOT recognized in Oolite 1.88, UNLESS you edit the default shader and set the lighting model to new Blinn-Phong. In the default GGX specular that we use, only gloss is relevant.Svengali wrote: ↑Mon Nov 19, 2018 3:24 pmAdditionally Lib_MatFinder is available - a tool to work out materials entries. As this is only useful for developers it's not in the manager.
Lib_MatFinder (oxz, 28.1 KB)
Edit: It looks like it can't read shader materials. It would be nice if that were possible.
Re: Library
Thanks, a_c. I'll add this for the next round.another_commander wrote: ↑Mon Nov 19, 2018 4:14 pmWoah! Nice! Just one thing: In the description of the material properties inside missiontext, it should be mentioned somewhere that shininess is NOT recognized in Oolite 1.88, UNLESS you edit the default shader and set the lighting model to new Blinn-Phong. In the default GGX specular that we use, only gloss is relevant.
Yes, it only works with the plain materials thing atm, because I wrote it to migrate from custom shaders to the default shader (as much as possible). Reason is that shader swapping is a 1st class performance killer and getting rid of a few custom shaders is surely a good thing. The tool also disables shaders in use to force use of Oolites default shader, when the model gets shown on the main screens. It shows the shadered versions though when you can enter values. This is simply to show the difference between both version to give users a chance to get your material as close as possible to the 'original' version.another_commander wrote: ↑Mon Nov 19, 2018 4:14 pmEdit: It looks like it can't read shader materials. It would be nice if that were possible.
But this is only the first step for this tool. The idea for the next versions is to work out ways to handle
a) shader handling inclusive vs+fs shader, textures and uniforms,
b) give users a way to find and set positions and orientations of subentities,
c) find and set positions, colors, etc of flashers (this should be easy),
d) find and set positions and sizes of exhausts (this would need a custom shader),
e) find and set positions of weapon positions and aft_eject_position (this would need a custom shader).
:-) Some work, but I'd think it's all doable.
Re: Library
Lib_MatFinder will get a feature to visualize exhaust and weapon positions.
Unlike the old CCL_Matfinder no changes to scripts or shipdata declarations are necessary.
The positions can be altered easily and can be written to Latest.log. User can cycle through
already existing exhaust and weapon positions.
It's possible to add a size (corresponding to exhaust scale for x and y) to visualize exhausts positions.
Unlike the old CCL_Matfinder no changes to scripts or shipdata declarations are necessary.
The positions can be altered easily and can be written to Latest.log. User can cycle through
already existing exhaust and weapon positions.
It's possible to add a size (corresponding to exhaust scale for x and y) to visualize exhausts positions.
- montana05
- ---- E L I T E ----
- Posts: 1166
- Joined: Mon May 30, 2016 3:54 am
- Location: lurking in The Devils Triangle (G1)
Re: Library
Amazing, will it work for multiple weapons and external dependencies (turrets for example) as well ?
Scars remind us where we've been. They don't have to dictate where we're going.
- montana05
- ---- E L I T E ----
- Posts: 1166
- Joined: Mon May 30, 2016 3:54 am
- Location: lurking in The Devils Triangle (G1)
Re: Library
Finally I had some time to check Lib_MatFinder. My personal first impression just need one word: great.
I probably missed something but I am having some slight problems with the navigation, for example a search function so I don't need to scroll 190+ pages to find a specific ship model and a zoom / move feature so small ships could be centered and not disappear under the text anymore.
I probably missed something but I am having some slight problems with the navigation, for example a search function so I don't need to scroll 190+ pages to find a specific ship model and a zoom / move feature so small ships could be centered and not disappear under the text anymore.
Scars remind us where we've been. They don't have to dictate where we're going.
Re: Library
Search function. Yep. I'll implement it. And move/zoom would be possible, but still a tedious thing to use. I've talked with a_c already and maybe...montana05 wrote: ↑Wed Dec 19, 2018 12:30 pmI probably missed something but I am having some slight problems with the navigation, for example a search function so I don't need to scroll 190+ pages to find a specific ship model and a zoom / move feature so small ships could be centered and not disappear under the text anymore.
- montana05
- ---- E L I T E ----
- Posts: 1166
- Joined: Mon May 30, 2016 3:54 am
- Location: lurking in The Devils Triangle (G1)
Re: Library
Thanks in advance, I am probably just spoiled by Gallery.OXP where all this features work well most of the time.Svengali wrote: ↑Thu Dec 20, 2018 9:57 pmSearch function. Yep. I'll implement it. And move/zoom would be possible, but still a tedious thing to use. I've talked with a_c already and maybe...montana05 wrote: ↑Wed Dec 19, 2018 12:30 pmI probably missed something but I am having some slight problems with the navigation, for example a search function so I don't need to scroll 190+ pages to find a specific ship model and a zoom / move feature so small ships could be centered and not disappear under the text anymore.
Scars remind us where we've been. They don't have to dictate where we're going.