Add to Cart

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

+2
1

dirlightdiffambpix.frag, var

, "" - , var ... output1, ,

0

All Articles