help~ can i edit like this?[3ds split]

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
pakata
Posts: 18
Joined: Tue Sep 23, 2008 11:51 pm
Location: korea rep of

help~ can i edit like this?[3ds split]

Post by pakata »

==== IMeshLoader.h ====

Code: Select all

virtual IAnimatedMesh* createMesh(io::IReadFile* file) = 0;

if(strstr(filename, ".3ds")!=0)virtual IAnimatedMesh* createMesh(io::IReadFile* file)[10] = 0;
other 3dsloader.cpp & 3dsloader.h edited.....

grouping loader......

irrengine : can i edit like this?
it work failed T.T
hybrid
Admin
Posts: 14144
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Your code example is complete nonsense (at least if that's assumed to be c++) and your text does not really help much. Can you say this somewhat differently again?
Oh, and as a general rule: You usually don't need to mess around with engine code, just concentrate on your app...
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Post by Seven »

I coded like that once, then, on my new computer, I decided to read up on programming a little bit. The house still smells like smoke from me trying to run that code......
pakata
Posts: 18
Joined: Tue Sep 23, 2008 11:51 pm
Location: korea rep of

^^;;;

Post by pakata »

i saw c++ book last weekend haha.. ;;;
when i write that question i had no sense of class...;;;

now im making new group 3ds loader...
but still failed...
just work in group_loader class..
so get mesh from 3ds and draw mesh in a same place

but
i cant return array of scene nodes....
it's problem.....

ex)in loader...
return *array_nodes

in main...
array_nodes = do3dsgroupload();
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Re: ^^;;;

Post by Acki »

pakata wrote:i cant return array of scene nodes....
it's problem.....

ex)in loader...
return *array_nodes

in main...
array_nodes = do3dsgroupload();
how do you create the array inside the loader ???
I guess you create it completely in that function and then you return the pointer to the array, but as far as you leave the loader the array will be destroyed (erased) and you return an invalid pointer... ;)

so either you return the array (not the pointer) or you pass the pointer to an precreated array to the loader...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
pakata
Posts: 18
Joined: Tue Sep 23, 2008 11:51 pm
Location: korea rep of

Post by pakata »

thx.. ;;;;
but still not working...
but i solved that otherway...
Post Reply