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.

Newcomers DBPro Corner / multiple instances of a 3D object

Author
Message
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 6th Aug 2004 06:47
hi

can some 1 help us with creating multiple instances of a 3D object.

i got a 3D alien ship and i want to make em randomly fall down the screen from different locations at the top.

i'm having problems when it comes to loading multiple objects of the same file.

this is code i thought might work but throws up and error.


now before u say its wrong. i know it is or it wouldn't throw up an error like it is.

i know there was a post on here somewhere that said how to do but i can't find it and the search function isn't much help.

thanx for any help on the subject

(just upgraded) system specs: AMD XP 3000+, 512Mb DDR333, nvidia ge-force FX 5600 128MB, 1x8Gb & 1x40Gb HHD, 52x CD drive, DVD+RW 4x, Sound Blaster 128.... all in a Nokia 8310 case :0D
kidsa
20
Years of Service
User Offline
Joined: 8th Dec 2003
Location: MA,usa
Posted: 6th Aug 2004 06:50
ahhm what is the error you are getting?

i used to be kidsa the random one i guess im not as random anymore.

any language used by me will be dbpro(saves me a lot of typing)
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 6th Aug 2004 06:55
right this is the error

#100008: Parameter for 'LOAD OBJECT' do not match 'Filename, Object Number' at line 29

and line 29 is....

Load Object "enemy1.x",Enemy_Ship1(i)

somethings wrong i just can't place my finger on it

(just upgraded) system specs: AMD XP 3000+, 512Mb DDR333, nvidia ge-force FX 5600 128MB, 1x8Gb & 1x40Gb HHD, 52x CD drive, DVD+RW 4x, Sound Blaster 128.... all in a Nokia 8310 case :0D
kidsa
20
Years of Service
User Offline
Joined: 8th Dec 2003
Location: MA,usa
Posted: 6th Aug 2004 08:02
hmmmm post the whole code u have in there. i think you have a typo some whre else

any language used by me will be dbpro(saves me a lot of typing)
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 6th Aug 2004 09:52
To save memory, you could use "instance object".

"eureka" - Archimedes
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 7th Aug 2004 04:36
i sused the problem out.

for some reason it doesn't like arrays. but now i lost the players ship yet again. it like it can't draw more than 2 3D objects at one time.

i'm learning 3D as i go coz i'm wanting to challenge myself to do something new and interesting.

i'll post the code. i put some remarks to help u out. so read the top of the code to find out more.

(just upgraded) system specs: AMD XP 3000+, 512Mb DDR333, nvidia ge-force FX 5600 128MB, 1x8Gb & 1x40Gb HHD, 52x CD drive, DVD+RW 4x, Sound Blaster 128.... all in a Nokia 8310 case :0D
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 8th Aug 2004 02:15
what i sused out was the problem with loading multiple objects.

what i forgot to say is that i still loose all 3d objects when i try to load anymore.

any1 know the reason for this. the codes in the post above

(just upgraded) system specs: AMD XP 3000+, 512Mb DDR333, nvidia ge-force FX 5600 128MB, 1x8Gb & 1x40Gb HHD, 52x CD drive, DVD+RW 4x, Sound Blaster 128.... all in a Nokia 8310 case :0D
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 8th Aug 2004 03:03
i found out y they vanished.

they were outside the camera. even though i used autocam off, when i added another object it reset itself so i had to move things about a bit.

if i get this done i'll sort it out into a kind of 3D shoot-em-up engine for any1 wanting it.

(just upgraded) system specs: AMD XP 3000+, 512Mb DDR333, nvidia ge-force FX 5600 128MB, 1x8Gb & 1x40Gb HHD, 52x CD drive, DVD+RW 4x, Sound Blaster 128.... all in a Nokia 8310 case :0D

Login to post a reply

Server time is: 2024-09-22 20:29:33
Your offset time is: 2024-09-22 20:29:33