ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperLicht
forum topic indicator add two CubeSceneNode to a scene
person icon
tMd
Guest
Quote
2010-03-29 22:03:59

Hi

i try to put two CubeSceneNode in my scene like that :
		var cubenode = new CubeSceneNode();
cubenode.Pos.Z = -10;
scene.getRootSceneNode().addChild(cubenode);
cubenode.getMaterial(0).Tex1 = engine.getTextureManager().getTexture("crate_wood.jpg", true);

var cubenode2 = new CubeSceneNode();
cubenode2.Pos.Z = 100;


In my 3D scene I can see only one crate and the Z position is 100

Can you help me?

Thanks

person icon
niko
Moderator
Quote
2010-03-30 06:46:34

Did you forget a
scene.getRootSceneNode().addChild(cubenode2);

there? :)

person icon
tMd
Guest
Quote
2010-03-30 12:13:16

no
in this case i add only 1 crate and the Z position should be -10.
But in fact the position in the scene is 100.

I think that 'cubenode' and 'cubenode2' are the same instance but i don't not why.

Do you understand my problem ?

person icon
niko
Moderator
Quote
2010-03-30 12:37:16

ah, I see, this is probably a bug (I'll have to look into this). After creating your node using for example var cube = new CubeSceneNode();, simply do a cube.Pos = new Vect3d(0,0,0);. This will probably help.

person icon
tMd
Guest
Quote
2010-03-30 13:23:22

it works, the reference to Pos was the same.

thanks

Is it possible to have acces to a svn repository to get the new version and the source code uncompressed ?

person icon
Quentin
Guest
Quote
2010-03-30 13:51:23

I must admit that it would be very helpful for us developers to have a a full version of the source code (with an adapted version, of course). It will be easier to find this kind of bug and to help this (awsome) project :)

person icon
Quentin
Guest
Quote
2010-03-30 13:52:41

uups, I mean "(with an adapted license, of course)", not version

person icon
niko
Moderator
Quote
2010-03-30 16:36:58

The source is already available for companies licensing CopperLicht, but I'll have a thought if I can add a special license for hobbyists, maybe. Thanks for the feedback!

person icon
niko
Moderator
Quote
2010-04-01 07:30:22

Update: This is fixed now in version 1.0.3.
@quentin: There is now also a student/hobbyist license available, maybe this is better for you. :)


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 |