x


Display 2d texture in a 3d enviroment

Im about 2 months into learning through trial and error on javascript right now and trying to figure out how to display within a 3d game enviroment a 2d texture whenever I call it. An example of what I'm reffering to can be seen at the following link at approximately 2:34 in the video below. you can see an object display a "field of view" type of texture.

http://www.youtube.com/watch?v=_t8s6JNU-LQ

Can anyone answer or link me to a post that already covers this?

Any help would be much appreciated.

Thanks!

more ▼

asked Feb 13 '11 at 11:14 AM

lowcrawl gravatar image

lowcrawl
11 1 1 2

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

That's not really a texture (or least doesn't have to be). Just create a mesh in that shape, parent it to the character (or position it where the character is in every update), then point it toward the direction you want. Make sure it's just slightly above the floor level. You might want to put it into a different render layer to avoid having it clipped by other objects.

more ▼

answered Mar 29 '11 at 05:28 AM

Gillissie gravatar image

Gillissie
343 36 39 48

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2279
x1071
x147

asked: Feb 13 '11 at 11:14 AM

Seen: 1386 times

Last Updated: Feb 13 '11 at 11:14 AM