A. Percy Posted July 2, 2008 Author Share Posted July 2, 2008 Hi!I see that you're making great progress in this, that is so great and I will probably make my first 3D game in this Very smart to add a .chm file Just one little thing I noticed, is things getting larger when you look down?Here's a screen shot that I think is kinda weird:Hmmm... good! I need research about camera angle. Thank you! Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator VW Bug user Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral Link to comment Share on other sites More sharing options...
A. Percy Posted July 2, 2008 Author Share Posted July 2, 2008 [Off topic] I'm trying to convince my brother to do something similar, but with the "Panda 3d". If he accepts my challenge, you can expect a war of plugins Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator VW Bug user Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral Link to comment Share on other sites More sharing options...
monoceres Posted July 2, 2008 Share Posted July 2, 2008 Is only quake models supported or are .x models supported too (wouldn't be hard to implement)? Another great file format would be .3ds, but that's probably over course. Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
A. Percy Posted July 3, 2008 Author Share Posted July 3, 2008 (edited) Is only quake models supported or are .x models supported too (wouldn't be hard to implement)?Another great file format would be .3ds, but that's probably over course.muttleyOn "sea.au3" example, the ship is in 3ds format ("mayflower.3ds"). GetMesh also supports ".x" models (some time ago I loaded a Xwing model from "Battle of Endor" game (http://www.bruneras.com/fgames.htm) ).Yesterday I tried an idea and it worked: changes the device to opengl and sets transparency on water. Edited July 3, 2008 by A. Percy Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator VW Bug user Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral Link to comment Share on other sites More sharing options...
monoceres Posted July 3, 2008 Share Posted July 3, 2008 On "sea.au3" example, the ship is in 3ds format ("mayflower.3ds"). GetMesh also supports ".x" models (some time ago I loaded a Xwing model from "Battle of Endor" game (http://www.bruneras.com/fgames.htm) ).Yesterday I tried an idea and it worked: changes the device to opengl and sets transparency on water.Awesome! muttley Just a quick question.Is the plugin using the OnAutoItExit function to intercept when to clean up the resources? Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
A. Percy Posted July 3, 2008 Author Share Posted July 3, 2008 Awesome! Just a quick question.Is the plugin using the OnAutoItExit function to intercept when to clean up the resources?No.The class destructor do it for me muttley Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator VW Bug user Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral Link to comment Share on other sites More sharing options...
monoceres Posted July 3, 2008 Share Posted July 3, 2008 No.The class destructor do it for me muttleySo when I'm using the function Exit in my script all the resources are cleaned up correctly?Loving the engine so far, making a dogfight game Will you add support for primitive shapes, like triangles, lines spheres etc.? Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
dandymcgee Posted July 3, 2008 Share Posted July 3, 2008 Wow man this is a really awesome idea. Only problem I had was that Sea.au3 doesn't have any water in it? The boat it sort of floating in mid air above the dirt. Keep up the great work. - Dan [Website] Link to comment Share on other sites More sharing options...
A. Percy Posted July 3, 2008 Author Share Posted July 3, 2008 So when I'm using the function Exit in my script all the resources are cleaned up correctly?In theory, yes! But it needs more tests. The process explorer tell me that it works.Loving the engine so far, making a dogfight game muttleyLike Warbirds?Will you add support for primitive shapes, like triangles, lines spheres etc.?Some code I can use from OpenGl plugin, but not now, maybe soon. Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator VW Bug user Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral Link to comment Share on other sites More sharing options...
A. Percy Posted July 3, 2008 Author Share Posted July 3, 2008 (edited) Wow man this is a really awesome idea. Only problem I had was that Sea.au3 doesn't have any water in it? The boat it sort of floating in mid air above the dirt. Keep up the great work. Thank you! Tin2tin found the solution: Whoa, very nice! muttley One small problem I had with sea.avs: I solved it by doing this: ;water $WaterMesh = AddHillPlaneMesh( "Water", 15, 15, 180, 180, 0, 0.0, 0, 0, 10, 10 ) Instead of this: ;water $WaterMesh = AddHillPlaneMesh( "Water", 15, 15, 200, 200, 0, 0.0, 0, 0, 10, 10 ) Edited July 3, 2008 by A. Percy Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator VW Bug user Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral Link to comment Share on other sites More sharing options...
monoceres Posted July 4, 2008 Share Posted July 4, 2008 (edited) I just finished my first demo muttley It's not Warbirds but it's pretty cool http://monoceres.se/Uploads/Space_Travel.zip Edited July 4, 2008 by monoceres Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
A. Percy Posted July 4, 2008 Author Share Posted July 4, 2008 I just finished my first demo muttley It's not Warbirds but it's pretty cool http://monoceres.se/Uploads/Space_Travel.zipCool! Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator VW Bug user Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral Link to comment Share on other sites More sharing options...
A. Percy Posted July 7, 2008 Author Share Posted July 7, 2008 (edited) Hi!New update released. See first post or access:http://www.box.net/shared/b5sz9550kc muttleyEdit:SetMaterialTexture modified - now it needs a loaded texture pointer instead image path, like original irrlichtYou can get a Texture pointer using GetTexture.Edit2:CollTest improvedEdit3:Some functions added Edited July 7, 2008 by A. Percy Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator VW Bug user Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral Link to comment Share on other sites More sharing options...
A. Percy Posted July 8, 2008 Author Share Posted July 8, 2008 Achmed was here? Silence... Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator VW Bug user Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral Link to comment Share on other sites More sharing options...
Tin2tin Posted July 8, 2008 Share Posted July 8, 2008 Now I see light reflection in the water when moving. muttley Could you in the change log add the names of the new functions, that way it'll be easier to locate and test the new stuff. Have you tried to add fog under the water and and changed the surface map to partly transparent? Whats next? Sky domes? DVD slideshow GUI Link to comment Share on other sites More sharing options...
A. Percy Posted July 9, 2008 Author Share Posted July 9, 2008 Could you in the change log add the names of the new functions, that way it'll be easier to locate and test the new stuff.Ok!Have you tried to add fog under the water and and changed the surface map to partly transparent?No, but I'll do.Whats next? Sky domes? Yes! muttley Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator VW Bug user Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral Link to comment Share on other sites More sharing options...
monoceres Posted July 9, 2008 Share Posted July 9, 2008 Sorry A. Percy, I sunk your ship muttley expandcollapse popup#include "IrrlichtPluginUtils.au3" CreateDevice($EDT_DIRECT3D9, 640, 480, 16, 0, 0, 0) ;setting window caption SetWindowCaption("Oops") $ModelsDir = @ScriptDir & "\Models\" $Light = AddLightSceneNode(0, 2000, 2000, 2000, 0.5, 0.5, 0.5, 10000) $Light = AddLightSceneNode(0, -2000, 2000, -2000, 0.2, 0.2, 0.2, 10000) $cam = AddCameraSceneNodeFPS(0, 100, 30, 1, 0.08) SetPosition($cam, -100, 100, 0);setting position SetTarget($cam, 0, 25, 1000);setting target $ShipMesh = GetMesh($ModelsDir & "mayflower.3ds") $ShipNode = AddOctTreeSceneNode($ShipMesh) SetRotation($ShipNode, 0, 140, 0) ;~ SetMaterialFlag( $ShipNode, $EMF_NORMALIZE_NORMALS, 1 ) SetPosition($ShipNode, 0, 0, 200);setting position ;AddHillPlaneMesh( "MeshName", TileSizeX, TileSizeY, TileCountX, TileCountY [, Material [, HillHeight, [CountHillsX [, CountHillsY [, TextureRepeatCountX[, TextureRepeatCountY ]]]]]] ) $WaterMesh = AddHillPlaneMesh("Water", 21, 17, 140, 140, 0, 0.0, 0, 0, 10, 10) ;AddWaterSurfaceSceneNode( Mesh, WaveHeight, WaveSpeed, WaveLength, Parent ) $WaterNode = AddWaterSurfaceSceneNode($WaterMesh, 0.5, 500, 0.001, 0) SetMaterialTexture($WaterNode, 0, GetTexture(@ScriptDir & "\data\water2.jpg")) SetMaterialTexture($WaterNode, 1, GetTexture(@ScriptDir & "\data\water.jpg")) SetMaterialType($WaterNode, $EMT_REFLECTION_2_LAYER) $WaterMaterial = GetMaterial($WaterNode, 0) SetEmissiveColor($WaterMaterial, 0, 50, 50, 80) $WaterSelector = CreateOctTreeTriangleSelector($WaterMesh, $WaterNode) SetTriangleSelector($cam, $WaterSelector) $phase = 0 $rot = 0 $ypos=0 While IrrRun() If $phase = 0 Then $rot -= 0.3 SetRotation($ShipNode, $rot, 0, 0) If $rot < -80 Then $phase += 1 ElseIf $phase=1 Then $ypos-=0.4 SetPosition($ShipNode, 0, $ypos, 200);setting position EndIf BeginScene(True, True, 255, 100, 100, 250) SceneDraw() GuiDraw() EndScene() Sleep(20) WEnd Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
monoceres Posted July 10, 2008 Share Posted July 10, 2008 (edited) Hi! Is there any chance of adding different kind of lights? Like spotlights and directional lights? Edit: I took a look at the source for irrlicht myself and the SLight class seems to have just that! Yay! ELT_POINT, ELT_SPOT, ELT_DIRECTIONAL Edited July 10, 2008 by monoceres Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
A. Percy Posted July 10, 2008 Author Share Posted July 10, 2008 Hi!Is there any chance of adding different kind of lights?Like spotlights and directional lights?Edit: I took a look at the source for irrlicht myself and the SLight class seems to have just that! Yay!ELT_POINT,ELT_SPOT,ELT_DIRECTIONALokay! muttley Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator VW Bug user Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral Link to comment Share on other sites More sharing options...
A. Percy Posted July 12, 2008 Author Share Posted July 12, 2008 New update!See "lights.au3" example.http://www.box.net/shared/gcs8vp8o4g Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator VW Bug user Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now