Kart Racing Pro Official Forum

Mods => Track Editing => Topic started by: buzzer on June 17, 2020, 11:19:54 AM

Title: help to convert rfactor track please
Post by: buzzer on June 17, 2020, 11:19:54 AM
Hello!
Can you help, please, to convert rfactor track for kart racing pro?
link to google map: https://www.google.com/maps/place/%D0%A2%D0%A0%D0%9A+%C2%AB%D0%9F%D1%80%D0%B8%D0%BC%D0%BE%D1%80%D1%81%D0%BA%D0%BE%D0%B5+%D0%BA%D0%BE%D0%BB%D1%8C%D1%86%D0%BE%C2%BB/@43.3574794,132.0823574,324m/data=!3m1!1e3!4m5!3m4!1s0x5fb3a56aecd3ee51:0x87d7c9d5660b3c30!8m2!3d43.3572611!4d132.0840623

track: http://www.primring.ru/files/Prim_Ring_Karting_Track.msi
Title: Re: help to convert rfactor track please
Post by: LXS77 on June 17, 2020, 07:33:52 PM
Hi, do you have any particular questions on the track conversion or are you just looking for someone to convert the track for you? If you have questions on the conversion, please ask, I'll see if I'm able to help.
Title: Re: help to convert rfactor track please
Post by: buzzer on June 19, 2020, 08:54:12 PM
sorry, better track found for assetto corsa, now about assetto corsa->krp:
1) i opened track (from assetto corsa) in 3DSimED
2) export textures, export fbx
3) convert with FBX2EDF, and have the same problem - my .trp has only 112b (like this http://forum.kartracing-pro.com/index.php?topic=7511.0)
Title: Re: help to convert rfactor track please
Post by: buzzer on June 19, 2020, 09:18:02 PM
here is fbx, exported from 3dsimed and screen
https://www.dropbox.com/s/gc4xyly1doqj5wz/primring_cart.rar?dl=0
Title: Re: help to convert rfactor track please
Post by: buzzer on June 19, 2020, 09:33:02 PM
maybe because it exports in centimeters? but i don`t understand, how export in meters from 3dsimed.
Title: Re: help to convert rfactor track please
Post by: LXS77 on June 20, 2020, 03:38:44 AM
Hi, thanks for attaching the FBX file.

I'm afraid, before you start converting with FBX2EDF, there's still quite a lot to do in 3DSimED. At the moment, the converter doesn't see any familiar object names, so the .TRP is empty. You need to prepare the track and its elements for Kart Racing Pro by properly naming collidable objects and surfaces and converting textures to formats supported by the game. Please refer to http://docs.piboso.com/wiki/index.php?title=Track_Creation_Guide – it's really helpful.

And yes, a resizing from cm to meters will be needed prior to exporting to the FBX format. In 3DSimED, click 'Edit' tab, choose 'Resize', then set re-scaling value for each axis (just put 100 in each field) and press OK.
Title: Re: help to convert rfactor track please
Post by: LXS77 on June 20, 2020, 01:56:22 PM
Hi again, one more thing which is worth mentioning. Please keep in mind that the game's graphics engine is not that advanced as Assetto Corsa's. The engine works best with low poly assets, more complex ones, depending on the computing power of your PC, can significantly affect the FPS. You will probably have to simplify, replace or delete quite a number of objects to make this edition playable in KRP, which IMHO makes the rFactor version a better candidate for the conversion :)
Title: Re: help to convert rfactor track please
Post by: buzzer on June 20, 2020, 02:37:11 PM
Oh, how difficult it is. I probably can't do the conversion.
Please tell me, if I draw a new track, which program to choose? In 3dmax, I'm not strong.
Title: Re: help to convert rfactor track please
Post by: LXS77 on June 20, 2020, 05:31:25 PM
Well, a learning curve will be involved, but it's definitely not rocket science :) Perhaps, converting an Assetto Corsa track is a bit ambitious for a beginner, but an rFactor one – why not? 3DSimED and GIMP will be quite sufficient for this task. Just follow the Guide, rename objects and convert textures. Then you'll get your FBX file and will be able to proceed to FBX2EDF and then TrackED to finalise things. First iterations may not be perfect, but you'll get an understanding how the workflow goes and the quality will improve.

When creating a track from scratch, you can actually use any 3D editing software which is capable of exporting to an FBX format. However, it requires much more time and efforts and doesn't save you from using the converter and TrackED as there are no editors which can produce a ready-to-go track for Kart Racing Pro. It's funny, but arguably the most convenient tool for beginners Bob's Track Builder (BTB) still gives you a track in a rFactor format and again an editor like 3DSimED is required ;D
Title: Re: help to convert rfactor track please
Post by: buzzer on June 20, 2020, 06:23:42 PM
I solved this problem:
1) up axis should be Y
2) rename road to TRKASPH_object1
3) export in FBX 6.0 ascii
Title: Re: help to convert rfactor track please
Post by: buzzer on June 20, 2020, 06:32:20 PM
can you give an example of FBX file, with the names of objects for the KRP (pit in, out etc)? thanks!
Title: Re: help to convert rfactor track please
Post by: LXS77 on June 20, 2020, 09:28:46 PM
Quote from: buzzer on June 20, 2020, 06:23:42 PMI solved this problem:
1) up axis should be Y
2) rename road to TRKASPH_object1
3) export in FBX 6.0 ascii


1) and 2) Yep, well done!
3) It may be either a simple FBX ascii, FBX 6.0 binary or FBX 6.0 ascii.
Title: Re: help to convert rfactor track please
Post by: LXS77 on June 20, 2020, 09:31:28 PM
Quote from: buzzer on June 20, 2020, 06:32:20 PMcan you give an example of FBX file, with the names of objects for the KRP (pit in, out etc)? thanks!

Which version have you chosen to work on? The rFactor or AC? Things like pitin_ and pitout_ depend on the track surface structure.
Title: Re: help to convert rfactor track please
Post by: buzzer on August 30, 2020, 04:53:38 PM
Hi, everything ok, but laps not counted, lap time not shown. What to check?
Title: Re: help to convert rfactor track please
Post by: LXS77 on August 30, 2020, 11:49:54 PM
Hi, check in TrackEd if the center line is merged and start-finish, speedtrap and splits are properly set (i.e. Long: is stated and all Left: values are negative and Right: - positive).
Title: Re: help to convert rfactor track please
Post by: buzzer on August 31, 2020, 01:56:02 AM
You cannot see attachments on this board.
You cannot see attachments on this board.
hi, i used search, checked it, but no result.
can you check my files?
Title: Re: help to convert rfactor track please
Post by: LXS77 on August 31, 2020, 12:54:16 PM
Right, OK, your start/finish line is located at the end of the track (692 m.), but it should come at the beginning (like first meters of the track), so try to set Start/Finish Line Long: to 0 and see if it helps.

Also, the centerline seems to contain too many small segments (especially the one here - image attached), try to simplify it. As a general rule, the fewer segments the line has the better for the performance.
Title: Re: help to convert rfactor track please
Post by: buzzer on September 01, 2020, 09:46:01 AM
hi, unfortunately it didn't help
Title: Re: help to convert rfactor track please
Post by: buzzer on September 01, 2020, 09:48:24 AM
maybe because the main afalt consists of several objects?
ex: TRKASPH_object1, next 5meters - TRKASPH_object2....
thanks for help!
Title: Re: help to convert rfactor track please
Post by: LXS77 on September 01, 2020, 12:56:21 PM
Hmm, any chance you could PM me a link to your .MAP file, so I can test the track at my end?

Object names are fine, you can have as many trkasph_obj items as you need. Issues like this are usually related to the centerline or Race Data parameters.
Title: Re: help to convert rfactor track please
Post by: buzzer on September 01, 2020, 02:48:59 PM
be careful when turning, I`ve not prepared the objects grass and gravel, you may fall down :)
in archive - textures, fbx, map and all )
https://www.dropbox.com/s/8lx1xsimrzx4la6/primring.rar?dl=0
Title: Re: help to convert rfactor track please
Post by: LXS77 on September 01, 2020, 06:17:12 PM
Thanks for the files, Buzzer! It's all working now, I'll post some explanations later on today...
Title: Re: help to convert rfactor track please
Post by: LXS77 on September 01, 2020, 09:35:03 PM
OK, mate, so, basically, the root of the issue is that you haven't finished forming the terrain along the track :D

Edges of lines created in the Race Data can't hang in the air and should be resting on objects, which the game can recognise. Therefore, we start with making these lines narrower to match the existing terrain (an amended .RDF is attached).

Then we need to correct some TRKGRAS object names, so the game can see them. When renaming objects in 3DSimED (I assume, you're using this package to create an .FBX), please bear in mind that Object Name and Instance fields should have exactly the same values (see the attached image). Compile a new .TRP file, copy the amended .RDF into your track folder and you should be good to go. The laptimer will start working when a full lap is completed.
 
If you wish to run a quick test, please use the attached .TRP.
Title: Re: help to convert rfactor track please
Post by: buzzer on September 02, 2020, 01:54:16 AM
thanks, i understand!
Title: Re: help to convert rfactor track please
Post by: LXS77 on September 02, 2020, 02:32:30 PM
Glad I could help! All the best with the project!