x


Adding decals to a object

how do i add decals to a object? say i want to render bullet marks on a cube or wall.

more ▼

asked Dec 01 '09 at 01:41 PM

pkamat gravatar image

pkamat
438 11 12 20

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

2 answers: sort voted first

is it possible to instentiate a projector on the position you hit an object and just project a texture of a bullet impact? I don't know anything about projectors but thought it is maybe possible?

more ▼

answered May 15 '11 at 11:42 AM

ruben_hiet gravatar image

ruben_hiet
68 6 8 16

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

Why do i get this error when it collids?:

NullReferenceException: Object reference not set to an instance of an object

bullitHole.OnTriggerEnter (UnityEngine.Collider hit) (at Assets/bullitHole.js:3)

I used this code:

var bulletHole:GameObject;

function OnTriggerEnter( hit : Collider){

var hitRotation = Quaternion.FromToRotation(Vector3.up, hit.normal);

Instantiate(bulletHole, hit.point, hitRotation);

}

more ▼

answered Aug 10 '11 at 01:19 PM

AdamEstone gravatar image

AdamEstone
11 2 3 4

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

Why do i get this error when it collids?:

NullReferenceException: Object reference not set to an instance of an object

bullitHole.OnTriggerEnter (UnityEngine.Collider hit) (at Assets/bullitHole.js:3)

I used this code:

var bulletHole:GameObject;

function OnTriggerEnter( hit : Collider){

var hitRotation = Quaternion.FromToRotation(Vector3.up, hit.normal);

Instantiate(bulletHole, hit.point, hitRotation);

}

more ▼

answered Aug 10 '11 at 01:25 PM

AdamEstone gravatar image

AdamEstone
11 2 3 4

(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:

x505
x64

asked: Dec 01 '09 at 01:41 PM

Seen: 17458 times

Last Updated: May 06 '12 at 04:48 PM