Jump to content

Problem in creating webgl sample project.


photo

Recommended Posts

I have created a small sample and tried to deploy it for webgl platform. For that I created ung file of core and my sample project and then packed them using emscripten file_packager.

 

And using same main.html file(provided in source\app\WebGL) to launch it, BUT the webpage is not working and shows Unigine loading screen only. Log below

Loading "unigine.cfg"...
Set 1600x900 windowed video mode
Unigine engine http://unigine.com/
Binary: WebGL CLANG 3.2.0 Release Jun  4 2014 r14513
Features: OpenGLES Flash Editor NoRTTI NoException
App path:  
Data path: data/
Save path: 

---- System ----
System: Unknown System
CPU: Unknown CPU x1
GPU: Unknown GPU x1
System memory: 256 MB
Video memory:  256 MB
Sync threads:  0
Async threads: 1

---- MathLib ----
Set Generic simd processor

---- Sound ----
NULL

---- Render ----
Renderer: Unknown
OpenGLES vendor:   Mozilla
OpenGLES renderer: Mozilla
OpenGLES version:  WebGL 1.0
Found optional GL_OES_texture_half_float
Found optional GL_EXT_texture_filter_anisotropic
Shading language:        OpenGL ES GLSL 1.00 (WebGL)
Maximum texture size:    16384
Maximum texture units:   20

---- Physics ----
Physics: Single-threaded

---- PathFind ----
PathFind: Single-threaded

---- Interpreter ----
Version: 2.69

Unigine~# world_load basic
Loading "core/unigine.cpp" 2026ms
Loading "core/locale/unigine.locale" dictionary 31ms
Loading "core/properties/unigine.prop" 2 properties 7ms
Loading "basic.cpp" 116ms
Loading "basic/materials/project.mat" 0 materials 2ms
Loading "basic.world" 54ms

Is there any process documented for this?

 

Edit : with some additional log messages I can see the my init() function is getting called but the update() get called only once.

 

Thanks in advance.

 

-Priyank

Edited by Priyank.Jain2
Link to comment

I am still unable to resolve this, The last log says

 
Unigine::Engine::init(): is already initialized

Anyone has any Idea?

 

I also observed that many of the existing samples provided with Unigine source(source\app\WebGL) are also not working. But the one creating dynamic meshes are working fine.

 

Any input?

Link to comment
×
×
  • Create New...