tutorial14 problem!

View previous topic View next topic Go down

tutorial14 problem!

Post  LuisLee on Wed Jul 29, 2009 8:56 pm

In the tutorial14,there is a cylinder,How to set up that cylinder, Binding md2 files. thank you ! Very Happy

LuisLee

Posts : 85
Join date : 2009-04-26
Age : 29

View user profile

Back to top Go down

Re: tutorial14 problem!

Post  sio2interactive on Wed Jul 29, 2009 9:00 pm

Use the parent transformation of the SIO2transform handle of the object...

_________________
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: tutorial14 problem!

Post  LuisLee on Wed Jul 29, 2009 9:32 pm

sio2interactive wrote:Use the parent transformation of the SIO2transform handle of the object...

I am sorry, I mean wrong.Could you tell me how to set up in the blender? Very Happy

LuisLee

Posts : 85
Join date : 2009-04-26
Age : 29

View user profile

Back to top Go down

Re: tutorial14 problem!

Post  sio2interactive on Wed Jul 29, 2009 10:10 pm

Not in blender... you have to do it in code...

_________________
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: tutorial14 problem!

Post  LuisLee on Wed Jul 29, 2009 11:39 pm

sio2interactive wrote:Not in blender... you have to do it in code...

Thank you so fast reply !

What I mean is: How do I set up cylinder in the blender?

Is:How do I set up the parameters of the cylinder int blender?

Code is as follows:
Code:

   vec3 gravity;   
   gravity.x =  0.0f;
   gravity.y =  0.0f;
   gravity.z = -10.0f;
   sio2->_SIO2physic = sio2PhysicInit( "earth" );
   sio2PhysicSetGravity( sio2->_SIO2physic,
                    &gravity );   
   sio2PhysicPlay( sio2->_SIO2physic );   

   sio2ResourceBindAllPhysicObjects( sio2->_SIO2resource,
                     sio2->_SIO2physic );
.
.
.
.
.
_SIO2md2->_SIO2transform->_SIO2parent = sio2ResourceGetObject( sio2->_SIO2resource,                                                                           "object/yoshi" )->_SIO2transform;
void  Render()
{
  .
  .
  .
  sio2PhysicRender( sio2->_SIO2physic, 1.0f / 60.0f, 1 );   
 ....
}


True Is: cylinder disappear,you can see md2.


I can see the cylinder,can't see md2 model. why?
Sad

LuisLee

Posts : 85
Join date : 2009-04-26
Age : 29

View user profile

Back to top Go down

Re: tutorial14 problem!

Post  sio2interactive on Thu Jul 30, 2009 2:00 am

Dude you cross post everywhere on this forum... but its always the same answer:

tutorial14, tutorial14, tutorial14, tutorial14, tutorial14

_________________
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: tutorial14 problem!

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