Page 2 of 2

Posted: Sun Jan 07, 2007 6:02 am
by abraham
the reflective soruce code has soo many errors in dev c++ aswell and i tried it in irrlicht 1.2

Posted: Sun Jan 07, 2007 11:03 am
by sio2
abraham wrote:the reflective soruce code has soo many errors in dev c++ aswell and i tried it in irrlicht 1.2
What do you mean by "soo many errors"? Post the build log.

Posted: Sun Jan 07, 2007 11:49 am
by a_haouchar
the reason i didn post the build log becuase i thought this thread was finished

Image

thanks for replying and i got similar errors in vc++

Posted: Sun Apr 01, 2007 7:24 am
by ClownieTheMalicious
im also getting errors..
vc2005EE says that you're attempting to access
a private member variable at line 126

Code: Select all

      services->setVertexShaderConstant("mWorldViewProj",&worldViewProj.M[0], 16);
specifically "M". defined in matrix4 as a private variable... I don't know why you're even using M[0] in the view projection matrix.

also, could you please give a possible workaround to the "DXbreaking" that irr 1.2 did that makes this code not work in DX.

Also, i can't get your code to compile for the life of me. mainly since idont know what to do about the private member accessing error...

Posted: Sun Apr 01, 2007 9:20 am
by hybrid
You should change the call &worldViewProj.M[0] to worldViewProj.pointer() in Irrlicht 1.3

Posted: Mon Apr 02, 2007 4:53 am
by ClownieTheMalicious
thanks for the tip hybrid- but that still doesn't compile, nor explain why the compiled binary fails under irr1.1,1.2 and 1.3 dll's.

so, hybrid, the pointer() function returns that as a pointer- could you explain to me the technical reason as to why you no longer need the memory address ('&' of mWorldProjblah) and now only need the pointer? I'm not seeing how that works... sorry new to c++ logic.
I'm a java programmer... forgive me.

Posted: Mon Apr 02, 2007 7:22 am
by hybrid
The array M is now private to the matrix class. So you cannot take the address of it anymore, nor can you access it any other way. You have to use the proper access methods (which allows us to track the usage and improve the testing for identity matrices).