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 "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
Speedometer and tachometer decals - 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: Speedometer and tachometer decals (/showthread.php?tid=1845)



Speedometer and tachometer decals - NaN - 11-07-2014

With the upcoming support for gauges in the ui, users most probably will want to have gauges with scale ticks and labels.

The issue is the range of speed and rpm limits we have with the cars in master.

Possible solution:
Let the game tell the gui what decal to use.
For speed at 40 kph/mph granularity: 120, 160, 200, 240, 280, 320, 360
For rpm at 1000rpm granularity (x1000): 5, 6, 7, 8, 9, 10, 11, ..., 20
This makes 7 speedometer textures (120.png, 160.png, ...) and at least 8 (skipping some between 11-20) tachometer textures to get all cars covered?

Alternative solution:
Tell the game what gauges are available to pick from and let it select the closest one? Technically more complex, but could get away with less textures.

Crazy idea:
Have a per car hud page, which would override the one provided by the gui skin. But we also support different gui skins (even if unused atm), how would that work then?

Any ideas, comments?


RE: Speedometer and tachometer decals - CrystalH - 11-08-2014

Ah. I wouldn't bother with that.
You have a lot of cars, if you do anything per car, it will take much time. Assuming gauges are on texture this is even more work.
We have just 1 texture with 4 elements: backround rpm, speed for km/h, speed for mph and needle,
we have 5 types (changed by user option, not car), example:
https://github.com/stuntrally/stuntrally/blob/master/data/hud/gauges5.png
I assumed 240 km/h the top speed, and 120 is in vertical middle. Higher values just have needle turning further, not a big deal for me.
Sure, each car should probably have that custom but when using a texture its really not likely. Would be easier if gauge back was generated with lines and digits but then it won't ever reach the great look as on textures.
Yeah, F1 is exception, has high rpm, should have its own rpm texture.


RE: Speedometer and tachometer decals - NaN - 11-08-2014

(11-08-2014, 09:41 AM)CrystalH Wrote: Ah. I wouldn't bother with that.
You have a lot of cars, if you do anything per car, it will take much time. Assuming gauges are on texture this is even more work.
We have just 1 texture with 4 elements: backround rpm, speed for km/h, speed for mph and needle,
we have 5 types (changed by user option, not car), example:
https://github.com/stuntrally/stuntrally/blob/master/data/hud/gauges5.png
I assumed 240 km/h the top speed, and 120 is in vertical middle. Higher values just have needle turning further, not a big deal for me.
Sure, each car should probably have that custom but when using a texture its really not likely. Would be easier if gauge back was generated with lines and digits but then it won't ever reach the great look as on textures.
Yeah, F1 is exception, has high rpm, should have its own rpm texture.

Yeah, I've tried auto-generated gauges before, but getting them to look good and be customizable would be a lot of work.

Atm I lean towards three speed (160, 240, 320) and four rpm textures (6000, 9000, 12000, 21000(f1 and co)). Might reduce the count even furter.

I need to run all cars through perf test, to get a better idea about speed/rpm ranges.


RE: Speedometer and tachometer decals - summercondon - 11-17-2014

I am not able to understand what you people's are talking about.
welcome bonus


RE: Speedometer and tachometer decals - NaN - 11-18-2014

Decided to give Inkscape ( https://inkscape.org ) a try to create the decals.

Some initial testing (the thin circles/arc are there to help with labels placement, are not part of the final image) Sleepy
[Image: QQBJDt2.jpg]


RE: Speedometer and tachometer decals - GunChleoc - 11-21-2014

Looking good Smile


RE: Speedometer and tachometer decals - NaN - 11-22-2014

I've used this tutorial as my starting point btw: http://goinkscape.com/how-to-create-a-tachometer-in-inkscape/

Although with a minor deviation. Instead of bending the line, I've applied the ruler effect directly to the circle arc.


RE: Speedometer and tachometer decals - Zigma - 01-19-2016

(11-22-2014, 02:13 PM)NaN Wrote: I've used this tutorial as my starting point btw: http://goinkscape.com/how-to-create-a-tachometer-in-inkscape/

Although with a minor deviation. Instead of bending the line, I've applied the ruler effect directly to the circle arc.

.