Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
how to add texture; not working , bad scripts ?
Topic Started: Mar 18 2009, 08:48 PM (209 Views)
nirvanaTGM
Member Avatar
Member
[ *  * ]
I have this in cotntroll model :

LoadTexture("gfx/htex1.jpg",55);

And in character object :

file="test.u3d";

LoadMesh();

SetModelMaterial(55,255,255,255,255);

And texture is doesnt't work , the model is only grey .
Posted Image Signature :p
Offline Profile Quote Post Goto Top
 
black_eagle_
Member Avatar
Newbie
[ * ]
1. U3d can n0t set the texture for .u3d model

2. In the function SetModelMaterial(55,255,255,255,255); the first argument is n0t for the texture's index it is for the certain material 0f the m0del
Offline Profile Quote Post Goto Top
 
skarik
Member Avatar
kitten eating scum
[ *  *  *  *  *  * ]
nirvanaTGM
Mar 18 2009, 08:48 PM
I have this in cotntroll model :

LoadTexture("gfx/htex1.jpg",55);

And in character object :

file="test.u3d";

LoadMesh();

SetModelMaterial(55,255,255,255,255);

And texture is doesnt't work , the model is only grey .
Code:
 

SetMaterialStageTexture(0,0,55);

Please read the manual or just read the comments in the scripts to find out what arguments they actually take.
Edited by skarik, Mar 19 2009, 12:40 AM.
Blog|EHS
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply