FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

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

3 posters

Go down

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

Post  mordenkaim 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

Back to top Go down

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

Post  oioioi 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

Back to top Go down

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

Post  sio2interactive Sat Aug 01, 2009 7:28 am

After rendering the objects call sio2objectreset...
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

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

Post  oioioi Sat Aug 01, 2009 7:36 am

D'oh!

oioioi

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

Back to top Go down

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

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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