FontPrint causes EXC_BAD_ACCESS when rendering with 3D objects...
3 posters
FontPrint causes EXC_BAD_ACCESS when rendering with 3D objects...
Here's the problem...
I can render text with FontPrint fine when I don't render any 3D objects.
I can render 3D objects fine when I comment out FontPrint in templateRender.
However when I use both I get an EXC_BAD_ACCESS everytime FontPrint executes. Does this issue ring a bell to anyone?
I'm convinced it's probably something simple that I've missed, since you've accomplished the same thing I'm trying to do in multiple tutorials. I'm just trying to set up a debug line so I can view some values as the program runs.
Oh, one other detail... the default material (basically just some vertex coloring from blender) for the 3D objects is rendered when it fails with the FontPrint which suggests it is failing on the first pass of templateRender because I am planning to render the textures programatically if it makes a difference.
Any help would be greatly appreciated.
I can render text with FontPrint fine when I don't render any 3D objects.
I can render 3D objects fine when I comment out FontPrint in templateRender.
However when I use both I get an EXC_BAD_ACCESS everytime FontPrint executes. Does this issue ring a bell to anyone?
I'm convinced it's probably something simple that I've missed, since you've accomplished the same thing I'm trying to do in multiple tutorials. I'm just trying to set up a debug line so I can view some values as the program runs.
Oh, one other detail... the default material (basically just some vertex coloring from blender) for the 3D objects is rendered when it fails with the FontPrint which suggests it is failing on the first pass of templateRender because I am planning to render the textures programatically if it makes a difference.
Any help would be greatly appreciated.
mordenkaim- Posts : 21
Join date : 2009-05-19
Re: FontPrint causes EXC_BAD_ACCESS when rendering with 3D objects...
If your on 1.3.6(I haven't looked at 1.4 yet) you can try to call sio2MaterialReset() before sio2FontPrint.
If this doesn't work, can you tell me if you use sio2ResourceRener or sio2ObjectRender. When I use sio2ObjectRender in my current project I can't draw manually using opengl which is basically the same as sio2FontPrint, If you use sio2ObjectRender anywhere try removing it or replacing it with sio2ResourceRender. I have no idea whats causing this problem.
If this doesn't work, can you tell me if you use sio2ResourceRener or sio2ObjectRender. When I use sio2ObjectRender in my current project I can't draw manually using opengl which is basically the same as sio2FontPrint, If you use sio2ObjectRender anywhere try removing it or replacing it with sio2ResourceRender. I have no idea whats causing this problem.
oioioi- Posts : 136
Join date : 2008-12-02
Location : Norway
Re: FontPrint causes EXC_BAD_ACCESS when rendering with 3D objects...
After rendering the objects call sio2objectreset...
oioioi- Posts : 136
Join date : 2008-12-02
Location : Norway
Similar topics
» Copies of objects not rendering
» Every other triangle rendering black
» duplicating objects at runtime and changing textures on the duplicated objects
» Physic object
» Normals / Smooth rendering
» Every other triangle rendering black
» duplicating objects at runtime and changing textures on the duplicated objects
» Physic object
» Normals / Smooth rendering
Permissions in this forum:
You cannot reply to topics in this forum