armory3d / armory_examples

Armory Examples
https://github.com/armory3d/armory/wiki
zlib License
60 stars 38 forks source link

third_person_terrain not working corectly on Browser #55

Closed ManPython closed 9 months ago

ManPython commented 2 years ago

No exist terrain on Browser, on Desktop exist. Due this is just sky and Player walking on empty ground. Other ok. Firefox, Chrome, Edge this same problem.

armory_templates-22.06 ArmorySDK2210 Blender 3.3.0/1

WebGL warning: texImage: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads. 17 kha/graphics4/PipelineState.hx:98: Warning: Uniform V3 not found. [Log.hx:66:3](file:///D://Blender/Add-in/ArmorySDK2205/armsdk3/Kha/Tools/windows_x64/std/haxe/Log.hx) kha/graphics4/PipelineState.hx:98: Warning: Uniform envmapStrength not found. [Log.hx:66:3](file:///D:/Blender/Add-in/ArmorySDK2205/armsdk3/Kha/Tools/windows_x64/std/haxe/Log.hx) Sources/armory/trait/internal/CanvasScript.hx:39: "_themes.json" is empty! Using default theme instead. [Log.hx:66:3](file:///D:/Blender/Add-in/ArmorySDK2205/armsdk3/Kha/Tools/windows_x64/std/haxe/Log.hx) WebGL warning: drawElementsInstanced: Depth texture comparison requests (e.g.LINEAR) Filtering, but behavior is implementation-defined, and so on some systems will sometimes behave asNEAREST. (warns once) WebGL warning: drawElementsInstanced: Tex image TEXTURE_2D level 0 is incurring lazy initialization. WebGL warning: texImage: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads. Uncaught TypeError: p is null init TerrainPhysics.hx:23 loaded TerrainStream.hx:67 iron_data_TerrainStream TerrainStream.hx:41 getImage Data.hx:475 onload LoaderImpl.hx:36 [TerrainPhysics.hx:23:28](file:///D:/Blender/Add-in/ArmorySDK2205/armsdk3/armory/Sources/armory/trait/internal/TerrainPhysics.hx) init TerrainPhysics.hx:23 loaded TerrainStream.hx:67 iron_data_TerrainStream TerrainStream.hx:41 getImage Data.hx:475 onload LoaderImpl.hx:36

ManPython commented 2 years ago

bug armory

ManPython commented 2 years ago

WARNING: 1 warning occurred during compilation Initializing a new default audio device. Sources/armory/trait/internal/CanvasScript.hx:39: "_themes.json" is empty! Using default theme instead. Armory v2022.10 ($Id: 5c879f12ddbcfaa7f39e4c5bd16720f4a5d6eceb $) Exporting Scene Scene exported in 0.028s Finished in 5.604s Server already running "GET /build_third_person_terrain/debug/html5/ HTTP/1.1" 200 - "GET /build_third_person_terrain/debug/html5/kha.js HTTP/1.1" 200 -

...

"GET /build_third_person_terrain/debug/html5/kha.js HTTP/1.1" 200 - "GET /build_third_person_terrain/debug/html5/ammo.js HTTP/1.1" 200 - code 404, message File not found "GET /favicon.ico HTTP/1.1" 404 - "GET /build_third_person_terrain/debug/html5/Scene.arm HTTP/1.1" 200 - "GET /build_third_person_terrain/debug/html5/World_irradiance.arm HTTP/1.1" 200 - "GET /build_third_person_terrain/debug/html5/hosek_radiance.hdr HTTP/1.1" 200 -

ManPython commented 2 years ago

WebGL warning: texImage: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads. WebGL warning: texImage: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads. WebGL warning: texImage: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads. 8 WebGL warning: texImage: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads. 7 kha/graphics4/PipelineState.hx:98: Warning: Uniform V3 not found. Log.hx:66:3 kha/graphics4/PipelineState.hx:98: Warning: Uniform envmapStrength not found. Log.hx:66:3 Sources/armory/trait/internal/CanvasScript.hx:39: "_themes.json" is empty! Using default theme instead. Log.hx:66:3 WebGL warning: drawElementsInstanced: Depth texture comparison requests (e.g.LINEAR) Filtering, but behavior is implementation-defined, and so on some systems will sometimes behave asNEAREST`. (warns once) WebGL warning: drawElementsInstanced: Tex image TEXTURE_2D level 0 is incurring lazy initialization. WebGL warning: texImage: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads. Uncaught TypeError: p is null init TerrainPhysics.hx:23 loaded TerrainStream.hx:67 iron_data_TerrainStream TerrainStream.hx:41 getImage Data.hx:475 onload LoaderImpl.hx:36 loadImageFromDescription LoaderImpl.hx:36 loadImageFromPath Assets.hx:200 getImage Data.hx:473 iron_data_TerrainStream TerrainStream.hx:37 getMaterial Data.hx:218 iron_data_MaterialData MaterialData.hx:48 iron_data_MaterialContext MaterialData.hx:130 getImage Data.hx:475 onload LoaderImpl.hx:36 loadImageFromDescription LoaderImpl.hx:36 loadImageFromPath Assets.hx:200 getImage Data.hx:473 iron_data_MaterialContext MaterialData.hx:98 iron_data_MaterialData MaterialData.hx:45 getShader Data.hx:294 iron_data_ShaderData ShaderData.hx:45 finishCompile ShaderData.hx:243 compile ShaderData.hx:219 iron_data_ShaderContext ShaderData.hx:91 iron_data_ShaderData ShaderData.hx:42 parse ShaderData.hx:57 returnSceneRaw Data.hx:346 getSceneRaw Data.hx:340 getBlob Data.hx:426 onreadystatechange LoaderImpl.hx:187 loadRemote LoaderImpl.hx:165 loadBlobFromDescription LoaderImpl.hx:225 loadBlobFromPath Assets.hx:223 getBlob Data.hx:424 getSceneRaw Data.hx:319 parse ShaderData.hx:51 getShader Data.hx:292 iron_data_MaterialData MaterialData.hx:35 parse MaterialData.hx:61 getSceneRaw Data.hx:302 parse MaterialData.hx:55 getMaterial Data.hx:216 iron_data_TerrainStream TerrainStream.hx:29 create Scene.hx:133 TerrainPhysics.hx:23:28 init TerrainPhysics.hx:23 loaded TerrainStream.hx:67 iron_data_TerrainStream TerrainStream.hx:41 getImage Data.hx:475 onload LoaderImpl.hx:36 (asynchroniczny: EventHandlerNonNull) loadImageFromDescription LoaderImpl.hx:36 loadImageFromPath Assets.hx:200 getImage Data.hx:473 iron_data_TerrainStream TerrainStream.hx:37 getMaterial Data.hx:218 iron_data_MaterialData MaterialData.hx:48 iron_data_MaterialContext MaterialData.hx:130 getImage Data.hx:475 onload LoaderImpl.hx:36 (asynchroniczny: EventHandlerNonNull) loadImageFromDescription LoaderImpl.hx:36 loadImageFromPath Assets.hx:200 getImage Data.hx:473 iron_data_MaterialContext MaterialData.hx:98 iron_data_MaterialData MaterialData.hx:45 getShader Data.hx:294 iron_data_ShaderData ShaderData.hx:45 finishCompile ShaderData.hx:243 compile ShaderData.hx:219 iron_data_ShaderContext ShaderData.hx:91 iron_data_ShaderData ShaderData.hx:42 parse ShaderData.hx:57 returnSceneRaw Data.hx:346 getSceneRaw Data.hx:340 getBlob Data.hx:426 onreadystatechange LoaderImpl.hx:187 (asynchroniczny: EventHandlerNonNull) loadRemote LoaderImpl.hx:165 loadBlobFromDescription LoaderImpl.hx:225 loadBlobFromPath Assets.hx:223 getBlob Data.hx:424 getSceneRaw Data.hx:319 parse ShaderData.hx:51 getShader Data.hx:292 iron_data_MaterialData MaterialData.hx:35 parse MaterialData.hx:61 getSceneRaw Data.hx:302 parse MaterialData.hx:55 getMaterial Data.hx:216 iron_data_TerrainStream TerrainStream.hx:29 create Scene.hx:133

unsupported protocol for sourcemap request file:///D:/Blender/Add-in/ArmorySDK2205/armsdk3/iron/Sources/iron/Scene.hx

`

ManPython commented 2 years ago

https://armory3d.github.io/armory_examples_browser/#templates-third_person_terrain Similar problem here

Object { os: "Linux", commit: null, time: "2022-06-07" } [ArmoryExamplesBrowser.hx:60:3](file:///mnt/N1/dev/armory3d/armory_examples_browser/src/ArmoryExamplesBrowser.hx) Successfully compiled asm.js code (total compilation time 155ms) [kha.js](https://armory3d.github.io/armory_examples_browser/templates/third_person_terrain/kha.js) WebGL warning: texImage: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads. 17 Sources/armory/trait/internal/CanvasScript.hx:36: "_themes.json" is empty! Using default theme instead. [kha.js:5858:11](https://armory3d.github.io/armory_examples_browser/templates/third_person_terrain/kha.js) WebGL warning: texImage: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads. kha/graphics4/PipelineState.hx:98: Warning: Uniform envmapStrength not found. [kha.js:5858:11](https://armory3d.github.io/armory_examples_browser/templates/third_person_terrain/kha.js) WebGL warning: drawElementsInstanced: Depth texture comparison requests (e.g.LINEAR) Filtering, but behavior is implementation-defined, and so on some systems will sometimes behave asNEAREST. (warns once) WebGL warning: drawElementsInstanced: Tex image TEXTURE_2D level 0 is incurring lazy initialization. Uncaught TypeError: p is null init https://armory3d.github.io/armory_examples_browser/templates/third_person_terrain/kha.js:2825 loaded https://armory3d.github.io/armory_examples_browser/templates/third_person_terrain/kha.js:10364 iron_data_TerrainStream https://armory3d.github.io/armory_examples_browser/templates/third_person_terrain/kha.js:10331 getImage https://armory3d.github.io/armory_examples_browser/templates/third_person_terrain/kha.js:9195 onload https://armory3d.github.io/armory_examples_browser/templates/third_person_terrain/kha.js:21495 [kha.js:2825:6](https://armory3d.github.io/armory_examples_browser/templates/third_person_terrain/kha.js) WebGL warning: drawElementsInstanced: Tex image TEXTURE_2D level 0 is incurring lazy initialization.

MoritzBrueckner commented 2 years ago

Hi, this seems to be caused by https://github.com/armory3d/armory/issues/1385#issuecomment-532121677.

luboslenco commented 9 months ago

Link with https://github.com/armory3d/armory_examples/issues/27.