Jump to content

Hi There

Welcome to Klub Exile. If you happened to make your way to the site either from Lovers Lab or a Search on Google, we are glad you found us.  To unlock the entire site you will need to have a account registered.  Don't worry it is free but in the mean time you can read up on why we made the site and other little tidbits.  Feel free to join or Discord Server also if you have any more questions.  Thanks for stopping by and See You on the other side.

admin admin

Update from 09.11.2016


pervokpetr

Recommended Posts

New update was sent.
- Added opportunity use including for separate files
- Hook objects textures now also will autoreload after changes
- Parameters multipliers for testing PBR materials
- Removed red logo
- Optimized texture creation for hook objects
- Reoved previous solution for cum rendering, because it produce bug

Using includes.
This is experimental funtion, need test it. Now you can create a section in level_definition file - [include] and provide file name, which will be included in level_definition, for example:
 

[include]
_hook5data\phys_bounds\photostudio_phys_bounds.txt = true
photostudio_extra_light = false
photostudio_extra_models = true



Value "true" mean that this file will be included, value "false" mean that this file will be ignored. You can provide just file name, if extra file placed in the same folder as level_definition, or you can provide file path relative to ActiveMod if file placed outside folder with level_definition. Included files also support autoreloading. One thing that very bother me - even if you change one parameter on some section all level_definition and included files will be reloaded, this is wrong, it create additional work for all cpu,gpu, ram and gpu memory, but for now I have not good idea what system should be to help avoid this situation, moreover, it should be writed with keeping in mind manipulators which will dynamically save postion, rotation and in this case, autoreloading can became a real pain, so later I need find better solution for hook objects using.

Texture reloading
In begining hook objects use own texture manager for texture loading, for now I combined it with base texture manager and enable the same algorithm for texture reloading, it allow me reduce amount of code and optimize some process.

Parameter multipliers.
This for hfg2 request create some ability to test PBR materials in game. I added several parameters for hook_objects section:

[sphere]
type = static
style = object
file = _hook5data\objects\sphere_object\sphere.h5m
position = -1, 0.6, 1, 0
rotation = 0, 1, 0, 0
scale   = 0.6, 0.6, 0.6, 1
cast_shadow = true
color_multiplier = 60, 60, 60, 255
metallness_multiplier = 0.0
glosiness_multiplier = 0.99
glow_multiplier = 0.0




This parameters allow me change base PBR values without texture resaving, how it works - I created pure white textures for diffuse and specular maps, but PBR shader was changed and now it premultiply texture value with corresponding parameter multiplier, so final value, for metallness for example, will be texture_value * metallness_multiplier, we have in specular texture metallness equal 1.0 and metallness_multiplier equal 0.0, so final metallness will be 0.0.


You can change this multiplier in range 0...1, and color_multiplier in Photoshop range and preview results in game, this will allow you to select desired value when you will create PBR textures for hook5. On picture below you can see different result occured with different parameters multipliers. One note I advise use multipliers only for testing, all multipliers for usual hook_objects should be set to 1.0 and color_multiplier to 255,255,255,255.
 

image.thumb.png.2fbebd78beeb44e3a419f953da168d43.png

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

WARNING! Adult Only Content You must be 18 years of age or older to enter. By accepting you agree to Klub Exile's Terms of Use and Guidelines upon creating an account.