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 / need for speed car editor

Author
Message
mathieu
15
Years of Service
User Offline
Joined: 15th Jul 2009
Location:
Posted: 26th Jul 2009 23:44
hi !

I want to make a car modification look like nfs in my game but i dont know how, i will need to make an x files editor?

please help me
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 27th Jul 2009 05:03
You would basically make have 1 3D object for each different car model but have multiple texture maps that can be applied to each. And your "editor" would simply swap the texture to change the car's colors and decals or whatever. I'm assuming that's what you meant.

[url="http://dbcc.zimnox.com"][/url]
mathieu
15
Years of Service
User Offline
Joined: 15th Jul 2009
Location:
Posted: 27th Jul 2009 07:01 Edited at: 27th Jul 2009 07:20
ok for the texture its perfect but for the car, if a do a 3D model for each possible mix, my game will be so big, im more think at a separate part: wheel.x , bumper.x, etc and just change the size and thexture of all object and assamble the car after with all this peaces.

here, is the code that i use to load my car :
NewtonVehicle("Bmw6",3.5, 1.2,1.2,5.35,4.45,-0.2,2.7, 0.98,0.5,0.2,1000.0)

I will need to know hox to modify this code to load separate part and make a car with this part.

i think i can do a small car modify by making the size of all object in variable and modify all this variable in a menu but i dont know how to do menu. ex:
load "Bwheels.x",1
scale object 1,my variable
my variable = 1,2,5,5

and make the menu to change this variable

can somebody help me?

ps: i have upload the car model to help you understand how this code is working.


thanks

Attachments

Login to view attachments
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 27th Jul 2009 13:50 Edited at: 27th Jul 2009 13:50
Quote: "if a do a 3D model for each possible mix, my game will be so big"

That's what you'll have to do, however not for each car combination.

Each body panel of each of your cars needs to be a separate object. Each aftermarket part also needs to be a separate object.
you'll then need to create a special loading routine for your car to load the base object (the body) then add to it the bumpers, bonnet, doors, boot, side skirts, wheels, tyres and spoilers. If your smart, you can even joint them to the car body so they can fall off when hit with a certain velocity.

Your signature has been erased by a mod because it is way too awesome!
mathieu
15
Years of Service
User Offline
Joined: 15th Jul 2009
Location:
Posted: 27th Jul 2009 19:05
ok yes this is the good way but how to assamble te car part to make it will be fix, end how to do the editor menu?
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 27th Jul 2009 20:23
Quote: "ok yes this is the good way but how to assamble te car part to make it will be fix, end how to do the editor menu? "

It'll be your game, you decide how to do it!

Your signature has been erased by a mod because it is way too awesome!
mathieu
15
Years of Service
User Offline
Joined: 15th Jul 2009
Location:
Posted: 27th Jul 2009 20:33
I DONT KNOW HOW TO DO A MENU!

wath do you dont understand?
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 27th Jul 2009 20:51
Quote: "I DONT KNOW HOW TO DO A MENU!"

So read the newcomers forums! Do a forum search, there are many many examples of menus on this site, I myself have even created a simple button example freely available in the codebase! Use it!

Your signature has been erased by a mod because it is way too awesome!
mathieu
15
Years of Service
User Offline
Joined: 15th Jul 2009
Location:
Posted: 27th Jul 2009 21:50
ok i will try thanks

Login to post a reply

Server time is: 2025-05-13 20:44:31
Your offset time is: 2025-05-13 20:44:31