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.

Programatically Creating Objects

+3
aheirich
sio2interactive
tbraun
7 posters

Page 2 of 2 Previous  1, 2

Go down

Programatically Creating Objects - Page 2 Empty Re: Programatically Creating Objects

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

Back to top Go down

Programatically Creating Objects - Page 2 Empty Re: Programatically Creating Objects

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

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

http://sio2interactive.com

Back to top Go down

Programatically Creating Objects - Page 2 Empty Re: Programatically Creating Objects

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

Back to top Go down

Programatically Creating Objects - Page 2 Empty Re: Programatically Creating Objects

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

Back to top Go down

Programatically Creating Objects - Page 2 Empty Re: Programatically Creating Objects

Post  Sponsored content


Sponsored content


Back to top Go down

Page 2 of 2 Previous  1, 2

Back to top

- Similar topics

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