Revolution engine 0.3
June 24, 2009 12:55AM
when using the command addObj() the wii hangs and shows a black screen with green and red dots...

anyone know why?!

i have narrow it down to that it must be the addObj() function that does this....

ex.

OBJECT* LAND = NewObj(TERRAIN, SURFACE, NULL,(Vector){0.0, 0.0, 0.0}, (Vector){0.0, 0.0, 0.0}, VISIBLE);
addObj(LAND);
Re: Revolution engine 0.3
June 24, 2009 01:04PM
Ok, I'm sorry, this is my fault
In 0.3 addObj() is automatically called everytime you create a new object, so you must not call it again or it will create a self refencing object and the render queue will never find an end. This will cause the wii hanging.

So just do:

OBJECT* LAND = NewObj(TERRAIN, SURFACE, NULL,(Vector){0.0, 0.0, 0.0}, (Vector){0.0, 0.0, 0.0}, VISIBLE);

without:
addObj(LAND);

Hope it helps
Re: Revolution engine 0.3
June 24, 2009 02:19PM
Thanks again ;)

i had allready done that works fine! :)
Sorry, only registered users may post in this forum.

Click here to login