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 / Instance Object not showing up,..its there but its invisible.

Author
Message
DcZee
23
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 3rd Dec 2003 02:18
At least we never run out of things to talk about,...
So in my quest to increase the number of objects we can play with, without bogging the system down,...I am now experimenting with instance objects.

1. I made a plane object with dbpro and tmapped it,..then dotted instance objects all over the place,..no problem. They also delete like a bat out of,...

2. Made a cube in unwrap3d,...texturemapped,..loaded it into dbpro,..no problem. Then i create two instance objects from that object and,..surprise! they wont display. I think that it maybe turned inside out or its not getting the texture map from the parent object.

Any ideas why they wont display? The object is there and i can bump into it, select it etc,..just no display its totally invisible hehe.
Thialfi
23
Years of Service
User Offline
Joined: 19th Mar 2003
Location: Asgard
Posted: 3rd Dec 2003 09:47
I actually reported a problem like this in the bugs section. The problem I was having with Instance Object was that the last Instance Object created wouldn't show up unless I created another object just before the sync. What I did to get around it was to do Instance Object than immediately Delete Object just before the sync. An object created with Instance Object also has no size so commands that are based on the object's size won't work properly with Instance Object. This doesn't sound like a big deal but it effects collisions as well as a few other commands.

Instance Objects are handy in that they get around another bug that causes memory corruption. Load Object, Clone Object, and Make Object cause memory corruption if used over and over again. Instance Object doesn't suffer from this bug.

Basicly, try setting up all of your syncs like this


Hope this helps.

By Thor's hammer
By the sons of Odin
I shall avenge thee
Thialfi
23
Years of Service
User Offline
Joined: 19th Mar 2003
Location: Asgard
Posted: 3rd Dec 2003 09:49
My bad, change the // to rem. I've used so many different programming languages, I sometimes mix up the commands between them

By Thor's hammer
By the sons of Odin
I shall avenge thee
DcZee
23
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 3rd Dec 2003 19:11
Oh wow that worked,..thanks,..

one question though,...how in the heck did u figure that one out!?
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 3rd Dec 2003 19:14
I've never used them, but the way I figure it, from looking at the help file, instance objects are dependent upon the original object. So if you delete that, then all data for the instance object would be lost.
DcZee
23
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 3rd Dec 2003 19:29
Yes there are some handy features using instance objects,..one of them being memory space. Also an instance deletes infinitely faster than an object deletes.
A prof of mine once said "To see the real effect of anything blow it way out of proportion",..so I did,..I created 1000 clones and tried to delete them,..well during the deletion phase I could have eaten dinner. Then i created 1000 instances and they were deleted before I knew they had been created,...not even enough time to look away from my screen to find my sandwich.

also,..some commands work in reverse,..like if I do something to the mother object, the changes cascade to the instances equally,..but if i change an instance,..that also filters back to the mother object as well. I foudn that out accidentally, as I changed the fade value of an instance and the mother objects fade value matched it instantly lol
Jaze
22
Years of Service
User Offline
Joined: 20th Nov 2003
Location: Connecticut, USA
Posted: 5th Dec 2003 05:11
And THERE my friend is the BEAUTY of CLASSES - Oh I wish Dark Basic Had them! hehehe

-=/Jaze/=-

Login to post a reply

Server time is: 2026-07-26 20:14:41
Your offset time is: 2026-07-26 20:14:41