[C++] PerPixelLighting with reflective water
-
- Posts: 97
- Joined: Sat Oct 14, 2006 10:51 am
- Location: Australia,melbourne
-
- Posts: 28
- Joined: Sun Sep 17, 2006 3:59 pm
- Location: iraq
im also getting errors..
vc2005EE says that you're attempting to access
a private member variable at line 126
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...
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);
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...
-
- Posts: 28
- Joined: Sun Sep 17, 2006 3:59 pm
- Location: iraq
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.
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.