2014-08-19, 21:33
Here is the example announcement preset I was talking about, save it as announce.ann in the announce folder and disable d3dex in the advanced settings. Let me know if it still works .
I was thinking about generating the 3d font offline so it would work without having to disable d3dex but like everything else I never got around to it.
Nice work with your library! Vortex doesn't support including other files from the presets, it would be possible to add this but like you said I think a lot of your functions would be better as part of Vortex itself.
I'm currently rebuilding my old PC so I may have the source soon (assuming the hard drive hasn't died) and then we can start looking at adding some of your changes.
Code:
float t;
float announce_time = 10;
Texture envTexture;
Mesh nameMesh;
int len = 0;
void Init()
{
t = 0;
envTexture.LoadTexture("spheremap_gracefilter.jpg");
string name = CurrentTrackInfo.Title;
nameMesh.CreateTextMesh( name, true );
len = name.length();
}
void Render()
{
t = t + (TIMEPASS / announce_time);
if ( t > 1.0f)
{
t = 1.0f;
FINISHED = true;
}
gfxSetEnvTexture(envTexture);
float lookx = 0.0-(Cos(t*3.141592)*(len+6)*0.3);
float eyex = ((t-0.5)*(len+4)*0.6);
float eyez = 3.0*Sin(t*3.14159)*Sin(t*3.14159);
gfxLookAt( eyex, 0, -eyez, lookx, 0, 0, 0, 1, 0 );
gfxTranslate(0,0.2f,0);
gfxDrawMesh( nameMesh );
}
I was thinking about generating the 3d font offline so it would work without having to disable d3dex but like everything else I never got around to it.
Nice work with your library! Vortex doesn't support including other files from the presets, it would be possible to add this but like you said I think a lot of your functions would be better as part of Vortex itself.
I'm currently rebuilding my old PC so I may have the source soon (assuming the hard drive hasn't died) and then we can start looking at adding some of your changes.