I have the first attempt to aprim to load a 3D model. An example is given here from the lighthouse3d link.
It compiles without errors. However, I am getting a similar error error that Jeffrey discussed with the comments below the post.
Ready for OpenGL 3.3
Import of scene bench.obj succeeded.WARNING: 0:? : " : Version number deprecate
d in OGL 3.0 forward compatible context driver
No errors.
WARNING: 0:? : " : Version number deprecated in OGL 3.0 forward compatible cont
ext driver
ERROR: 0:35: βtexture2Dβ : function is removed in Forward Compatibile context
ERROR: 0:35: βtexture2Dβ : no matching overloaded function found (using implicit
conversion)
ERROR: 0:35: βassignβ : cannot convert from βconst floatβ to β4-component vecto
r of floatβ
Vendor: Intel
Renderer: Intel(R) HD Graphics 2500
Version: 3.3.0 β Build 9.17.10.2875
GLSL: 3.30 β Build 9.17.10.2875
and probably this example has been fixed, so this error does not seem to appear again. But this shows another, my case:
Ready for OpenGL 3.3
Import of scene bench.obj succeeded.WARNING: 0:? : " : Version number deprecate
d in OGL 3.0 forward compatible context driver
No errors.
WARNING: 0:? : " : Version number deprecated in OGL 3.0 forward compatible cont
ext driver
ERROR: 0:16: βoutputβ : reserved keyword
ERROR: 0:16: βoutputβ : syntax error syntax error
Vendor: Intel
Renderer: Intel(R) HD Graphics 4000
Version: 3.3.0 β Build 9.17.10.2843
GLSL: 3.30 β Build 9.17.10.2843
if possible, I try not to delve into computer graphics, just download the model
Any suggestion?
Edit01: I think it will be a shader code: link
Edit02: I looked at it in a separate text file dirlightdiffambpix.frag and it has an output var link
, , "" - , var ... output1