Mesh disappear after adding ipo-animation

View previous topic View next topic Go down

Mesh disappear after adding ipo-animation

Post  skaterazn on Mon Aug 31, 2009 8:21 am

hello,
my cube disapper after i added an ipo-curve to it.
but when i start the animation the cube is visible again. so how can i make the cube visible without starting the animation?

skaterazn

Posts : 12
Join date : 2009-07-03

View user profile

Back to top Go down

Re: Mesh disappear after adding ipo-animation

Post  sio2interactive on Mon Aug 31, 2009 4:53 pm

Can you do a bit of debugging and check where the render function of that object jump? That will help me to check where it can be wrong...

_________________
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 : 37
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Mesh disappear after adding ipo-animation

Post  Faikus on Tue Sep 01, 2009 8:34 am

I had the same problem. The reason for me was in sio2ObjectRender: the IPO's matrix is applied even if the animation is not set to play, but this matrix contains random values initially and is only filled with valid ones in sio2ResourceRender if the IPO has been set to play. I worked around this in the method sio2ObjectRender of file sio2_object.cc by replacing the line

if( _SIO2object->_SIO2ipo)

with

if( _SIO2object->_SIO2ipo && _SIO2object->_SIO2ipo->state == SIO2_PLAY)

Faikus

Posts : 23
Join date : 2009-05-26
Location : Berlin

View user profile

Back to top Go down

Re: Mesh disappear after adding ipo-animation

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