Jump to content

Recommended Posts

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 :P

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:

Posted Image

Posted Image

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[center]VW Bug user[/center]Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral

Link to post
Share on other sites
  • Replies 231
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

[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[center]VW Bug user[/center]Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral

Link to post
Share on other sites

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.

muttley

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.

Edited 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[center]VW Bug user[/center]Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral

Link to post
Share on other sites

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 post
Share on other sites

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[center]VW Bug user[/center]Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral

Link to post
Share on other sites

No.

The class destructor do it for me muttley

So 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 post
Share on other sites

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 muttley

Like 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[center]VW Bug user[/center]Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral

Link to post
Share on other sites

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 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[center]VW Bug user[/center]Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral

Link to post
Share on other sites

I just finished my first demo muttley

It's not Warbirds but it's pretty cool :)

http://monoceres.se/Uploads/Space_Travel.zip

Cool! :(

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[center]VW Bug user[/center]Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral

Link to post
Share on other sites

Hi!

New update released. See first post or access:

http://www.box.net/shared/b5sz9550kc

muttley

Edit:

SetMaterialTexture modified - now it needs a loaded texture pointer instead image path, like original irrlicht

You can get a Texture pointer using GetTexture.

Edit2:

CollTest improved

Edit3:

Some functions added

Edited 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[center]VW Bug user[/center]Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral

Link to post
Share on other sites

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[center]VW Bug user[/center]Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral

Link to post
Share on other sites

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? :)

Link to post
Share on other sites

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[center]VW Bug user[/center]Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral

Link to post
Share on other sites

Sorry A. Percy, I sunk your ship muttley

#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 post
Share on other sites

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 by monoceres

Broken link? PM me and I'll send you the file!

Link to post
Share on other sites

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

okay! 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[center]VW Bug user[/center]Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral

Link to post
Share on other sites

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[center]VW Bug user[/center]Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...