About Store Forum Documentation Contact



Post Reply 
Decal Scale.
Author Message
Salival Offline
Member

Post: #1
Decal Scale.
How can you scale the Decal itself?

Before it was something like Decal.size = flt.
06-29-2010 08:33 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Decal Scale.
please scale the Decal.matrix
06-29-2010 08:39 AM
Find all posts by this user Quote this message in a reply
Salival Offline
Member

Post: #3
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
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
Find all posts by this user Quote this message in a reply
Salival Offline
Member

Post: #5
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
Find all posts by this user Quote this message in a reply
Post Reply