FontPrint causes EXC_BAD_ACCESS when rendering with 3D objects...

View previous topic View next topic Go down

FontPrint causes EXC_BAD_ACCESS when rendering with 3D objects...

Post  mordenkaim on Sat Aug 01, 2009 6:56 am

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. Smile

mordenkaim

Posts : 21
Join date : 2009-05-19

View user profile

Back to top Go down

Re: FontPrint causes EXC_BAD_ACCESS when rendering with 3D objects...

Post  oioioi on Sat Aug 01, 2009 7:18 am

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.

oioioi

Posts : 136
Join date : 2008-12-02
Location : Norway

View user profile

Back to top Go down

Re: FontPrint causes EXC_BAD_ACCESS when rendering with 3D objects...

Post  sio2interactive on Sat Aug 01, 2009 7:28 am

After rendering the objects call sio2objectreset...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: FontPrint causes EXC_BAD_ACCESS when rendering with 3D objects...

Post  oioioi on Sat Aug 01, 2009 7:36 am

D'oh!

oioioi

Posts : 136
Join date : 2008-12-02
Location : Norway

View user profile

Back to top Go down

Re: FontPrint causes EXC_BAD_ACCESS when rendering with 3D objects...

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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