Salival
Member
|
Decal Scale.
How can you scale the Decal itself?
Before it was something like Decal.size = flt.
|
|
06-29-2010 08:33 AM |
|
Esenthel
Administrator
|
RE: Decal Scale.
please scale the Decal.matrix
|
|
06-29-2010 08:39 AM |
|
Salival
Member
|
RE: Decal Scale.
(06-29-2010 08:39 AM)Esenthel Wrote: please scale the Decal.matrix
I try to make like.
mMarkerDecal.matrix.setScale(10.0f);
But no result.
|
|
06-29-2010 08:48 AM |
|
Esenthel
Administrator
|
RE: Decal Scale.
you must do it wrong, check the "rendering/decal" tutorial
and apply this modification to the code:
d.matrix.setPosDir(pos,Vec(0,1,0)).scaleOrn(i ? 5 : 1);
|
|
06-29-2010 08:59 AM |
|
Salival
Member
|
RE: Decal Scale.
(06-29-2010 08:59 AM)Esenthel Wrote: you must do it wrong, check the "rendering/decal" tutorial
and apply this modification to the code:
d.matrix.setPosDir(pos,Vec(0,1,0)).scaleOrn(i ? 5 : 1);
Yes it worked, Thank you.
|
|
06-29-2010 09:04 AM |
|