Some tests in the test_feature-directory fail for me when I use the /O2 (Optimize for Speed) flag in Visual Studio. The problem goes away when I use /O1 (Optimize for Size) or no optimization at all. This happens in both Angelscript 2.14.1 and 2.15.0.
The failing tests are TestExecute32Args, TestExecute32MixedArgs and TestExecuteThis32MixedArgs. In case of TestExecute32MixedArgs, for example, I get:
I'm making my first steps on using shader reflection in DX10.
Now the docs say that I must use D3DX10ReflectShader, which will give me a pointer to a ID3D10ShaderReflection1. The 1 at the end leads me to believe it's a DirectX 10.1-structure, as does the remark in the documentation: 'This requires Windows Vista Service Pack 1'.
So what happens when I use D3DX10ReflectShader on a Vista that does not have SP1? Can I simply cast the returned pointer to a ID3D10ShaderReflection, thereby maintaining DX 10.0 compatibility?
I think I just ran into a bug in as_tokenizer.cpp. In line 118 (in 2.11.2), a loop is run on every character of the whitespace-string. The length of this string is determined by doing:
for( int w = 0; w < (int)sizeof(whiteSpace); w++ )
However, sizeof(whiteSpace) seems to give the size of the pointer to the string, which on 32-bit is 4 and incidentally correct. On 64-bit however, this becomes 8, which leads to all kinds of weird errors. Changing the line to
for( int w = 0; w < 4; w++ )
fixed these problems for me.
[Edited by - DaBono on March 6, 2008 3:37:16 PM]
I'm looking for a method to calculate the control points of a Bezier-spline at a distance d from a Bezier-spline I have. So, say spline B describes the middle of a road, I want to determine the spline C that is the middle of one lane.
This is in 2D, so I can calculate every point of C by determining the derivative of B at a certain t, finding the perpendicular (y, -x) and offsetting by my distance d.
However, what I want is the control points.
I thought I could do this by choosing to points on B (e.g. t=1/3, t=2/3), calculating the points on C with the method above, and then solving the Bezier-spline-equation with these points. However, it seems I cannot assume that the t of these points on C are 1/3 and 2/3 as well.
Could somebody please point me in the right direction?