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 / inserting maps ahhhhh!!

Author
Message
Viva la mac
16
Years of Service
User Offline
Joined: 2nd Apr 2008
Location:
Posted: 3rd Apr 2008 21:50
i've looked everywhere on how to do this but cannot find anything that actually helps me. Does anyone have the code i'd need to use to load it or look at my map i wish to use and tell me if it actually usable??

Thanks all

Marc

Attachments

Login to view attachments
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 3rd Apr 2008 22:12 Edited at: 3rd Apr 2008 22:15
Load Object
Texture Object
Position Object
Rotate Object


Look them up in the help files for syntax and usage.

The file does load into DBPro.

TDK_Man

Viva la mac
16
Years of Service
User Offline
Joined: 2nd Apr 2008
Location:
Posted: 3rd Apr 2008 22:19
cheers man will give this a try now. Did it work for you? as a proper map that you could walk / skate around?

Thanks again

Marc
Viva la mac
16
Years of Service
User Offline
Joined: 2nd Apr 2008
Location:
Posted: 3rd Apr 2008 23:30
i tried putting the code in with my map and it seemed to work but i just got a black screen for like 5 seconds then it closed. If anyone can help me with the code i need to put in to show the map i would be very greatful

Thanks,
Marc
Anonymous User
16
Years of Service
User Offline
Joined: 21st Feb 2008
Location:
Posted: 4th Apr 2008 16:51
try putting a game loop in after you've loaded the model

???
Viva la mac
16
Years of Service
User Offline
Joined: 2nd Apr 2008
Location:
Posted: 4th Apr 2008 18:23
Back to it this morning then,

Just made the texture (think it's done correctly) in uvmapping 3d
put all the code i was told to in there
Load Object
Texture Object
Position Object and loop

but still all i get is a black screen. Can someone please just show me the code i need to use to be able to use my model as a terrain/ map or a link to a tutorial.
This is really frustrating haha.
Viva la mac
16
Years of Service
User Offline
Joined: 2nd Apr 2008
Location:
Posted: 5th Apr 2008 01:53
anyone offer anymore help on this at all???
Triangle Trumper
16
Years of Service
User Offline
Joined: 3rd Apr 2008
Location: Private
Posted: 5th Apr 2008 02:59
You need to have 'sync on' at the top, 'sync rate 50' on the next line, and 'sync' at the bottom of DO-LOOP. (before LOOP)

If con is the oppostie of pro, then what is the opposite of progress?
Viva la mac
16
Years of Service
User Offline
Joined: 2nd Apr 2008
Location:
Posted: 5th Apr 2008 06:22
thanks for that extra bit of info trumper

BUT...

...still just got a black screen haha. Putting the loop in the code just makes it say object already exists so i took it out and its just blank for a few seconds then closes. Just to let you all know i do NOT have any other code written into this to load map jus whati have been to told input so if there is any essential code i need to put in like camera and stuff please let mee know.

THanks All

Mac
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 5th Apr 2008 12:16
try this:



put the psp.x in the same folder where the .dba is

works perfectly here

cheers
Viva la mac
16
Years of Service
User Offline
Joined: 2nd Apr 2008
Location:
Posted: 5th Apr 2008 14:50
Thanks LOADS scorpyo,

this worked alot better than anything i've tried so far but this time instead of it just being a balck screen its blue with like a triangle at the bottom.
Viva la mac
16
Years of Service
User Offline
Joined: 2nd Apr 2008
Location:
Posted: 5th Apr 2008 17:39
actually the map is there but i had to scroll around to find it haha. But this is code for a fps??
I got to try and make it 3rd person now so my character can be seen (kinda like a tony hawks game)

Thanks,
Marc
Viva la mac
16
Years of Service
User Offline
Joined: 2nd Apr 2008
Location:
Posted: 5th Apr 2008 19:43
Right i got the map to show up but now i have a problem with adding texture haha, i put this code in


but it still just shows as a white map with no texture. I want to find out how the 1 in the texture code uses a texture. i know the first 1 is for the map but the second 1 confuses me
Tried searching for this but found nothing.
Any help on this would be great.

Thanks,
Marc.
Veron
17
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 5th Apr 2008 19:55
Well, first you have to load the texture, using the command LOAD IMAGE.

So some code would be:



Where texture.dds is the texture that you want to apply to the object.


Viva la mac
16
Years of Service
User Offline
Joined: 2nd Apr 2008
Location:
Posted: 5th Apr 2008 20:36
Cheers Veron, that worked great, now to work on some camera and controls, if anyone fancys showing some code for that would be very thankful, but i know there is qyuite abit on this site about all that so i'll also search for it.

Once again cheers all you really have helped me out with exactly what i needed.

Marc
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 5th Apr 2008 21:15 Edited at: 5th Apr 2008 21:16
the sky is blue because of these lines:


Actually I guess the triangle is the tilted cone used as a player
created in this subroutine


the program should start on the object (map)
walk to your map and check the x# and z# values displayed on screen and replace them here at the beginning of the code


cheers
Viva la mac
16
Years of Service
User Offline
Joined: 2nd Apr 2008
Location:
Posted: 5th Apr 2008 21:33
cheers for this scorpyo but having a problem finding the map now haha

Login to post a reply

Server time is: 2024-09-27 12:27:55
Your offset time is: 2024-09-27 12:27:55