need help with M3G
Login to reply to this topic.
Thu, 2009-01-08 21:36
Joined: 2009-01-08
Forum posts: 2

Hello guys,
I have multiple questions regarding m3g:
is there a way to load 2 m3g files as objects and not as a world and then add them to an existing world?
is there a way to smoothen an object's lightning normals?
is there a way to get all of the world's objects without knowing their ID, without using find?


Fri, 2009-01-09 12:22
Joined: 2005-01-11
Forum posts: 56

hi there

double check my answsers because last time I've done m3g programming was a couple of years ago

Q1/
yes it is you have to manage the scene graph, load files access to the the 1st group id and merge it in a new world node

Q2/
look at material properties maybe

Q3/
i am afraid not

While we are talking about m3g do you know where this API is going?
I am looking for some opensource m3g midlets
can you suggests some ?

--
http://rzr.online.fr/java.htm


Sat, 2009-01-10 02:36
Joined: 2009-01-08
Forum posts: 2

yes i managed to set the shading to smooth.
it is posible to get the world's object without using find, u get the children count of the world, and get eatch child as mesh.
the doc contain such things, at least that is the conclusion i managed to get when reading it.
as for examples, http://www.claushoefele.com/m3g/examples.html there you go, but there are no sources, u can decompile then tho, there's a free java decompiler somewhere Laughing out loud, that's what i did Smiling
oh another thing that i 4got, i tried to texture a mesh but with no luck the mesh is looking pretty strange. do you know of a standard texturize function or something like that??


copyright 2003-2009 NewLC SARL