My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 13: Object texture
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by lucsilve...@gmail.com, Sep 5, 2011
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..
Sep 11, 2011
#1 g...@wir-fit.com
i have the same problem..i cant load my texture..can somebody help me,please??
Sep 12, 2011
Project Member #2 tom...@gmail.com
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.)
Labels: -Type-Defect Type-Other
Sep 14, 2011
#4 mgy...@gmail.com
i try many things to wrap the vtx file with my texture, but it is so hard to wrap the object with  my texture.
Sep 14, 2011
#5 lucsilve...@gmail.com
please can you tell me how to load a texture file into the .vtx file??
Sep 15, 2011
#6 mgy...@gmail.com
i want to load my obj file, can you tell me which script i must change for??
Sep 18, 2011
Project Member #7 tom...@gmail.com
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.
Sep 18, 2011
Project Member #9 tom...@gmail.com
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.
Sep 19, 2011
#10 lucsilve...@gmail.com
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..
sword.vtx
502 KB   View   Download
fireSF.PNG
148 KB   View   Download

Powered by Google Project Hosting