Programatically Creating Objects

Page 2 of 2 Previous  1, 2

View previous topic View next topic Go down

Re: Programatically Creating Objects

Post  kzv on Fri Jun 12, 2009 12:25 am

I have actually read this post before.

But I couldn't find the part of the code that sets different images to different faces of a cube.. (e.g. the name of the cube is Cube.001)

Could you please help..?

Thanks!
KE

kzv

Posts : 8
Join date : 2009-06-11

View user profile

Back to top Go down

Re: Programatically Creating Objects

Post  sio2interactive on Fri Jun 12, 2009 1:29 am

This is done by the vertexgroup every group have a material applied on them...

Basically what you got is:

1. The VBO all vertex data

2. Vertex group, indices used to draw the object... whatever indices assigned within a group will be applied with its respective material.

_________________
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: Programatically Creating Objects

Post  kzv on Tue Jun 16, 2009 9:38 pm

sio2, thanks for your reply.

just wondering if you could write me a few lines of code that: changes a face a cube with a image file..?

I'm a bit stuck on this.. if you could write me a few lines of code that will be great.

Thanks!

kzv

Posts : 8
Join date : 2009-06-11

View user profile

Back to top Go down

Re: Programatically Creating Objects

Post  kzv on Thu Jun 18, 2009 6:42 pm

sio2, or if anyone else could please help me out on the post above that will be much appreciated!!!

Thanks!!!

kzv

Posts : 8
Join date : 2009-06-11

View user profile

Back to top Go down

Re: Programatically Creating Objects

Post  Sponsored content


Sponsored content


Back to top Go down

Page 2 of 2 Previous  1, 2

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum