3d scene draw a 2d image.
2 posters
3d scene draw a 2d image.
Such as a bullet hit the wall, posted on the wall of the crater.
What is the function to be used in SIO2 engine?
My question is:
1 3d scene draw a 2d image. sio2 whether to provide this interface?
2 The blood of the head characters . use Billboard?
3 How to use this function?
void sio2ObjectBillboard( SIO2object *_SIO2object,
vec3 *_vec ); The second parameter is what? The Camera Position ?
thanks!
What is the function to be used in SIO2 engine?
My question is:
1 3d scene draw a 2d image. sio2 whether to provide this interface?
2 The blood of the head characters . use Billboard?
3 How to use this function?
void sio2ObjectBillboard( SIO2object *_SIO2object,
vec3 *_vec ); The second parameter is what? The Camera Position ?
thanks!
LuisLee- Posts : 85
Join date : 2009-04-26
Age : 37
Re: 3d scene draw a 2d image.
You don't have to really call this function just set the SIO2_OBJECT_BILLBOARD flags and SIO2 will do all the dirty work for ya
Re: 3d scene draw a 2d image.
sio2interactive wrote:You don't have to really call this function just set the SIO2_OBJECT_BILLBOARD flags and SIO2 will do all the dirty work for ya
ok!I know it! thank you !
This function is very useful!
sio2EnableState( &sio2ResourceGetObject( sio2->_SIO2resource,
YOUROBJECT)->flags,
SIO2_OBJECT_BILLBOARD);
LuisLee- Posts : 85
Join date : 2009-04-26
Age : 37
Re: 3d scene draw a 2d image.
I want to ask another question:
In the 3D environment.
Such as a car hitting the wall, an explosion occurred.Because the explosion map is a 2d image.
How do I paste an explosion map?
I know that the first access to the car's location,How to explode at this location paste pictures?
In the 3D environment.
Such as a car hitting the wall, an explosion occurred.Because the explosion map is a 2d image.
How do I paste an explosion map?
I know that the first access to the car's location,How to explode at this location paste pictures?
LuisLee- Posts : 85
Join date : 2009-04-26
Age : 37
Re: 3d scene draw a 2d image.
Just get the contact points from bullet... I already paste the code on the forum somwhere just dig a bit:)
Similar topics
» How use SIO2widget draw HP Bar?
» How to draw pictures of some of the region?
» Enabling Bullet Debug Draw (Code included)
» loading more than once scene
» Loading a new scene
» How to draw pictures of some of the region?
» Enabling Bullet Debug Draw (Code included)
» loading more than once scene
» Loading a new scene
Permissions in this forum:
You cannot reply to topics in this forum