Kart Racing Pro Official Forum

Mods => Track Editing => Topic started by: EdoLeo on December 31, 2021, 08:42:06 PM

Title: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on December 31, 2021, 08:42:06 PM
Hi everyone  ;D

I've seen this is the best place to ask to more experienced modders for help, new to the forum so correct me if i'm wrong  :)

so i wanted to create a track for myself so i could train on it for real life races, finding out it's quite complex i also wanted to take the occasion to start learning some basic 3d modeling with 0 basic acknowledgement, ending up using sketchup as software which i found very easy even for a beginner.

i've built up the first beta of the track map containing only road, 2d grass and kerbs, and wanted to check if all was working until this stage, however i don't know at all how to load it in the game :(

i've seen from others mod that there are tons of files in the folders other than the 3d track map, and as a beginner i don't really know what they're all useful for,

Now, could someone introduce me what to do after you build the track map? i see also that you need to name objects in a certain way, but i'm not really sure that naming it directly in sketchup in the "components" tool works🤔

Thanks in advance for any advice you're willing to give me!

Edoardo
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 01, 2022, 05:53:30 PM
Hi Edoardo,

I'd say SketchUp isn't the best tool to create the track (I'd recommend investing your time and efforts into Blender), but it's not a huge problem. I'll try to compile instructions for you within the next day of two. Meanwhile, check your model in SketchUp and make sure that all faces are oriented to the front (use View > Face Style > Monochrome mode to check the faces) and all textures meet the requirements listed in the Track Creation Guide (https://docs.piboso.com/wiki/index.php?title=Track_Creation_Guide).

Basically, your aim is to get a .FBX file, so you can use PiBoSo's tools to create MAP and TRP files to bring the track into the game, but exporting directly to FBX format in SketchUp will not give you a desired result, so some format conversions will be required.
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 01, 2022, 06:05:04 PM
Thanks a lot for the tips!

will definitely try to learn blender for future projects, but hopefully sketchup can give me some basic acknowledgement :)

also i've tried this morning to load the track into the game, i think i understood part of the process, but the dimensions were completely wrong (i mean the scale was so small) even though in sketchup with the measurement tool it said it was rightly sized, is that why i shouldn't directly export in .fbx from sketchup?
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 01, 2022, 06:27:53 PM
The main reason - SketchUp doesn't allow you to name objects properly. The naming works in Blender, 3ds Max or 3DSimED. I'll be using the latter in the instructions :-)
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 02, 2022, 08:06:32 PM
Hi again, I've attached the guide for your reference: You cannot see attachments on this board.
Hope you'll find it useful :)
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 03, 2022, 06:25:39 PM
Thanks a lot! i've actually started the project again in blender as for advice as i was still at the early stages and surelt it's much better though it's super complicate :P
the second part of the guide surely it's still much helpful for when i'll have to export it!
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 03, 2022, 09:20:02 PM
You're welcome, Edoardo! All the best with your project!
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 03, 2022, 11:14:17 PM
hi and thanks again, i have some updates on the project not very good looking :P

i've done a rough version of the track which only include the road the kerbs and the grass (and the pits where i need to spawn)

basically the map and the collision file (loaded in both mapview and tracked) are not displaying at all what i actually see in blender, i'll leave you a link with images of what i see in mapview and tracked, blender project and .map and .trp files so that you can spot the mistake (only if you're up to ofc!)

in mapview the track seems to be on a completely different position on every axis, even though in blender every object is set to 0 meters and 0 rotation on the Z axis

in tracked the map doesn't load both Asphalt and grass texture, even though in the fbx2edf converter no error or warning message is displayed ???

every type of help is greatly appreciated, don't feel forced though :)

https://drive.google.com/drive/folders/1aYkzx6OsZOmm3NPbMqO7QeGD7iiGfI_q?usp=sharing
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 04, 2022, 01:16:59 AM
No problem! I'll have a closer look tomorrow, but something is wrong with your TRKASPH_01 and TRKGRAS. And when exporting to FBX, try to use the attached settings.

Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 04, 2022, 11:40:41 AM
The apply transform made the trick!

i still can't see trkasph_01 and trkgras in both mapview and tracked but i can see in the correct place the kerbs in mapview at least :D

Will have a look if i can find a solution to make them visible
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 04, 2022, 07:25:55 PM
Quote from: EdoLeo on January 04, 2022, 11:40:41 AMThe apply transform made the trick!

Good! :)

