2 problems (DX8)

Sfpiano
08-10-2002, 10:23 AM
A. I can't get the camera to be where I want it. When you run the program, the room is facing upwards; I want the user to be looking at the smaller box when the program starts.

B. When I apply textures to the object, it only applies the general color of the texture, not anthing else. Ex. for the texture, I have stone; the stone bmp is mainly white. DX only paints the object white, without the parts that make it stone.

Iceplug
08-10-2002, 11:03 AM
For the first one, you have to play around with the vectors.
The last vector denotes which direction is UP.

For the second one, you have to set the vertex tu and tv property from 0 to 1.

I encountered this same thing while starting. Hope this helps.

Sfpiano
08-10-2002, 12:01 PM
I never set any vertex properties because I brought it in from 3DS Max; should I have?

And I tried changing the up vector, but it only changed the object on a 2D plane either clockwise or counterclockwise; I want the object to be rotated downwards towards me. I'm using a camera a the viewpoint, would I have to change that as well?

Iceplug
08-16-2002, 12:52 PM
It would seem that texture vertices (vertexes) would have to be set somehow. This is the only way I know of that an object will only be one color.

For the camera, do you want the object to be moving, or do you just want to look at it?
Seems like you would want the camera to be lined up with the blocks somewhat, then instruct the camera to look at a point somewhere in the blocks.

Sfpiano
08-20-2002, 01:11 PM
I didn't think you could set the verticies if you imported an object. :confused: And the camera will be user controlled, like a 1st person shooter perspective.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum