MadView3D 0.3.x released

Started by JeGX, August 23, 2018, 12:01:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


onlyLinuxLuvUBack

What do I need to do to solve everything is black(any objects load all black)?

09:21:02(0000001)   [info ]   GeeXLab v0.25.3.0 (Jun 17 2018@09:53:06)
09:21:02(0000002)   [info ]   Cross-platform tool for real-time 3D programming and demo coding
09:21:02(0000003)   [info ]   (C)2009-2018 Geeks3D (www.geeks3d.com)
09:21:02(0000004)   [info ]   Homepage: http://www.geexlab.com
09:21:02(0000005)   [info ]   GeeXLab is starting up...
09:21:02(0000006)   [info ]   GeeXLab is launched with admin (root) rights.
09:21:02(0000007)   [info ]   [SQLite3] SQLite3 version 3.24.0 - initialization ok.
09:21:02(0000008)   [info ]   GraphX Core 0.29.16.0 (codename: Hawking) initialization ok.
09:21:02(0000009)   [info ]   GeeXLab home directory: /home/pmcuser1/Downloads/mad_view_gltf_/MadView3D_linux64/
09:21:02(0000010)   [info ]   HW platform type: PC
09:21:02(0000011)   [info ]   Linux information:
09:21:02(0000012)   [info ]   - sysname: Linux
09:21:02(0000013)   [info ]   - release: 4.15.0-33-generic
09:21:02(0000014)   [info ]   - version: #36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018
09:21:02(0000015)   [info ]   - machine: x86_64
09:21:02(0000016)   [info ]   SW platform type: Linux 4.15.0-33-generic 64-bit
09:21:02(0000017)   [info ]   Command line: ./MadView3D /demofile="_src/main.xml"
09:21:02(0000018)   [info ]   Plugins search path: /home/pmcuser1/Downloads/mad_view_gltf_/MadView3D_linux64//dylibs/;
09:21:02(0000019)   [info ]    checking for OpenCL support...
09:21:02(0000020)   [info ]    OpenCL support not found: unable to load the OpenCL core library (libOpenCL.so).
09:21:03(0000021)   [info ]   [Assimp] ASSIMP 3D object loader plugin.
09:21:03(0000022)   [info ]   [Assimp] version: 4.1.0
09:21:03(0000023)   [info ]   [Assimp] supported 3D formats: *.3d;*.3ds;*.3mf;*.ac;*.ac3d;*.acc;*.amf;*.ase;*.ask;*.assbin;*.b3d;*.blend;*.bvh;*.cob;*.csm;*.dae;*.dxf;*.enff;*.fbx;*.glb;*.gltf;*.hmp;*.ifc;*.ifczip;*.irr;*.irrmesh;*.lwo;*.lws;*.lxo;*.md2;*.md3;*.md5anim;*.md5camera;*.md5mesh;*.mdc;*.mdl;*.mesh;*.mesh.xml;*.mot;*.ms3d;*.ndo;*.nff;*.obj;*.off;*.ogex;*.pk3;*.ply;*.pmx;*.prj;*.q3o;*.q3s;*.raw;*.scn;*.sib;*.smd;*.stl;*.stp;*.ter;*.uc;*.vta;*.x;*.x3d;*.x3db;*.xgl;*.xml;*.zgl
09:21:03(0000024)   [info ]   [Assimp] initialization ok.
09:21:03(0000025)   [info ]   App directory: /home/pmcuser1/Downloads/mad_view_gltf_/MadView3D_linux64/
09:21:03(0000026)   [info ]   Scripting libs directory: /home/pmcuser1/Downloads/mad_view_gltf_/MadView3D_linux64/libs/
09:21:03(0000027)   [info ]   Command line: ./MadView3D /demofile="_src/main.xml"
09:21:03(0000028)   [info ]   =====================================================
09:21:03(0000029)   [info ]   DEMO: _src/main.xml
09:21:03(0000030)   [info ]   [Lua] Lua version: Lua 5.3.4
09:21:03(0000031)   [info ]   [Lua] LuaFileSystem initialized ok.
09:21:03(0000032)   [info ]   [Lua] LuaSocket core initialized ok.
09:21:03(0000033)   [info ]   [Lua] Mime core initialized ok.
09:21:03(0000034)   [info ]   [Lua] LuaSQL SQLite3 driver initialized ok.
09:21:03(0000035)   [info ]   [Lua] LuaGL initialized ok.
09:21:03(0000036)   [info ]   [Lua] initialization ok.
09:21:03(0000037)   [info ]   Current GeeXLab version is 0.25.3.0.
09:21:03(0000038)   [info ]   Scene file requires GeeXLab version
09:21:03(0000039)   [info ]   Display size: width=1920, height=1200
09:21:03(0000040)   [info ]   ...
09:21:03(0000041)   [info ]   [OpenGL] GLX version: 1.4
09:21:03(0000042)   [info ]   [OpenGL] GLX_VENDOR (srv): SGI
09:21:03(0000043)   [info ]   [OpenGL] GLX_VERSION (svr): 1.4
09:21:03(0000044)   [info ]   [OpenGL] GLX_VENDOR (client): Mesa Project and SGI
09:21:03(0000045)   [info ]   [OpenGL] GLX_VERSION (client): 1.4
09:21:03(0000046)   [info ]   [OpenGL] GLX_RENDERER_VENDOR_ID_MESA: 4098
09:21:03(0000047)   [info ]   [OpenGL] GLX_RENDERER_DEVICE_ID_MESA: 26936
09:21:03(0000048)   [info ]   [OpenGL] GLX_RENDERER_VERSION_MESA: 18.0.5
09:21:03(0000049)   [info ]   [OpenGL] GLX_RENDERER_ACCELERATED_MESA: 1
09:21:03(0000050)   [info ]   [OpenGL] GLX_RENDERER_VIDEO_MEMORY_MESA: 4071 MB
09:21:03(0000051)   [info ]   [OpenGL] GLX_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_MESA: NO
09:21:03(0000052)   [info ]   [OpenGL] GLX_RENDERER_VENDOR_ID_MESA: X.Org
09:21:03(0000053)   [info ]   [OpenGL] GLX_RENDERER_DEVICE_ID_MESA: AMD Radeon (TM) R9 380 Series (TONGA / DRM 3.23.0 / 4.15.0-33-generic, LLVM 6.0.0)
09:21:03(0000054)   [info ]   MadView3D - demo started with an OpenGL 3.0 context.
09:21:03(0000055)   [info ]   Quick OpenGL information (use /glinfo for more limits):
09:21:03(0000056)   [info ]   GL_RENDERER: AMD Radeon (TM) R9 380 Series (TONGA / DRM 3.23.0 / 4.15.0-33-generic, LLVM 6.0.0)
09:21:03(0000057)   [info ]   GL_VENDOR: X.Org
09:21:03(0000058)   [info ]   GL_VERSION: 3.0 Mesa 18.0.5
09:21:03(0000059)   [info ]   GL_SHADING_LANGUAGE_VERSION: 1.30
09:21:03(0000060)   [info ]   OpenGL version detected: 3.0
09:21:03(0000061)   [info ]   OpenGL extensions: 255
09:21:03(0000062)   [info ]   OpenGL hardware limits:
09:21:03(0000063)   [info ]     GL_MAX_VERTEX_ATTRIBS: 16
09:21:03(0000064)   [info ]     GL_MAX_VERTEX_UNIFORM_COMPONENTS: 16384
09:21:03(0000065)   [info ]     GL_MAX_FRAGMENT_UNIFORM_COMPONENTS: 16384
09:21:03(0000066)   [info ]     GL_MAX_VARYING_FLOATS: 128
09:21:03(0000067)   [info ]     GL_MAX_TEXTURE_SIZE: 16384
09:21:03(0000068)   [info ]     GL_MAX_VIEWPORT_DIMS: 16384 16384
09:21:03(0000069)   [info ]     GL_MAX_TEXTURE_IMAGE_UNITS: 32
09:21:03(0000070)   [info ]     GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS: 192
09:21:03(0000071)   [info ]   Render window (MadView3D) initialized (renderer type: OpenGL)
09:21:03(0000072)   [info ]   Scene compilation: SUCCESS.
09:21:03(0000073)   [warn ]   GPU program color_prog - Vertex shader info log: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:03(0000074)   [error]   GPU program color_prog - Vertex shader error: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:03(0000075)   [warn ]   GPU program color_prog - Pixel shader info log: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:03(0000076)   [error]   GPU program color_prog - Pixel shader error: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:03(0000077)   [warn ]   GPU program phong_prog - Vertex shader info log: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:03(0000078)   [error]   GPU program phong_prog - Vertex shader error: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:03(0000079)   [warn ]   GPU program phong_prog - Pixel shader info log: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:03(0000080)   [error]   GPU program phong_prog - Pixel shader error: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:03(0000081)   [warn ]   GPU program phong_tex_prog - Vertex shader info log: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:03(0000082)   [error]   GPU program phong_tex_prog - Vertex shader error: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:03(0000083)   [warn ]   GPU program phong_tex_prog - Pixel shader info log: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:03(0000084)   [error]   GPU program phong_tex_prog - Pixel shader error: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:03(0000085)   [warn ]   GPU program sphere_env_mapping_prog - Vertex shader info log: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:03(0000086)   [error]   GPU program sphere_env_mapping_prog - Vertex shader error: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:03(0000087)   [warn ]   GPU program sphere_env_mapping_prog - Pixel shader info log: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:03(0000088)   [error]   GPU program sphere_env_mapping_prog - Pixel shader error: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:04(0000089)   [info ]   is_3d_object() - extension: .gltf
09:21:04(0000090)   [info ]   is_3d_object() - extension: .gltf is a supported 3D format
09:21:04(0000091)   [info ]   scripts INIT execution: OK.
09:21:04(0000092)   [info ]   [Assimp] build_material - glTF.002[80] - ref counter: 1
09:21:04(0000093)   [info ]   [Assimp] build_material - glTF.002[80] - texture: glTF.002_baseColor.png
09:21:04(0000094)   [info ]   [Assimp] mesh: glTF_Nov14.007_CUCurve.012[81] - material: glTF.002[80] added (ref counter: 2)
09:21:04(0000095)   [info ]     -- child name: glTF_Nov14.007_CUCurve.012_81.0 (parent: Model)
09:21:04(0000096)   [info ]     -- # of materials: 1.0
09:21:04(0000097)   [info ]     --   - material- id: 80.0 -name: glTF.002
09:21:04(0000098)   [info ]   Material glTF.002: texture 0 (_src/../samples_3d_objects/gltf_model/glTF.002_baseColor.png) loaded ok.
09:21:04(0000099)   [info ]   Model size: <4.400 ; 2.303 ; 0.183>
09:21:04(0000100)   [info ]   Model center: <0.204 ; 0.493 ; 0.055>
09:21:04(0000101)   [info ]   Model radius: 0.000
09:21:04(0000102)   [info ]   Model size: <4.400 ; 2.303 ; 0.183>
09:21:04(0000103)   [info ]   Model center: <0.000 ; 0.000 ; 0.000>
09:21:04(0000104)   [info ]   Model radius: 0.000
09:21:04(0000105)   [warn ]   GPU program GPU_program_90 - Vertex shader info log: 0:2(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:04(0000106)   [error]   GPU program GPU_program_90 - Vertex shader error: 0:2(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:04(0000107)   [warn ]   GPU program GPU_program_90 - Pixel shader info log: 0:2(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:04(0000108)   [error]   GPU program GPU_program_90 - Pixel shader error: 0:2(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

09:21:34(0000109)   [info ]   is_3d_object() - extension: .gltf
09:21:34(0000110)   [info ]   is_3d_object() - extension: .gltf is a supported 3D format

onlyLinuxLuvUBack

For amd people you need to do:
on  ubuntu 18.04.1: with xfce desktop:
sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt update
sudo apt upgrade
sudo apt install libvulkan1 mesa-vulkan-drivers vulkan-utils

then set vars before running:

$ MESA_GL_VERSION_OVERRIDE=3.2 MESA_GLSL_VERSION_OVERRIDE=150 ./MadView3D






JeGX

I only added OpenGL 2.1 and OpenGL 3.2+ shaders in MadView3D.

A quick fix to your issue is to edit the {MadView3D folder}/_src/init_shaders.lua file and replace all #version 150
by #version 130. That should make MadView3D compatible with OpenGL 3.0.

Let me know.

romplox

#4
I also cannot get it to run...

ERROR: geexlab::demo - Unable to initialize the 3d window win3d01 (renderer type: OpenGL).

log: https://pastebin.com/TeYKANGy


I am also using xubuntu 18.04.1 , but in a virtualBox VM right now (so also openGL 3.0 only)

tried to replace 150 > 130, tried the  MESA_GL_VERSION_OVERRIDE thingy, to no avail

I did not try the updated graphics drivers, but I also installed the mesa-vulkan-drivers and vulkan-utils packages.

the GL-Z utility is runnig fine, as does latest GeeXLab Free:



I can also run MadView3D 0.2.0 bundled with GeeXLab Free:


But it utilizes the CPU with 2 Processors with 120-130% though...

btw, the MadView3D 0.3.x dylibs folder:  you have libassimp in there 3 times, as symlinks do not work with zip files. Use tar.gz or tar.bz2. What's more the lib is not stripped (strip  --strip-unneeded ; 80+mb > 14mb), you could compress it further with upx (14mb > 6mb).
I found its the same with GeeXLab Free, you could strip down the download sizes significantly.

JeGX

If GeeXLab Free runs in your VM, MadView3D should run as well.

One thing you can try is to change the OpenGL version in the _src/main.xml file.

Replace


  <window name="win3d01" title="MadView3D"
          width="1280" height="820"  msaa="4X MSAA"
          gl_version_major="2" gl_version_minor="0" />


by


  <window name="win3d01" title="MadView3D"
          width="1280" height="820"  msaa="4X MSAA"
          gl_version_major="3" gl_version_minor="0" />


and let me know.

romplox


JeGX

I will test MadView3D on a Linux box with OpenGL 3.0 (Nouveau driver), maybe I will see the issue.

romplox

have now tried on real hardware, there it works. but the GTIF logo is black? is there something missing? Or is there a Lighting switch?

Setting up a VM is no rocket science either (on debianbased: sudo apt-get install virtualbox ; then get a preconfigured image of your choice from osboxes.org and drag it onto virtualbox.)

JeGX

Ok, I'm testing right now on Linux Mint 18.3 + Nouveau driver and I see the 3D model rendered in black. Probably a story of shaders. I'm going to fix it.

JeGX

I fixed the bug (I added the support of #version 130 in file: _src/init_shaders.lua) and uploaded a new version 0.3.0 build 20181101:

https://www.geeks3d.com/dl/show/578

Let me know if it works...

romplox

still getting



in virtual machine.

Testing on real hardware is a bit postboned, I will report soon.