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.

tutorial14 problem!

2 posters

Go down

tutorial14 problem! Empty tutorial14 problem!

Post  LuisLee 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 : 36

Back to top Go down

tutorial14 problem! Empty Re: tutorial14 problem!

Post  sio2interactive Wed Jul 29, 2009 9:00 pm

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

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

http://sio2interactive.com

Back to top Go down

tutorial14 problem! Empty Re: tutorial14 problem!

Post  LuisLee 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 : 36

Back to top Go down

tutorial14 problem! Empty Re: tutorial14 problem!

Post  sio2interactive Wed Jul 29, 2009 10:10 pm

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

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

http://sio2interactive.com

Back to top Go down

tutorial14 problem! Empty Re: tutorial14 problem!

Post  LuisLee 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 : 36

Back to top Go down

tutorial14 problem! Empty Re: tutorial14 problem!

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

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

http://sio2interactive.com

Back to top Go down

tutorial14 problem! Empty Re: tutorial14 problem!

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