The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5308 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1429 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Forums
VDrift roads in Blender - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3)
+--- Forum: Cars & Tracks (https://www.vdrift.net/Forum/forumdisplay.php?fid=11)
+--- Thread: VDrift roads in Blender (/showthread.php?tid=1624)



VDrift roads in Blender - NaN - 03-18-2012

I've added roads.trk import and export functionality to the blender25 plugin(needed it for gui work).

A track supports multiple roads. A road is a patch strip. A patch consists of 3 quads. Road patch connectivity information is encoded into uv coordinates.

[Image: roadma.jpg]

Howto generate uv coords in blender:
- Select the first patch of your road in edit mode(3 quads).
- Uv Unwrap patch to fill the uv rectangle(see image above).
- Select all faces.
- UV Unwrap/Follow active quads/Equal

The export is experimental atm. Interpolated patch points deviate by up to 5% from the original ones. Haven't figured out why yet.

I'll create a new video tutorial as soon as start positions import/export is ready. Then it should be possible to create the track completely in blender.

Link: https://github.com/VDrift/blender-scripts


- vdriftfan - 03-19-2012

Sticky this please.
Also, if the tracks can be completely made in blender does this mean that the track editor will be obsolete? Or will it be updated?


- NaN - 03-19-2012

I've found/fixed a bug in slope calculation. The export is now stable, will produce identical values to track editor version >= 2009(interpolation code change).

Quote:Sticky this please.
It should go into the wiki. But the wiki for track editing, creation needs to be overhauled first I think.

Quote:Also, if the tracks can be completely made in blender does this mean that the track editor will be obsolete? Or will it be updated?
I prefer to use one tool to simplify the process as much as possible.

There have been requests to integrate the editor in VDrift. But this is a rather complex undertaking compared to a blender script imho.