Xith3d newbie...(textures related)

Hi all, this is my very first post :smiley:
I’m just a newbie, and I need some advice ;D

Well, I’m making a tennis game, by now, I only got the ‘court’:
a rectangle with a grass texture, and the court lines ‘painted’ over it.

The problem is that the court lines (actually, they’re only a LineArray) doesn’t change its width when the ‘camera’ gets closer or farer (using Transform3D.lookAt(…)) …and that is not very esthetic i think :stuck_out_tongue:

So I don’t know if i should make an image of the court lines and then put it over the grass texture, or maybe something else…
(by the way, I’ve read the tutorial about textures, I have no problem with that :P)

thanks in advance

You say the court lines are painted on it : it’s part of the texture, or is it a LineArray ?

If it’s a LineArray, it’s normal. Lines are supposed to be infinitely thin. And if your lines are on the texture, well it’s supposed to grow as your approaching it.

yep, the court lines are not part of the texture.

So, if I want lines changing its width as the camera moves, I need to put them as a texture, rigth?

yup - that would probably be the easiest way, but you could also create new Geometry for that (e.g. a QuadArray or a TriangleArray) This would be closest to your line-making-way.

Arne