Just out of curiousity, did you do the track from scratch in Blender or did you just import the SketchUp model there? The mesh of TRKASPH_01 looks strange - extra vertices which need to be removed, a large number of reversed faces. Maybe, it would be worth to get back to the curves and repeat curve-to-mesh transformations. TRKGRAS, I'm afraid, has to be totally redone as the current geometry is wrong.

Anyway, take your time, there are YouTube videos showing how to do roads and racing tracks in Blender. Check these videos out, practise with separate objects, don't try to do all at once and you'll be fine!
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 04, 2022, 08:00:34 PM
ohh unlucky :( i did it from scratch by the way, just probably what got me is the way i created trkgras, as i thought the best idea to create the grass in a way that it would have been linked with the asphalt so no holes would have been created was to use the border from trkasph and create a separate object with it, but as the mesh was very complex i probably missed some vertices  :P

anyways thanks again for all the help! you reckon that a good way to create the asphalt would be by using array and curve modifier with a cube? i found that was the most common method on youtube but sometimes that doesn't really help as track width changes sometimes in my track :(
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 04, 2022, 10:38:25 PM
I see, yeah, try to keep things relatively simple for KRP, complexity takes its toll on performance.

I'd say try to do the track layout from scratch again, just trkasph (don't worry about trkgrass for now) and make sure it works fine in the game. When you are totally happy with the track surface, proceed to adding grass and other objects.

Also make yourself comfortable in Blender with things like switching between Object Mode & Edit Mode, using different types of View (e.g. Wireframe, Textured), working with vertices (how to select, move, add, snap them together), working with faces (how to extrude, how to fill a selected loop).

There're different approaches to creating a road, but the width change is never a problem as you can adjust all vertices and create new ones if required. BTW, these tutorials might be helpful: https://www.youtube.com/playlist?list=PL7gv1L5WCltpxbZ0UewsTiDhdlsmDfrYK
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 05, 2022, 12:13:03 AM
yeah i noticed very much the difference on how comfortable i was from the start to now, surely there was something wrong in the first steps!

i've done a rough test after re-creating the track surface with nothing but the road and the pit surface and everything seemed to work fine, but when i loaded the track in the game it said pit full, i suck at this haha

had a look and did try to make the pits first in the pit surface and then directly on track but nothing changed

sorry if i'm this insistent in asking for help too, i'm a beginner by all means when it comes to 3d modelling and programming :-X
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 05, 2022, 12:46:16 AM
I assume, you've done a centerline, etc. in TrackED and saved amended TRP. 'Pit full' usually means that there's something in my_track.rdf file. Check in TrackED (View > Race Data, load your RDF file and press 'Pits' button). Create 2 pits.
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 05, 2022, 10:05:45 AM
yes i did create pits, and placed them in a drivable surface

Might it be that the game is unable to spawn me in that surface at this point?
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 05, 2022, 01:21:04 PM
Quote from: EdoLeo on January 05, 2022, 10:05:45 AMMight it be that the game is unable to spawn me in that surface at this point?
Well, that shouldn't be the case unless there's something wrong with the surface :) Upload your FBX, TCL and RDF files and I'll have a look.
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 05, 2022, 04:38:39 PM
can't tahnk you enough haha!

i dont know how to properly attach files here so i have to create another google folder :)

https://drive.google.com/drive/folders/15VbhmC367Bxm6kln1fc5UuS-ihb-3iQf?usp=sharing

i'll write what i tried as trouble shooting just for information purpose:

