Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Clone object doesn't like me

Author
Message
Volund
20
Years of Service
User Offline
Joined: 21st Mar 2005
Location:
Posted: 23rd Mar 2005 17:22
Hi all, I'm having very wierd problems with Clone Object

Basically: The command produces 3 different results, depending on the object I clone (not the object number but the file it was originally loaded from):
1) crashes
2) works like a charm
3) creates an invisible duplicate
(I know for a fact it's creating an invisible duplicate because I am drawing circles around the object- there's a circle there, but no object)

I've been debugging this for an hour now, I'm completely clueless as to why this is hapening - mainly because different models are producing different responses, there's nothing I can put my finger on.
I was wondering if anyone else had encountered problems with Clone Object and had hints or tips as to what on earth is going on here?

Maybe it's just too late at night :\

... and I said, it's alright.
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 23rd Mar 2005 17:46
I have had some minor success with clone object, it does greatly depend on the object though, for example animated objects tend not to like cloning.

If I clone a simple mesh with just 1 texture and no animation/rigging it would most certainly work, but objects that have bone structures or unusual transparency modes tend not to work (like don't show or are invisible, or get buckled with their bone structure).

Personally, I'm getting more into using loaded meshes and generating objects from them - for things like animated characters I stick to loading them as it's most reliable - but unfortunately slow.


Van-B


It's c**p being the only coder in the village.
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 23rd Mar 2005 18:39
You could try converting the object to a memblock, and then use make object from memblock (something akin to what VanB is suggesting). I would assume this could be somewhat faster than making it from a mesh seeing as it should be in the correct internal format anyway, not sure if it allows you to keep the texture though.

Desktop: AMD Athlon XP2800+,Radeon 9800 128MB, 1GB DDR RAM
Laptop: AMD Athlon 64M 3000+,Mobility Radeon 9700 128MB, 512MB DDR RAM
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 23rd Mar 2005 18:42
Actually that is the intention, maybe for different reasons though. My level is made from little bits that I intend to stick together to form buildings (dunno if you've played blockland, but it's very much like that). Plan is to have all these meshes in memory, then when adding a mesh to a building I'll convert to a memblock and vert lightmap it before adding it to the main object, should be pretty neat when it's done.


Van-B


It's c**p being the only coder in the village.
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 23rd Mar 2005 18:46
Nice idea, are you going to optimise the mesh in memory to reduce overlapping faces etc on the inside of the combined objects?

Desktop: AMD Athlon XP2800+,Radeon 9800 128MB, 1GB DDR RAM
Laptop: AMD Athlon 64M 3000+,Mobility Radeon 9700 128MB, 512MB DDR RAM
Volund
20
Years of Service
User Offline
Joined: 21st Mar 2005
Location:
Posted: 24th Mar 2005 02:47
Oh well. In my annoyance I forgot to look for previous posts in the forum - apparently many people had similar problems. Thanks for your help though, I'll just load the objects

... and I said, it's alright.

Login to post a reply

Server time is: 2025-05-28 04:33:39
Your offset time is: 2025-05-28 04:33:39