Crash when rendering model as well as font
Page 1 of 1 • Share •
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
Can you post your init code?

IanLinart- Posts: 26
Join date: 2009-08-12
Age: 21
Location: Montréal

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...
_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com

sio2interactive- Posts: 1524
Join date: 2008-08-26
Age: 30
Location: Shanghai

Permissions of this forum:
You cannot reply to topics in this forum







