-
Not so spooky...
Re: Who wants a RaGEZONE email?
-
Elite Member
Re: Who wants a RaGEZONE email?
public float Length()
{
float result;
DistanceSquared(ref this, ref zero, out result);
return (float)System.Math.Sqrt(result);
}
public float LengthSquared()
{
float result;
DistanceSquared(ref this, ref zero, out result);
return result;
}
public static Vector3 Lerp(Vector3 value1, Vector3 value2, float amount)
{
return new Vector3(
MathHelper.Lerp(value1.X, value2.X, amount),
MathHelper.Lerp(value1.Y, value2.Y, amount),
MathHelper.Lerp(value1.Z, value2.Z, amount));
}
-
Not so spooky...
Re: Who wants a RaGEZONE email?
-
Elite Member
Re: Who wants a RaGEZONE email?
public static void Lerp(ref Vector3 value1, ref Vector3 value2, float amount, out Vector3 result)
{
result = new Vector3(
MathHelper.Lerp(value1.X, value2.X, amount),
MathHelper.Lerp(value1.Y, value2.Y, amount),
MathHelper.Lerp(value1.Z, value2.Z, amount));
}
public static Vector3 Max(Vector3 value1, Vector3 value2)
{
return new Vector3(
MathHelper.Max(value1.X, value2.X),
MathHelper.Max(value1.Y, value2.Y),
MathHelper.Max(value1.Z, value2.Z));
}
public static void Max(ref Vector3 value1, ref Vector3 value2, out Vector3 result)
{
result = new Vector3(
MathHelper.Max(value1.X, value2.X),
MathHelper.Max(value1.Y, value2.Y),
MathHelper.Max(value1.Z, value2.Z));
}
public static Vector3 Min(Vector3 value1, Vector3 value2)
{
return new Vector3(
MathHelper.Min(value1.X, value2.X),
MathHelper.Min(value1.Y, value2.Y),
MathHelper.Min(value1.Z, value2.Z));
}
-
Not so spooky...
Re: Who wants a RaGEZONE email?
-
Elite Member
Re: Who wants a RaGEZONE email?
public static void Min(ref Vector3 value1, ref Vector3 value2, out Vector3 result)
{
result = new Vector3(
MathHelper.Min(value1.X, value2.X),
MathHelper.Min(value1.Y, value2.Y),
MathHelper.Min(value1.Z, value2.Z));
}
public static Vector3 Multiply(Vector3 value1, Vector3 value2)
{
value1.X *= value2.X;
value1.Y *= value2.Y;
value1.Z *= value2.Z;
return value1;
}
public static Vector3 Multiply(Vector3 value1, float scaleFactor)
{
value1.X *= scaleFactor;
value1.Y *= scaleFactor;
value1.Z *= scaleFactor;
return value1;
}
-
Sorcerer Supreme
Re: Who wants a RaGEZONE email?
It's morning for my, 3+1=5
-
Not so spooky...
Re: Who wants a RaGEZONE email?
Can you not post anything els
-
Elite Member
Re: Who wants a RaGEZONE email?
public static void Multiply(ref Vector3 value1, float scaleFactor, out Vector3 result)
{
result.X = value1.X * scaleFactor;
result.Y = value1.Y * scaleFactor;
result.Z = value1.Z * scaleFactor;
}
public static void Multiply(ref Vector3 value1, ref Vector3 value2, out Vector3 result)
{
result.X = value1.X * value2.X;
result.Y = value1.Y * value2.Y;
result.Z = value1.Z * value2.Z;
}
public static Vector3 Negate(Vector3 value)
{
value = new Vector3(-value.X, -value.Y, -value.Z);
return value;
}
public static void Negate(ref Vector3 value, out Vector3 result)
{
result = new Vector3(-value.X, -value.Y, -value.Z);
}
public void Normalize()
{
Normalize(ref this, out this);
}
-
Not so spooky...
Re: Who wants a RaGEZONE email?
-
Elite Member
Re: Who wants a RaGEZONE email?
public static Vector3 Normalize(Vector3 vector)
{
Normalize(ref vector, out vector);
return vector;
}
public static void Normalize(ref Vector3 value, out Vector3 result)
{
float factor;
Distance(ref value, ref zero, out factor);
factor = 1f / factor;
result.X = value.X * factor;
result.Y = value.Y * factor;
result.Z = value.Z * factor;
}
public static Vector3 SmoothStep(Vector3 value1, Vector3 value2, float amount)
{
return new Vector3(
MathHelper.SmoothStep(value1.X, value2.X, amount),
MathHelper.SmoothStep(value1.Y, value2.Y, amount),
MathHelper.SmoothStep(value1.Z, value2.Z, amount));
}
-
Sorcerer Supreme
Re: Who wants a RaGEZONE email?
If you Ask me hè look like a bot :o
-
Elite Member
Re: Who wants a RaGEZONE email?
public static void SmoothStep(ref Vector3 value1, ref Vector3 value2, float amount, out Vector3 result)
{
result = new Vector3(
MathHelper.SmoothStep(value1.X, value2.X, amount),
MathHelper.SmoothStep(value1.Y, value2.Y, amount),
MathHelper.SmoothStep(value1.Z, value2.Z, amount));
}
public static Vector3 Subtract(Vector3 value1, Vector3 value2)
{
value1.X -= value2.X;
value1.Y -= value2.Y;
value1.Z -= value2.Z;
return value1;
}
public static void Subtract(ref Vector3 value1, ref Vector3 value2, out Vector3 result)
{
result.X = value1.X - value2.X;
result.Y = value1.Y - value2.Y;
result.Z = value1.Z - value2.Z;
}
- - - Updated - - -
Me not a bot, rly, but i can make them
-
Sorcerer Supreme
Re: Who wants a RaGEZONE email?
I have alive i think, so cya. Have fun with spamming
-
Elite Member
Re: Who wants a RaGEZONE email?
Dont like C#? okay....
Dim fElapsed As Single
If mlLastTime = Int32.MaxValue Then
fElapsed = 1.0F
Else : fElapsed = (lCurrentTime - mlLastTime) / 30.0F
End If
mlLastTime = lCurrentTime
With moDevice.Lights(0)
.Diffuse = System.Drawing.Color.FromArgb(255, 255, 255, 255)
.Ambient = System.Drawing.Color.FromArgb(255, 64, 64, 64)
.Type = LightType.Point
.Range = 10000000
.Specular = System.Drawing.Color.FromArgb(255, 255, 255, 255)
.Attenuation0 = 1
.Attenuation1 = 0
.Attenuation2 = 0
.Position = New Vector3(500000, 100000, 100000)
.Enabled = True
.Update()
End With
-
Not so spooky...
Re: Who wants a RaGEZONE email?
-
Elite Member
Re: Who wants a RaGEZONE email?
If muSettings.LightQuality > EngineSettings.LightQualitySetting.VSPS1 Then
If moModelShader Is Nothing Then moModelShader = New ModelShader()
Dim vecTemp As Vector3 = New Vector3(goCamera.mlCameraX, goCamera.mlCameraY, goCamera.mlCameraZ)
moModelShader.PrepareToRender(Vector3.Multiply(moDevice.Lights(0).Position, -1.0F), moDevice.Lights(0).Diffuse, moDevice.Lights(0).Ambient, moDevice.Lights(0).Specular)
End If
moDevice.RenderState.Wrap0 = WrapCoordinates.Zero
moDevice.RenderState.CullMode = Cull.None
moDevice.RenderState.Lighting = False
moDevice.RenderState.ZBufferWriteEnable = False
moDevice.SetTexture(0, moCosmoTex)
matWorld.Multiply(Matrix.RotationY(3.0))
matWorld.Multiply(Matrix.RotationX(0.3))
moDevice.Transform.World = matWorld
matWorld = Matrix.Identity
moCosmoSphere.DrawSubset(0)
moDevice.SetTexture(0, Nothing)
moDevice.RenderState.ZBufferWriteEnable = True
moDevice.RenderState.Lighting = True
moDevice.RenderState.CullMode = Cull.CounterClockwise
moDevice.RenderState.Wrap0 = 0
-
Sorcerer Supreme
Re: Who wants a RaGEZONE email?
I like c++. So spam that again
-
Elite Member
Re: Who wants a RaGEZONE email?
If UpdateButNoRender = False AndAlso GFXEngine.gbDeviceLost = False AndAlso GFXEngine.gbPaused = False Then
Using oSpr As New Sprite(moDevice)
Const fScale As Single = 44.3892059F '(1000 / 0.88F) / 256.0F
Dim matTemp As Matrix = Matrix.Scaling(fScale, fScale, fScale)
matWorld = Matrix.Identity
matWorld.Multiply(Matrix.Translation(-256.819F, 0, 232))
matWorld.Multiply(matTemp)
moDevice.RenderState.ZBufferWriteEnable = False
moDevice.Transform.World = matWorld
oSpr.SetWorldViewLH(moDevice.Transform.World, moDevice.Transform.View)
oSpr.Begin(SpriteFlags.AlphaBlend Or SpriteFlags.Billboard Or SpriteFlags.ObjectSpace)
oSpr.Draw(moPlanetGlowTex, System.Drawing.Rectangle.Empty, New Vector3(256, 256, 0), New Vector3(0, 0, 0), Color.FromArgb(255, 128, 192, 255))
oSpr.End()
moDevice.RenderState.ZBufferWriteEnable = True
End Using
End If
-
Sorcerer Supreme
Re: Who wants a RaGEZONE email?
-
Elite Member
Re: Who wants a RaGEZONE email?
#include "stdafx.h"
#include "Client.h"
#include "ClientUpdate.h"
#include "SelectTutorial.h"
#include "ProgDlg.h"
#include "Debug/Trace.h"
#include "Debug/Assert.h"
#include "Debug/ExceptionHandler.h"
#include "Debug/MemoryGuard.h"
#include "Display/PrimitiveMaterial.h"
#include "Display/PrimitiveSurface.h"
#include "Standard/CommandLine.h"
#include "Standard/Process.h"
#include "Standard/CharString.h"
#include "Standard/Types.h"
#include "Standard/Settings.h"
#include "Standard/Timer.h"
#include "File/FileDisk.h"
#include "Factory/BrokerFolder.h"
#include "System/Platform.h"
#include "Render3d/NodeParticleSystem.h"
#include "Render3d/NodeStarField.h"
#include "Render3D/NodeBoolean.h"
#include "Game/NounProjectile.h"
#include "Game/Trail.h"
#include "Interface/GameDocument.h"
-
Not so spooky...
Re: Who wants a RaGEZONE email?
-
Elite Member
Re: Who wants a RaGEZONE email?
void CClientApp::RunGame( InterfaceContext * pInterface )
{
#ifndef _DEBUG
__try {
#endif
// THE MAIN GAME LOOP
while( pInterface->render() ) {};
#ifndef _DEBUG
}
__except( ProcessException( GetExceptionInformation() ) )
{
m_ErrorMessage = _T("An unknown error occured while running game, please send in bug report!");
m_Error = true;
}
#endif
}
-
Not so spooky...
Re: Who wants a RaGEZONE email?
-
Elite Member
Re: Who wants a RaGEZONE email?
int CClientApp::StartGame()
{
#ifdef _DEBUG
// this stops the massive memory dumps on program exit..
_CrtSetReportMode( _CRT_WARN, 0 );
#endif
m_Error = false;
SetProcessErrorMode( EM_DIALOG );
// Force client to use CPU 0 only... we've been seeing some very weird lag on multi-core
// systems and this seems to correct it..
if (! SetProcessAffinityMask( GetCurrentProcess(), 1 ) )
TRACE( "SetProcessAffinityMask failed...!" );
// initialize the localized text system, this will force the locale.txt file
// to be loaded from disk.
LocalizedString::locale();
#ifdef _DEBUG
Settings settings( "ClientD" );
#else
Settings settings( "Client" );
#endif
// watch for failures to allocate memory
//MemoryGuard::initialize();
CharString sCommandLine = m_lpCmdLine;
CommandLine commands( sCommandLine );
// pre-update options
int nOption = -1;
if ( (nOption = commands.find( "-setup" )) >= 0 ||
(nOption = commands.find( "setup" )) >= 0 )
{
//m_RunLobbyOnExit = false;
Process::start( CLIENT_SETUP_EXE );
return FALSE;
}
class CDbSave
{
public:
CDbSave();
virtual ~CDbSave();
BOOL Initialize();
BOOL Feee();
BOOL Add(LPBYTE pObject, int nSize, BYTE headcode, int index);
DWORD ThreadProc();
BOOL Begin();
void End();
private: