Page 45 of 76

Re: Report Import/Export bugs here

Posted: Thu Jan 05, 2017 11:13 am
by Oleg
is your .ydd a ped/player model?

Re: Report Import/Export bugs here

Posted: Thu Jan 05, 2017 11:18 am
by _Vlad_
@Oleg, no, as i say in previous post its a map part, it's lod of map part, like lod1

Re: Report Import/Export bugs here

Posted: Thu Jan 05, 2017 1:49 pm
by Oleg
have you tried different "Base" values? when embedded textures are used, it's very likely to have dual Base value set on original models, like

Base 10, 5

I guess the second value could be related to memory usage of embedded textures. Give it a try in two steps:
1. embed just one very small texture (e.g. 4x4 placeholder), just to find out whther it will work or not;
2. do #1 but this time add dual Base value in user-defined properties like Base 12, 2.

Re: Report Import/Export bugs here

Posted: Fri Jan 06, 2017 1:58 am
by _Vlad_
this object has Base 17, 0
so, i tried Base 17, 8 but it's not work, but maybe i don't understand you correctly

Re: Report Import/Export bugs here

Posted: Fri Jan 06, 2017 2:45 am
by Oleg
have you tried this model with just one very small embedded texture in it?

Re: Report Import/Export bugs here

Posted: Fri Jan 06, 2017 2:54 am
by _Vlad_
@Oleg, yes, still crasing with 4x4 texture

Re: Report Import/Export bugs here

Posted: Fri Jan 06, 2017 3:34 am
by _Vlad_
@Oleg, so, any solution or should i use different base setting? default is 17, 0

Re: Report Import/Export bugs here

Posted: Fri Jan 06, 2017 7:40 am
by _Vlad_
btw, after reexporting file with trees_lod and trees_lod2 shaders, game always crashed

Re: Report Import/Export bugs here

Posted: Fri Jan 06, 2017 8:01 am
by _Vlad_
@Oleg, well, i'm reexported my map object with Gims, with embedded textures and it's working.
In zm show Base 6, 1, default was Base 17, 0

Re: Report Import/Export bugs here

Posted: Fri Jan 06, 2017 11:12 am
by Oleg
can you send me the .ydr created by zmod and by gims/odr for compare? I doubt the "Base 6, 1" is the cause, something else might be wrong.

Re: Report Import/Export bugs here

Posted: Fri Jan 06, 2017 8:39 pm
by _Vlad_
@Oleg, sure, but as i said before it's ydd
but for some weird reason, now zm export only 1 texture of 3, but yesterday it's was ok, so, i' m attached my z3d and .ydd, exported from gims

also, after reexporting untouched bh1_46_c_grnd (model with new terrain shaders, which one was recently added) i always got this error bh1_46_c_grnd
Incorrect multy-texture layer MODE set on material "BH1_46_HC_Rockface_01".
but model is exported

btw, do you know another shaders, except emissivenight_geomnightonly which support emissive at night and hide this emessive geometry part at night?
emissivenight_geomnightonly doesnt support alpha channel, but i need it

Re: Report Import/Export bugs here

Posted: Sat Jan 07, 2017 7:21 am
by Oleg
1. the warning on export is not a problem; it will get fixed in next update when I add new shaders;

2. try emissivenight_alpha

Re: Report Import/Export bugs here

Posted: Sat Jan 07, 2017 8:48 am
by _Vlad_
@Oleg, ok, thanks!

Re: Report Import/Export bugs here

Posted: Sun Jan 08, 2017 11:12 am
by Oleg
_Vlad_ wrote:btw, after reexporting file with trees_lod and trees_lod2 shaders, game always crashed
The problem might be related to the same issue with embedded texture inside .ydd file.

In any case, can you specify the file I could test this on? I've tried trees_lod objects added onto bh1_46c_grnd object and these work fine. then tried trees_lod on .ydd file and it works fine too.

Re: Report Import/Export bugs here

Posted: Sun Jan 08, 2017 11:13 am
by Oleg
@_Vlad_, the crash on .ydd files containing embedded textures is fixed. get an update.

Re: Report Import/Export bugs here

Posted: Sun Jan 08, 2017 12:27 pm
by _Vlad_
@Oleg, awesome, thanks!

Re: Report Import/Export bugs here

Posted: Sun Jan 08, 2017 12:45 pm
by _Vlad_
@Oleg, now its working, the model with trees_lods and trees_lod2 was with embedded textures,
Btw, after this fix of embedded textures, it's not possible to export this textures from ydd via OpenIV, but anyway thanks a lot for fix!
Can you please take a look at "normal_pxm" and "terrain_cb_w_4 yr_spec_pxm" shaders? model here x64l.rpf\levels\gta5\_citye\sunset\ss1_13.rpf\ss1_13_grd03noshad.ydr
there's screen, but from console http://i.imgur.com/hhB9Igm.jpg, i can make any screen's you need

Re: Report Import/Export bugs here

Posted: Sun Jan 08, 2017 12:55 pm
by Oleg
nope, you just need to locate an entry inside ydd that actually contains embedded textures. It's the very first that used them in your scene (it's not a must to be the first in a list in OpenIV).

