MX Bikes Official Forum

Mods => Track Editing => Topic started by: jirka63 on November 28, 2019, 12:17:21 PM

Title: Track objects
Post by: jirka63 on November 28, 2019, 12:17:21 PM
Hello,

I need a little help with objects.
I found out pretty quickly how to make heightmap, masks, folders, but I am little stuck on objects. I know I can place them in TrackEd in View->Layers than Choose folder.
But where can I find fences, pit line tents, halebales? Where are you getting them from?
My track is almost ready, just slightly edit heightmap and add objects and cameras.

Thank you for help!

(https://i.postimg.cc/D0Fm9jjF/VOsekWOW.png)
Title: Re: Track objects
Post by: Docfumi on November 28, 2019, 12:36:07 PM
The track looks great, maybe you can send a PM to Modder TFC. He has brilliant tutorials and can maybe help
Title: Re: Track objects
Post by: jirka63 on November 28, 2019, 01:14:25 PM
I wanted to make this public so everyone could get the informations, as I did not found any topic like this on forum :)
Title: Re: Track objects
Post by: Docfumi on November 28, 2019, 01:18:35 PM
^^COOL^^
Title: Re: Track objects
Post by: 𝖙𝖋𝖈 on November 28, 2019, 02:45:31 PM
I have never done it using tracked although I know you can. You're much better off learning Blender. It's relatively easy to learn and that way everything you do for the track will be perfect.

I don't know of any tutorials off hand but it will be a part of my series.
Title: Re: Track objects
Post by: jirka63 on November 28, 2019, 02:57:01 PM
Thank you TFC, I'am downloading Blender right now and I guess I will wait for your tutorial about this if I will not figure myself.
At least I can make another track next to this one to make proper facility.
Title: Re: Track objects
Post by: Niko Mouk on December 02, 2019, 11:22:30 AM
To place your objects with the layout (not layer) editor, you have to add all your objects to a .cfg property file like this :

obj0
{
name = cone
model = cone.edf
}
obj1
{
name = haybale
model = haybale.edf
coll
{
box0 = 0.5, 0.5, 1.6
}
material = haybale
}

Where coll is the collision box and its material  = haybale or tire or plastic (the only ones I know, I don't have the full list).

1/ Put all your objects in the final track folder with this config file, then open it in TrackEd.
2/ Place your object and save it as a layout file (.lyt).
3/ Open this layout file, copy all the content and add it to your track.hmf file, wrapped into a scenary like this :
scene0
{
name = haybale.edf
pos
{
x = 237.563904
y = 7.569820
z = 224.854446
}
rot
{
x = -0.000000
y = 0.000000
z = -3.810344
}
}

4/ Delete the layout and config files.

NB : This way i sabsolutley dirty and should be for test purpose only.
Title: Re: Track objects
Post by: jirka63 on December 02, 2019, 02:02:08 PM
Thank you very much for this info Niko.
As you said, I will only test is like this and I will see, if I can learn Blender.
Title: Re: Track objects
Post by: brems294 on December 02, 2019, 05:41:06 PM

nice plot, ready to test it!!
Title: Re: Track objects
Post by: Niko Mouk on December 17, 2019, 08:15:48 AM
In fact you can save the layout file as your trackmname (mytrack.lyt) and the objects will be placed by default when playing on the track.
This is the way I did for my track called Farwest Theory.
Title: Re: Track objects
Post by: jirka63 on December 30, 2019, 05:59:28 PM
Please could someone give me advice how to set fbx2edf.exe to convert giopanda's or TFC's assets?

As someone said it is good to learn Blender, convert heightmap, put objects, remove terrain and save. But from my point of view it is not really bad to use TrackEd to put objects on track, but I really struggle with converting fbx to edf.
I will be grateful for any advice.