3d scene draw a 2d image.

View previous topic View next topic Go down

3d scene draw a 2d image.

Post  LuisLee on Tue Sep 01, 2009 2:37 am

Such as a bullet hit the wall, posted on the wall of the crater. Very Happy
What is the function to be used in SIO2 engine?
Laughing
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 : 30

View user profile

Back to top Go down

Re: 3d scene draw a 2d image.

Post  sio2interactive on Tue Sep 01, 2009 5:15 am

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 Wink

_________________
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: 3d scene draw a 2d image.

Post  LuisLee on Wed Sep 02, 2009 7:30 pm

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 Wink

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 : 30

View user profile

Back to top Go down

Re: 3d scene draw a 2d image.

Post  LuisLee on Wed Sep 02, 2009 7:40 pm

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?
Very Happy
I know that the first access to the car's location,How to explode at this location paste pictures?
Very Happy

LuisLee

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

View user profile

Back to top Go down

Re: 3d scene draw a 2d image.

Post  sio2interactive on Wed Sep 02, 2009 9:17 pm

Just get the contact points from bullet... I already paste the code on the forum somwhere just dig a bit:)

_________________
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: 3d scene draw a 2d image.

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