Game Development Community

Doubt of animation, Camera and texture

by KLEBER SEIXAS · in General Discussion · 11/14/2006 (12:05 pm) · 10 replies

My problems are the following ones:
- I am not obtaining to make an livened up object not to player. how I make to pause a animation?
- I possess an object, two hands holding a box, that I am not obtaining to place the texture in them. they are 2 textures, 1 for the hands and another one for the box. How I make this?

all help is coming well ^^

#1
11/14/2006 (1:17 pm)
I'm sorry, i would really like to help you. But i am not understanding your sentiences to well.

Pause an animations is:

%obj.pauseThread(...)

The second part i am not understanding to well.

Textures for objects are created when the object is created in the editor it is made in. I will take a shot.

To use skins, you need to name your model textures like this eg:

base.hair.human.jpg or .png
brown.hair.human.jpg
black.hair.human.jpg

The 'base.hair.human' texture is the one you apply to the model. When a new 'skin' is applied, it searches for all textures that start with 'base', and replaces that part of the texture name with the new skin name.

eg.

%obj.setSkinName("brown") would change:

base.hair.human to brown.hair.human.
#2
11/20/2006 (1:24 pm)
I am assume you mean modeling the model. You create the hands and texture then create the box and texture. Export as dts. Or create the hands with mountpoint and texture then export as dts. Now create the box with a mountpoint and mount them in the game.
#3
11/21/2006 (10:34 am)
Ok. here this mine code. if something will be missed informs to me ^^

new Material(a1player)
{
 baseTex[0] = "PINTURA BASE";
 baseTex[1] = "PINTURA SUPORTE A1";
 mapTo = "a1player";
};

new Material(Maotxt)
{
   baseTex[0] = "PINTURA BASE - MAO2";
   baseTex[1] = "PINTURA SUPORTE A1";
   bumpTex[0] = "Mao";

   pixelSpecular[0] = true;
   specular[0] = "1.0 1.0 1.0 0.1"; //you can add stuff like this to it
   specularPower[0] = 32.0;
};


function testeAnimacao(%this)
{

 %mao = new StaticShape(%this)
 {
  datablock = %this;
  static = false;
 };
 addMaterialMapping("Maotxt","material: Mao");

 MissionGroup.add(%mao);

 %mao.setTransform("211.452 -60.6528 179.65");
 %mao.setScale("0.01 0.01 0.01");
}
#4
11/23/2006 (4:30 pm)
Already I obtained to decide the problem and without having that to divide the model ^^
#5
11/30/2006 (12:22 pm)
How I make to place camera in the knot of camera of my object?
#6
11/30/2006 (1:03 pm)
Can you make that question again. I do not understand.
#7
12/01/2006 (10:22 am)
I shaped an object and specified a place for camera in it. but I am not obtaining to make with that camera in that place.
#8
12/01/2006 (12:13 pm)
I think he is saying he made the node for the camera on the model but he doesn't know how to set the camera to it... maybe
#9
12/13/2006 (10:29 am)
This exactly that I do not obtain to make
#10
12/13/2006 (11:36 am)
Tip if you are not the best at english and people can not understand you - Type out your question in your native language then put it through a translater to translate it to english. There is a good translater here - www.dictionary.com/