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.

Author
Message
Ben Hartnett
13
Years of Service
User Offline
Joined: 16th Dec 2010
Location:
Posted: 7th Jun 2011 03:06
Hello all.

I am still new to Dark Basic Pro. I am trying to learn all of the functions so I an create a game. However, I have come across some questions in respect to the program.

Question 1:

If you create a world with 3d World Studio and save it as a .x file the file appears black. How do you texture it the way it was in the 3d World Studio so that it appears textured in Dark Basic Pro? Is there certain coding needed?

Question 2:

How do you make it so that the object such as a handgun stays in front of the screen in the case of a first person shooter? In essence, the hand gun moves with the screen?
Inflictive
15
Years of Service
User Offline
Joined: 16th Jun 2009
Location: Altis
Posted: 7th Jun 2011 04:46
1.Not sure, I don't have experience with 3d world studio, but try takng the texture file (an image) and using the TEXTURE OBJECT command =/

2.What I would do is something like this:


And the pistol object should have an offset center so it appears on the right/left of the screen. this stuff might not work, I'm currently a noob as well.

*´¨;
¸.•´¸.•*´¨; ¸.•*¨;
(¸.•´ (¸.Eviljackson1
Kezzla
16
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 15th Jun 2011 15:08
you will need to copy the texture files into the same directory as the x file in the project eg media\
you wont need to load them into the program, they just need to be there for the file to reference.

usually if im missing textures my objects are grey.
you say the object is black, just the object? or the screen?

if the screen is black you may need to call sync at the end of your loop.

Sometimes I like to use words out of contents
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 15th Jun 2011 19:18
Unhelpful Titles

Please do not simply write "Noob Question", "I am a newb", "One Noobie Question", "A question", "Please help", "This isn't working" or anything similar as the title of your post. We have a search facility, and meaningless titles do not help others find answers to their questions. It will also help you to get quicker responses if people have an idea of your thread content.

=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 16th Jun 2011 13:23
1) 3DWS uses its own file format for the supplied textures, in order to view the models in DBP you must use u'r own textures (In a format that DBP understands, like .jpg, .bmp, .png etc)

2) Some people use the Lock object on command to fix the gun object in one place on the screen. But I have found it is better to position the object in front of the camera each loop as this way it is still affected by scene lighting etc.

Hope that helps.

Login to post a reply

Server time is: 2024-11-22 18:24:22
Your offset time is: 2024-11-22 18:24:22