Jump to content

Debugging OpenGL error: invalid operation


photo

Recommended Posts

I am getting "OpenGL error: invalid operation" in console

 

How can we debug this , is it the issue with engine or our app ?

 

what we are doing , migration from Unigine 1 to Unigine 2.3.1?

1)

Our material looks like this

<material name="abc_custom_material">
<blend src="src_alpha" dest="one_minus_src_alpha"/>
<state name="deferred">0</state>
<state name="light_spot">0</state>
<state name="light_omni">0</state>
<state name="light_proj">0</state>
<state name="light_world">0</state>
<options object="mesh_dynamic" glow_mask="0" transparent="2" parallax_mask="0" cast_shadow="0" receive_shadow="0" cast_world_shadow="0" receive_world_shadow="0" receive_translucent="0"/>
<shader pass="ambient" object="mesh_dynamic"
defines="BASE_AMBIENT"
alpha_test_defines=",ALPHA_TEST"
vertex="shaders/abc_custom_material.vert" geometry="abc_custom_material.geom" fragment="abc_custom_material.frag"/>
<parameter name="vectorX" type="expression">vec3(1.0f,0.0f,0.0f)</parameter>
<parameter name="vectorY" type="expression">vec3(0.0f,1.0f,0.0f)</parameter>
<parameter name="vectorZ" type="expression">vec3(0.0f,0.0f,1.0f)</parameter>
<parameter name="xyz_color" type="color" shared="1">1 1 1 0</parameter>
<parameter name="around_z" shared="1">0 0 0 0</parameter>
<parameter name="abc_color" type="color" shared="1">1 1 1 0</parameter>
</material>

Is the material file correct ? is syntax

 <parameter name="vectorX" type="expression">vec3(1.0f,0.0f,0.0f)</parameter> 

still valid in Unigine 2.3.1 ?

Link to comment
×
×
  • Create New...