-doing from scratch again the trkasphalt
-merging pits and trkasph surfaces (the one you'll see in the folder)
-separating pits and trkasph
-spawning directly on trkasph (the actual circuit not the pit)
-generating the minimum and maximum amount of pits availiable

all i could think of  :P
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 05, 2022, 08:21:51 PM
Edoardo, thanks for the FBX, but I also need to look at your TCL and RDF files.
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 05, 2022, 09:20:27 PM
oops i confused the rdf with the edf

should be good now https://drive.google.com/drive/folders/15VbhmC367Bxm6kln1fc5UuS-ihb-3iQf?usp=sharing
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 05, 2022, 09:38:56 PM
Yep, thank you! Your RDF should be called Franciacorta Kart.rdf, exactly as your MAP and TRP file, that's the reason for 'Pit Full' message.

Also, though not critical for now, the end of the centerline should join the start of the centerline without overlapping, like this:
You cannot see attachments on this board.

Moreover, the centerline is not the bestline how you actually drive. It should lie in the center of the track, something like this:
You cannot see attachments on this board.
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 05, 2022, 10:11:13 PM
oh yea i see, the pit lane full message now has disapperead, though the game now crashes after i click on start😶

might it be the centerline the problem? don't think so but will correct it
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 05, 2022, 10:12:26 PM
It's working fine at my end. Restart the game. Can you attach a screenshot of your track folder, so that I can see the list of files?

Correction - yes, I confirm that with your TRP the game goes to black screen. Fix the centerline overlapping and save a new TRP file.
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 05, 2022, 10:17:18 PM
Yeah i can do it
uhm.. how do you attach files though i don't see any stuff to do so🤐
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 05, 2022, 10:19:59 PM
Hit 'Reply' button and you'll see a full 'Post Reply' window with 'Attachments and other options' below the text box.
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 05, 2022, 10:26:50 PM
thanks, there you go, though i'm doing again the whole process if it works fine for youYou cannot see attachments on this board.
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 05, 2022, 10:32:21 PM
Quote from: EdoLeo on January 05, 2022, 10:26:50 PMthanks, there you go,
Cool! All looks good, just correct the centerline overlapping, merge it to the track, create Dynamic Surface and save TRP.
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 05, 2022, 10:42:16 PM
It still crashes for me..🤐
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 05, 2022, 10:48:04 PM
Hmm, try the attached TRP then...
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 05, 2022, 10:53:36 PM
ok so we're making steps forward haha, now it loads but there's only a black screen showing up
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 05, 2022, 11:02:06 PM
Ok then, now try to use the attached TCL for your centerline and create an updated TRP.
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 05, 2022, 11:04:32 PM
Also, close KRP before making any changes to track files, don't keep it open.
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 05, 2022, 11:18:57 PM
ok so what have i just seen was very unexpected, can't describe it so i'll just attach it haha
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 05, 2022, 11:22:11 PM
:-)) Yeah, this is what happens when you drive off the road.
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 05, 2022, 11:23:48 PM
:-)) Yeah, this is what happens when you drive off the road.
[/quote]

ahh well this was just after i clicked on start so the surface where i spawn is not properly working :o
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 05, 2022, 11:26:46 PM
also now that i've tried to load back the track in game that thing doesn't even show up, it directly crashes when i try to drive, and black screen in the menu as always

update: FIXED!! well, kind of, i had to set the pits on the track in order to not fall into the void but at least now i can drive and i know what's wrong :))

thank you really much again!
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 05, 2022, 11:38:47 PM
yes it works! did you make any changes?
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 05, 2022, 11:46:21 PM
Quote from: EdoLeo on January 05, 2022, 11:38:47 PMyes it works! did you make any changes?

No, it's your RDF file without any changes, the pits haven't been moved. The only difference - I'm using MAP compiled without textures and the kart stands firmly on the ground. BTW, the FBX shows there is no material assigned to TRKASPH. Is it as intended?
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 05, 2022, 11:48:55 PM
Quote from: EdoLeo on January 05, 2022, 11:26:46 PMthank you really much again!

And you are most welcome!
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 05, 2022, 11:52:19 PM
the FBX shows there is no material assigned to TRKASPH. Is it as intended?
[/quote]
for the moment yes, i wanted to just test the surface and make it work, but as far as i understood the texture gives some problems? i can't really think of how a texture would make me spawn not in the same place as per without texture haha
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 05, 2022, 11:58:47 PM
Well, that's a mystery to solve tomorrow :-) The most important thing - the track is working!
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: EdoLeo on January 06, 2022, 12:06:15 AM
absolutely!!

to see it working after losing my head to it it's very special even though the track needs lots of adjustments ;D

hopefully i'll be able to make it public once it's finished!
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on January 06, 2022, 12:14:14 AM
Oh, yeah, it's so true! The first run is always special!
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: kamy1977 on August 06, 2022, 04:52:32 PM
Hi
is somebody already building Franciacorta kart track?
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: kamy1977 on August 06, 2022, 04:53:35 PM
is it possible do collaborate on do it?
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: LXS77 on August 06, 2022, 07:23:55 PM
Quote from: kamy1977 on August 06, 2022, 04:52:32 PMHi
is somebody already building Franciacorta kart track?
Hi, EdoLeo was modelling the track, but the current progress is unknown.
Title: Re: How do i setup the track folder-what comes after doing the actual 3d map? Help!
Post by: kamy1977 on August 08, 2022, 05:36:38 PM
Thanks for informations
hope to get an answer from EdoLeo