Optimización de gráficos 3D para WebGL (experiencia PLANT-SIM)

Este artículo se centrará en optimizar la escena Unity del proyecto Plantsim 1.0.: La parte visual de una copia digital del Proceso Tennessee Eastman, implementado en Unity 2017.1.1f1.



imagen



Una nota del socio del centro de TI MAI y del organizador del programa de maestría “ VR / AR & AI ” - PHYGITALISM .



, — PLC. , WEB-, WebGL, .



Unity
PlantSim 1.0 PC : Intel i7 Nvidia GTX 1070ti 2017.3.0f3 Default Pipeline 3D
PlantSim 2.0 : Intel i5 Nvidia 1050ti Google Chrome 2019.2.15f1 LWPR 3D




PlantSim 1.0, . PlantSim 2.0.



imagen

PlantSim 2.0





WebGL — 3D Google Chrome, Mozilla, Safari. , 30FPS+. .



imagen

Unity: WebGL Build



.



WebGL , . , , / 3D .



, 3D, , .



imagen



, :



  • OutPutTank — 2
  • Reactor — 1 ,
  • ReactorExplosion — 1 ,
  • Condenser — 1
  • Separator — 1
  • PipesSystem —
  • Stripper — 1
  • Valve — 6
  • Tank — 4
  • Refrigerator — 1
  • Compressor — 3

    PlantSim 1.0 189 736 , 60%. 75 895 , .

    imagen





, , , , . :



imagen

Reactor (PlantSim 1.0) —





Reactor 21998 . , 8800 . , , : OutPutTank, Reactor Striper — . , .



, Reactor ( , ), 7258 . , 8000. , UV , — , , , .



imagen

Reactor (PlantSim 2.0) —





ReactorExplosion , — . FPS , , 1000 Particle System. , : ? Unity , WebGL , , 5 ( FlipBook ). Unity.



FlipBook — , . , , . , , . , 5 , 1000.



, Reactor — WebGL FPS. Unity , Mesh renderer Skinned mesh renderer. transform points transform points (Origin ). , FPS 3–5 15–20 , 0,5 . , ReactorExplosion 41220 , , , , , .



. , 189736 ( ReactorExplosion, 148516 ). 60% , 59403 ( ). 61064 , , , . ReactorExplosion 102284 , .



, .



imagen





. , , :



  • Base Color/Albedo — RGBA , , . Alpha .
  • Ambient Occlusion — / .
  • Metallness — / , .
  • Smoothness — / , .
  • Normal Map — RGB , .
  • Height Map — / , . Normal Map.
  • Emission — RGB , . Global Illumination , .

    imagen

    Striper PlantSim 2.0


. — RGB - . ?



, R G B, A - . RGB . :



imagen

/



Combine texture Unity.

Normal Map. — , .



imagen

Compressor



, . :



  1. , Substance Painter, .
  2. HighPoly ( , , ) LowPoly , . Substance Painter, Blender .




— UV , . .



imagen

. —



, . , , UV . , , UV .



.



WebGL , . , . — .





, Unity, Global Illumination. “” . Unity — Dynamic Static .



, .



, , . Lightmap . Realtime , .

imagen

Lightmap

PlantSim 2.0 , .



WebGL



FPS , Google Chrome. — FPS c i7 GTX 1070ti 30, , . , .



, , (, ), FPS, .



imagen

- . FPS .



Windows Apple MacBook PRO, , 3D . RTX 2080ti (, FPS 60). FPS .



, . , Google Chrome :



  1. ? , , .
  2. (, )?


, — . Google Chrome, , . NVIDIA — NVIDIA control panel. Google Chrome , .



imagen

Nvidia Control Panel —



, Google Chrome, FPS 70–90 — , 3D (), - .





, , WebGL — 3D WEB.



, , .



:






All Articles