wenkael / kinect-ultra

Automatically exported from code.google.com/p/kinect-ultra
Other
0 stars 0 forks source link

Object texture #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
finally i can change the eyeslugger object..but i cant load my pobject texture, 
can someone tell me how to load the object texture and wrap eh .vtx file. so 
the object can have some color or pattern..

Original issue reported on code.google.com by lucsilve...@gmail.com on 6 Sep 2011 at 3:56

GoogleCodeExporter commented 8 years ago
i have the same problem..i cant load my texture..can somebody help me,please??

Original comment by g...@wir-fit.com on 12 Sep 2011 at 6:57

GoogleCodeExporter commented 8 years ago
There is no feature to customize the texture. Feel free to add the feature as 
per your requirement. (This is the exact point I made this program open-source.)

Original comment by tom...@gmail.com on 12 Sep 2011 at 12:41

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
i try many things to wrap the vtx file with my texture, but it is so hard to 
wrap the object with  my texture.

Original comment by mgy...@gmail.com on 14 Sep 2011 at 9:53

GoogleCodeExporter commented 8 years ago
please can you tell me how to load a texture file into the .vtx file??

Original comment by lucsilve...@gmail.com on 14 Sep 2011 at 10:15

GoogleCodeExporter commented 8 years ago
i want to load my obj file, can you tell me which script i must change for??

Original comment by mgy...@gmail.com on 15 Sep 2011 at 12:24

GoogleCodeExporter commented 8 years ago
Hi mgy...@gmail.com,

I agree it will not be trivial. In readBatchDef function in util.cpp, you will 
find a loop to generate a command to render polygons by b->Normal3f and 
b->Vector3f commands. Theoretically speaking, you can map your texture upon the 
polygons by adding b->MultiTextCoord2f command. However, you still need to 
setup your texture first and assign an ID, and also need to give the 
coordinates on the texture you want to map to the polygon.

Original comment by tom...@gmail.com on 19 Sep 2011 at 2:25

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi lucsilve...@gmail.com,

As I said in comment #7, it wouldn't be trivial. Study OpenGL and come up with 
your own solution. It should be a good exercise for a programmer.

Original comment by tom...@gmail.com on 19 Sep 2011 at 2:36

GoogleCodeExporter commented 8 years ago
i attach a object+texture for you..can you render an object and show me the 
code i need  to render the object with a texture..please

sorry to bother you again..

Original comment by lucsilve...@gmail.com on 20 Sep 2011 at 5:35

Attachments: