• Welcome to PiBoSo Official Forum. Please login or sign up.
 
April 27, 2025, 04:17:23 PM

Output plugins

Started by PiBoSo, June 06, 2013, 08:06:33 PM

Previous topic - Next topic

PiBoSo


Example source code updated to the latest interface.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

PiBoSo


Example source code updated to the latest interface.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

PiBoSo


Please note that, starting with Beta14, output plugins must be compiled for 64 bit.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

PiBoSo


Example source code updated with the latest structure members descriptions.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

PiBoSo


Example source code updated to the latest interface.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

UMO

Hi. Does anyone know what is the structure and the variable that indicates the status REPLAY ON? I have been checking the plugin example gpb_example.c but not sure. I know that there are RACE, PRACTICE, QUALIFY ... etc .. Thanks for your work.

HornetMaX

Quote from: UMO on May 05, 2020, 08:59:58 AMHi. Does anyone know what is the structure and the variable that indicates the status REPLAY ON? I have been checking the plugin example gpb_example.c but not sure. I know that there are RACE, PRACTICE, QUALIFY ... etc .. Thanks for your work.
Replay, Spectate or On-Track are given by _iState in the Draw call:

/*
_iState: 0 = on track; 1 = spectate; 2 = replay.
Set _piNumQuads to the number of quads to draw.
Set _ppQuad to an array of SPluginQuad_t structures.
Set _piNumString to the number of strings to draw.
Set _ppString to an array of SPluginString_t structures.
This function is optional
*/
__declspec(dllexport) void Draw(int _iState,int *_piNumQuads,void **_ppQuad,int *_piNumString,void **_ppString)
{
 *_piNumQuads = 0;
 *_piNumString = 0;
}

UMO

@HornetMax: New dlo done and working :D but I observed that Piboso does not generate telemetry in the replays :'(  A shame! It is a limitation. Do you know why it is not generated?

HornetMaX

Quote from: UMO on May 07, 2020, 12:17:51 PM@HornetMax: New dlo done and working :D but I observed that Piboso does not generate telemetry in the replays :'(  A shame! It is a limitation. Do you know why it is not generated?
Because it would make the replay too big, likely.

PiBoSo

Example source code updated to the latest interface.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

PiBoSo

Example source code updated to the latest interface.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

PiBoSo

Example source code updated to the latest interface.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

PiBoSo

Example source code updated to add a couple functions to control the replay / live riders and cameras selection.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

gaga_dreher

Is there a way to output when the motorcycle is out of the track? Or somehow know by an output value if the tires are not on asphalt/concrete?

Chris_Beeves

int m_aiWheelMaterial[2];          /* material index. 0 = not in contact */

That will give you data on what material each wheel is touching.

0 airborne
1 asphalt
2 asphalt b
3 asphalt c
4 concrete
5 grass
6 sand
7 kerb
8 soil
9 painted asphalt
10 astroturf
I had to try..