Is it impossible, if I only have one node but I wanna render it many times concurently
i tried this, off course, doesn't work
…
Node maggie=jbr.loadBinaryFormat(new ByteArrayInputStream(BO.toByteArray()));
rootNode.attachChild(maggie);
maggie.setLocalTranslation(new Vector3f(1,1,1));
rootNode.attachChild(maggie);
…
jME shows me only one maggie
Any advice would be appriciated
Why would you want to attach the same node to the same node twice? They'll be rendered identically.
If you are making use of the code in CVS (or nightly builds) you can do:
P.S. The reason I didn't attach the original maggie to the rootnode but instead made a shared node for it as well is if you make any changes to the maggie model (translate, scale, rotate, etc), it will be reflected across all the shared nodes.
llama, I want to render two maggies at the same time
and I think that having 2 nodes of maggie may not necessary.
as mojomonk said
"If you are making use of the code in CVS (or nightly builds) you can do: …"
now I use Eclipse with jME (jME was checked out from CVS) << Is this the same as mojomonk said?
now I use Eclipse with jME (jME was checked out from CVS) << Is this the same as mojomonk said?
yes
SharedNode original = new SharedNode("OriginalMaggie", maggie);
there are always the red wavy lines under SharedNode
Maybe I have to import somthing before I can use it?
P.S. I tried to find more information about SharedNode in the tutorials (Starter.pdf)
but there is no information about it.
here are always the red wavy lines under SharedNode
Maybe I have to import somthing before I can use it?
Well... you have to import SharedNode...
P.S. I tried to find more information about SharedNode in the tutorials (Starter.pdf)
but there is no information about it.
It's not in a release, only in CVS.
oh i got it XD
thanks a lot mojomonk