Crash when rendering model as well as font
4 posters
Crash when rendering model as well as font
I can render a font or a model without any problem but when I am rendering both I get a crash EXC_BAD_ACCESS. The font is from a different package than the camera and the model. Another strange thing that happens is that the font seems to have the same vertex colours as the model like they are both sharing the same buffer.
It would be nice if someone could push me into the right direction. For me it seems like both use the same vertex buffer and both try to free it.
Daniel
It would be nice if someone could push me into the right direction. For me it seems like both use the same vertex buffer and both try to free it.
Daniel
AstAn- Posts : 12
Join date : 2009-08-22
Re: Crash when rendering model as well as font
Which part of the init code? I have wrapped a lot of stuff so it is not like I have one method that I could post here.
AstAn- Posts : 12
Join date : 2009-08-22
Re: Crash when rendering model as well as font
If you use sio2objectRender to render your object you have to call sio2objectReset after rendering the model, if you use sio2ResourceRender this is not the problem
oioioi- Posts : 136
Join date : 2008-12-02
Location : Norway
Re: Crash when rendering model as well as font
Like oioioi was saying you have to manage the state... so you have to reset what you have set on...
sio2ObjectReset();
sio2MaterialReset();
sio2FontReset();
sio2WidgetReset();
etc...
You can find more information in the code comments of the tutorials...
sio2ObjectReset();
sio2MaterialReset();
sio2FontReset();
sio2WidgetReset();
etc...
You can find more information in the code comments of the tutorials...
Similar topics
» Bitmap Font Generator
» Bitmap Font Generator
» Create SIO2font by name from iPhone font
» Using Md5 model format
» model disappears when doing sio2ObjectSoftCopy
» Bitmap Font Generator
» Create SIO2font by name from iPhone font
» Using Md5 model format
» model disappears when doing sio2ObjectSoftCopy
Permissions in this forum:
You cannot reply to topics in this forum