The project have texture support now, implemented by EFF. To use textured version, you need glaux.dll on your system.
Glut32 and Glaux can be found here.
This project is open for any contribution, modifications of any kind. Is public! But please, if you expand it in any way, share with us!
List of Functions:
-Initializing: CreateGlWindow( Width, Heigh, "WinTitle" ) SetClearColor( Red, Green, Blue ) -Manage Lights: LightNumber can be 0 to 7 CreateLight( LightNumber, X, Y, Z ) SetLightAmbient( LightNumber, Red, Green, Blue ) SetLightDiffuse( LightNumber, Red, Green, Blue ) SetLightSpecular( LightNumber, Red, Green, Blue ) SetLightPosition( LightNumber, X, Y, Z ) -Manage Camera: SetCamera( EyeX, EyeY, EyeZ, TargetX, TargetY, TargetZ ) SetCameraUp( X, Y, Z ) SetCameraView( Near, Far ) -Show: SceneDraw( ) -Manage Objects: AddObject( ObjectName ) DelObject( ObjectName ) TranslateObject( ObjectName, X, Y, Z ) RotateObject( ObjectName, X, Y, Z ) ScaleObject( ObjectName, X, Y, Z ) -Manage Groups: Groups can contain Objects and another Groups CreateGroup( GroupName ) SetToGroup( GroupName, Object/GroupName ) TranslateGroup( GroupName, X, Y, Z ) RotateGroup( GroupName, X, Y, Z ) ShowGroup( GroupName ) HideGroup( GroupName ) DeleteGroup( GroupName ) -Add Poligons: AddLine( ObjectName, Xv1, Yv1, Zv1, Xv2, Yv2, Zv2, Red, Green, Blue, Alpha ) AddTriangle( ObjectName, Xv1, Yv1, Zv1, Xv2, Yv2, Zv2, Xv3, Yv3, Zv3, Xn, Yn, Zn, Red, Green, Blue, Alpha ) AddQuad( ObjectName, Xv1, Yv1, Zv1, Xv2, Yv2, Zv2, Xv3, Yv3, Zv3, Xv4, Yv4, Zv4, Xn, Yn, Zn, Red, Green, Blue, Alpha ) AddGlSphere( ObjectName, X, Y, Z, Radius, Slices, Stacks, Red, Green, Blue, Alpha ) AddGlCylinder( ObjectName, X, Y, Z, Radius1, Radius2, Height, Slices, Stacks, Red, Green, Blue, Alpha ) AddGlStrokeChar( ObjectName, X, Y, Z, Red, Green, Blue, AsciiCode ) -Manage Textures: SetTextureBuffer( NumberTextures ) AddTexture( textureID, TexturePath ) BindTexture( objName, TextureName ) SetTextureMode( )
A blank sample:
#include "GlPluginUtils.au3" ;hide icon!!!!!! AutoItSetOption( "TrayIconHide", 1 ) $Title = "Sample" DefineGlWindow( 800, 600, $Title ) SetClearColor( 0.1, 0.1, 0.1 ) CreateLight( 0, 600, 1000, 600 ) SetLightAmbient( 0, 0.2, 0.2, 0.2 ) SetLightDiffuse( 0, 0.7, 0.7, 0.7 ) SetLightSpecular( 0, 0, 0, 0 ) ;... make some objects... SetCamera( 0, 60, 300, 0, 30, 0 ) Opt( "WinTitleMatchMode", 3 ) WinWait( $Title ) $CheckWindowTimer = TimerInit( ) While 1 SceneDraw( ) sleep( 10 ) ;...post your animation code here... ;check if window exist... (using a timer to reduce CPU usage by WinExists function) If TimerDiff( $CheckWindowTimer ) > 1000 Then If WinExists( $Title ) = 0 Then ExitLoop $CheckWindowTimer = TimerInit( ) EndIf Wend
Comments will be welcome.
Bye!
PS: Requires a graphics card that supports OpenGL (Intergrated Chipsets not recommended).
--------------------------------------
UPDATED - 31/Aug/2007
--------------------------------------
Added function:
AddPartialDisk( Name, X, Y, Z, Radius1, Radius2, Slices, Stacks, StartAngle, SweepAngle, Red, Green, Blue, Alpha )
Fixed texture "bug". Now it works with textures in any size.
--------------------------------------
UPDATED - 18/Sep/2007
--------------------------------------
deprecated...
T2 is the current version
Details here.
--------------------------------------
UPDATED - 29/Aug/2007
--------------------------------------
>> Removed functions:
SetFPS
GlMainLoop
>> Added command:
SceneDraw( )
- now you control animation loop inside autoit...
- no more "racing condition" while working in some animations
>> Now Cylinder have 2 sides.
--------------------------------------
UPDATED - 23/Aug/2007
--------------------------------------
DeleteGroups fixed
Some improvements
--------------------------------------
UPDATED - 22/Aug/2007
--------------------------------------
Now texture works on quads, triangles, spheres and cylinders (new)
New Functions:
AddGlCylinder( ObjectName, X, Y, Z, Radius1, Radius2, Height, Slices, Stacks, Red, Green, Blue, Alpha )
Removed Function:
AddGlCone( ObjectName, X, Y, Z, Radius, Height, Slices, Stacks, Red, Green, Blue, Alpha ) - deprecated by AddGlCylinder
--------------------------------------
UPDATED - 20/Aug/2007
--------------------------------------
New Functions:
ShowGroup( GroupName )
HideGroup( GroupName )
DeleteGroup( GroupName )
--------------------------------------
UPDATED - 10/Aug/2007
--------------------------------------
Bug fix on SetFPS
New Functions:
AddGlStrokeChar( Name, X, Y, Z, Red, Green, Blue, AsciiCode )
ScaleObject( Name, X, Y, Z )
--------------------------------------
UPDATED - 07/Aug/2007
--------------------------------------
Bug fix - no more flick in some machines
--------------------------------------
UPDATED - 25/Apr/2007
--------------------------------------
Texture bug that allows only one texture to be used was fixed. Now it can be used with any number of textures.
Modifications:
Function TextureMode can be used with one parameter - 0 (default) that turns texture mode without other colour. Or 1, textures will be combined with object colour.
--------------------------------------
UPDATED - 20/Apr/2007
--------------------------------------
EFF has added texture functions
It needs "glaux.dll" to work.
--------------------------------------
UPDATED - 16/Apr/2007
--------------------------------------
Cone bug fixed - thanks EFF
--------------------------------------
UPDATED - 22/Jan/2007 - r2
--------------------------------------
Bug related SetFPS function fixed
--------------------------------------
UPDATED - 22/Jan/2007
--------------------------------------
New functions:
SetFPS( Frequency )
Sets animation frequency per second
--------------------------------------
UPDATED - 11/Jan/2007
--------------------------------------
New functions:
SetCameraView( Near, Far ); - made to Pa Callender (I think that it will be usefull for you)
AddGlCone( Name, X, Y, Z, Radius, Height, Slices, Stacks, Red, Green, Blue, Alpha )
Now I'm planning to add textures. Give me time...
--------------------------------------
UPDATED - 05/Jan/2007
--------------------------------------
New function: SetLightPosition( LightNumber, X, Y, Z )
Some refactory in code.
--------------------------------------
UPDATED - 25/Dec/2006
--------------------------------------
Now using GL_CULL_FACE: means that any polygon have only one face (now the polygon vertexes needs be placed clockwise - examples was updated )
--------------------------------------
UPDATED - 23/Dec/2006
--------------------------------------
Added functions:
CreateLight( Number, X, Y, Z ) -> important: for while, it's working only with Const Lights
SetLightAmbient( LightNumber, Red, Green, Blue )
SetLightDiffuse( LightNumber, Red, Green, Blue )
SetLightSpecular( LightNumber, Red, Green, Blue )
Modifications:
Only internal improvements.
--------------------------------------
UPDATED - 12/Dec/2006
--------------------------------------
Added functions:
DelObject( Name )
CreateGroup( Name ) ;yes, for now you can group objects
SetToGroup( GroupName, Object ) ; insert object into group, or group into group (recursive)
TranslateGroup
RotateGroup
Please, see file Sample2.au3 inside zip file.
Modifications:
All modifications was internal. Now objects and groups works in a linked list. New file with mesh class.
--------------------------------------
UPDATED - 08/Dec/2006
--------------------------------------
Added function:
AddGlSphere( Name, X, Y, Z, Radius, Slices, Stacks, Red, Green, Blue, Alpha )
Now Alpha blending is working!
--------------------------------------
UPDATED - 07/Dec/2006
--------------------------------------
For now is possible add lines into objects -
AddLine( $Name, $Source_X, $Source_Y, $Source_Z, $Dest_X, $Dest_Y, $Dest_Z, $Red, $Green, $Blue )
Modified:
RotateObject was modified - Now only rotate objects across it's axis.
--------------------------------------

Download:
With texture support:
- total downloads from very old versions: 416
- all versions can be found here
Without texture (discontinued):
Last:
Au3GlPlugin_2007_04_16.zip 50.78KB
1188 downloadsOld: +147 downloads...
source + compiled dll
Used IDE: Code::Blocks
Edited by A. Percy, 28 February 2008 - 08:27 PM.






