check_view()

Posted By: Saturnus

check_view() - 12/19/10 00:46

I'm not sure whether this is a bug or not. If it isn't, the manual should make one aware of this behaviour:

check_view() crashes when it gets called in the first or second frame. From the third frame on it works without crashing. Occurs in both 8.10 and 7.86.

Example:
Code:
#include <acknex.h>

void main () {
	level_load(NULL);
	//wait(2);
	view_check(camera,vector(-1,-1,-1),vector(1,1,1));
}


Posted By: jcl

Re: check_view() - 12/20/10 10:13

You're right - the crash is a bug, a message should appear instead. view_check requires the video device to be opened and at least one frame to be rendered. This will be mentioned in the manual and the crash will be caught.
© 2024 lite-C Forums