ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperLicht
forum topic indicator Clamp texture syntax
person icon
bagg
Registered User
Quote
2010-11-13 19:31:27

Hi Niko.

Can you please point me on the syntax of material
(Boolean} ClampTexture1 ?

And if it's possible can you give me an example on how the CL3D.MeshTriangleSelector works with getCollisionPointWithLine?

Thanks.

person icon
niko
Moderator
Quote
2010-11-16 16:31:57

simply use something like
yourMaterial.ClampTexture1 = true;

Should do the trick.

getCollisionPointWithLine() is shown in tutorial 6: http://www.ambiera.com/copperlic...

person icon
bagg
Registered User
Quote
2010-11-17 07:13:05

The tutorial 6 uses a ccbjs file from coppercube.Is it possible to provude me with the code that it should be added in tutorial 3 in order to have a getCollisionPointWithLine() between a line and the custom mesh?

Thanks.

person icon
niko
Moderator
Quote
2010-11-17 13:25:19

You simply need a triangle selector for this, you can construct one from your scene node using
new CL3D.MeshTriangleSelector(Mesh, scenenode);
This has the method getCollisionPointWithLine()


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |