Programatically Creating Objects
+3
aheirich
sio2interactive
tbraun
7 posters
Page 2 of 2 • 1, 2
Re: Programatically Creating Objects
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
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
Re: Programatically Creating Objects
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.
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.
Re: Programatically Creating Objects
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!
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
Re: Programatically Creating Objects
sio2, or if anyone else could please help me out on the post above that will be much appreciated!!!
Thanks!!!
Thanks!!!
kzv- Posts : 8
Join date : 2009-06-11
Page 2 of 2 • 1, 2
Similar topics
» duplicating objects at runtime and changing textures on the duplicated objects
» Programatically applying a texture
» Attached objects?
» Duplicating objects
» Static Objects
» Programatically applying a texture
» Attached objects?
» Duplicating objects
» Static Objects
Permissions in this forum:
You cannot reply to topics in this forum