The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key 1 - Line: 866 - File: inc/class_parser.php PHP 8.1.27 (Linux)
File Line Function
/inc/class_parser.php 866 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key 1 - Line: 885 - File: inc/class_parser.php PHP 8.1.27 (Linux)
File Line Function
/inc/class_parser.php 885 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Forums
Smooth road surfaces - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4)
+--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9)
+--- Thread: Smooth road surfaces (/showthread.php?tid=1572)



Smooth road surfaces - NaN - 10-20-2011

I've made some progress integrating another somewhat older patch. For anyone interested check out: https://github.com/logzero/vdrift

The idea is to interpolate track mesh geometry to get a smooth surface using cubic interpolation for contact position and quadratic interpolation for the normal derived from triangle mesh vertex and normal data.

The code in the fork is already using this interpolation overriding road patch values. When finished this would make road patch interpolation and hopefully road tracing obsolete. A track could be defined as a list of road meshes(segments).

Issues:
At the moment code is used for wheel rays only. Car collision shape and especially car wheel cylinders are still colliding with non-smoothed geometry leading to collision artifacts.
Tracks might have to be checked for broken/skewed normals. I've already run into one on ruudskogen.

I've added some code to visualize triangle control points edges and normals(left front wheel):
[Image: 52379630.jpg]
[Image: 87386285.jpg]


Re: Smooth road surfaces - joevenzon - 10-22-2011

NaN Wrote:Car collision shape and especially car wheel cylinders are still colliding with non-smoothed geometry leading to collision artifacts.

Isn't that also an issue with the code in master? (traced splines for wheel ray, plain geometry for collision shape)


- NaN - 10-22-2011

Only with damage enabled. The default shape in master is a rounded box without extra wheel shapes.

Edit: The car will bottom out in the worst case(large bump amplitude for example).


- NaN - 12-17-2011

I've implemented code to interpolate track mesh geometry for all contacts (contact callback). The contact depth and normal are corrected. It works under ideal conditions and would even make wheel shapes possible instead of rays. But it breaks under testing with vdrift tracks. Atm I don't think it is fixable without writing a custom mesh collision algorithm(bullet is using gjk here), which would be a larger undertaking.

What does it mean? No fracture functionality as it requires complex collision shapes that require smooth contact surfaces...

Testing contact correction, f1 complex collision shape:
[Image: vdrift.jpg]


- NaN - 12-17-2011

I possible hack/workaround could be to stick with the current system but use a large shape margin to keep it from surface. Wheel collision cylinder radius = wheel radius - 0.1 or something. The problem is of course to get the margin right.


- NaN - 12-22-2011

Alternatively contact correction could be constrained to road meshes only(right now all mesh contacts are processed). Their vertex normals should be sane enough(don't deviate too much from triangle normal) to be usable.


- joevenzon - 12-22-2011

You could do both: use contact correction for road meshes, AND do a slight offset for the wheel fracture meshes.

Also, how do I turn on your cool visualization mode?


- NaN - 12-23-2011

I've pushed the debug drawer into master, enabled damage again. Parameters are -drawaabbs, -drawshapes and -drawcontacts.


- joevenzon - 12-31-2011

Cool! I pushed a fix to make line drawing work with the gl3 renderer.


- Nicolas D - 02-13-2012

I was attempting to draw text using TextRenderer as per the TextRenderer Javadoc. I'm using a GLCanvas with a GL3 context. joevenzon, could you tell how you make line drawing work with the gl3 renderer?


- joevenzon - 02-15-2012

VDrift's gl3 renderer is something I wrote that wraps the OpenGL 3.3 API. The OpenGL spec is pretty easy to read, and describes how to do line rasterization:
http://www.opengl.org/registry/doc/glspec33.core.20100311.pdf

... but it sounds like you might be talking about something written in Java, which I know nothing about.