Also, talking on ped models as an example, if you try to locate embedded texture for "lower" model and your "upper" model has embedded texture too (and "upper" is above "lower" in a list), you should look for embedded textures on "upper" entry, it will contain all embedded textures for the rest of entries (below it in a list).

Re: Report Import/Export bugs here

Posted: Sun Jan 08, 2017 12:59 pm
by _Vlad_
@Oleg, i updated the post

Re: Report Import/Export bugs here

Posted: Sun Jan 08, 2017 10:51 pm
by _Vlad_
when i adapt material to emessivenight_alpha, zm says :
Shader "emissivenight_alpha" should use Undefined.R affection on DETAIL.
what i should do to fix that? but model is exported, it's just a warning

Re: Report Import/Export bugs here

Posted: Mon Jan 09, 2017 4:45 am
by Oleg
set Emissive color affection to DETAIL.A

Also, feel free to report locations of game models that use terrain/trees shaders, so I can inspect them. Just file names could be enough, in rare cases in-game location of the model might be needed so I could teleport and see in-game render of specific shader.

these are terrain and trees shaders in game, as you know just few of them are ported in zm importer/exporter:

terrain_cb_4lyr
terrain_cb_4lyr_2tex
terrain_cb_4lyr_2tex_blend
terrain_cb_4lyr_2tex_blend_lod
terrain_cb_4lyr_2tex_pxm
terrain_cb_4lyr_cm
terrain_cb_4lyr_cm_tnt
terrain_cb_4lyr_lod
terrain_cb_4lyr_pxm
terrain_cb_4lyr_spec
terrain_cb_w_4lyr
terrain_cb_w_4lyr_2tex
terrain_cb_w_4lyr_2tex_blend
terrain_cb_w_4lyr_2tex_blend_lod
terrain_cb_w_4lyr_2tex_blend_pxm
terrain_cb_w_4lyr_2tex_blend_pxm_spm
terrain_cb_w_4lyr_2tex_blend_pxm_tn_spm
terrain_cb_w_4lyr_2tex_blend_pxm_tt_spm
terrain_cb_w_4lyr_2tex_blend_tt
terrain_cb_w_4lyr_2tex_blend_ttn
terrain_cb_w_4lyr_2tex_pxm
terrain_cb_w_4lyr_cm
terrain_cb_w_4lyr_cm_pxm
terrain_cb_w_4lyr_cm_pxm_tnt
terrain_cb_w_4lyr_cm_tnt
terrain_cb_w_4lyr_cm_tnt_pxm
terrain_cb_w_4lyr_lod
terrain_cb_w_4lyr_pxm
terrain_cb_w_4lyr_pxm_spm
terrain_cb_w_4lyr_spec
terrain_cb_w_4lyr_spec_int
terrain_cb_w_4lyr_spec_int_pxm
terrain_cb_w_4lyr_spec_pxm
trees
trees_camera_aligned
trees_camera_facing
trees_lod
trees_lod2
trees_lod2d
trees_lod_tnt
trees_normal
trees_normal_diffspec
trees_normal_diffspec_tnt
trees_normal_spec
trees_normal_spec_camera_aligned
trees_normal_spec_camera_aligned_tnt
trees_normal_spec_camera_facing
trees_normal_spec_camera_facing_tnt
trees_normal_spec_tnt
trees_normal_spec_wind
trees_shadow_proxy
trees_tnt

Re: Report Import/Export bugs here

Posted: Mon Jan 09, 2017 4:53 am
by _Vlad_
@Oleg, ok, i will do
terrain_cb_w_4 yr_spec_pxm was added in recently update? because i didn't see changelog yet

Re: Report Import/Export bugs here

Posted: Mon Jan 09, 2017 4:56 am
by Oleg
yes, it's there. together with normal_pxm.

Re: Report Import/Export bugs here

Posted: Mon Jan 09, 2017 4:59 am
by _Vlad_
@Oleg, awesome! thanks a lot! I'm very glad to see active development!

Re: Report Import/Export bugs here

Posted: Mon Jan 09, 2017 6:10 am
by _Vlad_
You can take a look at this shaders too :
1) alpha x64l.rpf\levels\gta5\_cityw\beverly_01\bh1_15.rp\bh1_15_bld1.ydr
2) normal_alpha x64l.rpf\levels\gta5\_cityw\beverly_01\bh1_15.rpf\bh1_15_bld2.ydr
3) normal_spec_alpha x64l.rpf\levels\gta5\_cityw\beverly_01\bh1_15.rpf\bh1_15_bld2.ydr
4) normal_spec_screendooralpha x64k.rpf\levels\gta5\_citye\scentral_01\sc1_08.rpf\sc1_08_hosp.ydr
5) normal_decal_pxm x64o.rpf\levels\gta5\_hills\cityhills_02\ch2_01.rpf\ch2_01_cliff_dcl_03.ydr
6) normal_spec_decal_tnt x64p.rpf\levels\gta5\_hills\cityhills_03\ch3_04.rpf\ch3_04_parking_d.ydr
7) decal_dirt x64h.rpf\levels\gta5\interiors\v_int_1.rpf\v_1_fd_crest.ydr