Au3Irrlicht 2.0
#41
Posted 21 June 2010 - 07:43 PM
Slightly unrelated, but how do you change the speed that the camera moves? I find that i keep flying through my model because the camera is too fast
#42
Posted 21 June 2010 - 08:49 PM
Use in scite Tools > UserCallTipEntries and add content of attached definition file.
Edit: File removed - it's now included in the examples package (see later post).
Also a question: had anybody success with "_IrrAddSkyDomeToScene"? Skybox is working fine for me, but Skydome did nothing. No skydome nor error. Syntax of UDF definition looks ok for me (same as in the original + working freeBasic wrapper). So I have definetly no idea what could be wrong?
Edited by linus, 06 July 2010 - 11:09 PM.
#43
Posted 22 June 2010 - 03:47 PM
$result = DllCall($_irrDll, "ptr:cdecl", "IrrAddSkyDomeToScene", "ptr", $h_Texture, "int", $i_HorizontalRes, "int", $i_VerticalRes...
@JRowe In udf they r defined as "int" and probably need to change to "uint" (i too have problems to make it work
#44
Posted 22 June 2010 - 06:03 PM
... was too blind - that's it! Also the last param is wrong - not float but double. So the complete + working thing for the UDF ishorizontal_res as uinteger, vertical_res as uinteger
$result = DllCall($_irrDll, "ptr:cdecl", "IrrAddSkyDomeToScene", "ptr", $h_Texture, "int", $i_HorizontalRes, "int", $i_VerticalRes...
@JRowe In udf they r defined as "int" and probably need to change to "uint" (i too have problems to make it work)?!!
Func _IrrAddSkyDomeToScene($h_Texture, $i_HorizontalRes, $i_VerticalRes, $d_TexturePercent, $d_SpherePercent, $d_SphereRadius) $result = DllCall($_irrDll, "ptr:cdecl", "IrrAddSkyDomeToScene", "ptr", $h_Texture, "uint", $i_HorizontalRes, "uint", $i_VerticalRes, "double", $d_TexturePercent, "double", $d_SpherePercent, "double", $d_SphereRadius) Return $result[0] EndFunc ;==>_IrrAddSkyDomeToScene
Hope JRowe is logging + merging those fixes
Addon:
Fix for _IrrAddHillPlaneMesh (current definition causes problems when using more than one hillPlane in a script because of wrong passed string for mesh name). Working def is:
Func _IrrAddHillPlaneMesh($s_Name, $f_TileSizeX, $f_TileSizeY, $i_TileCountX, $i_TileCountY, $h_Material = 0, $f_HillHeight = 0, $f_CountHillsX = 0, $f_CountHillsY = 0, $f_TextureRepeatCountX = 1, $f_TextureRepeatCountY = 1) $result = DllCall($_irrDll, "ptr:cdecl", "IrrAddHillPlaneMesh", "str", $s_Name, "float", $f_TileSizeX, "float", $f_TileSizeY, "int", $i_TileCountX, "int", $i_TileCountY, "ptr", $h_Material, "float", $f_HillHeight ,"float", $f_CountHillsX, "float", $f_CountHillsY, "float", $f_TextureRepeatCountX, "float", $f_TextureRepeatCountY) Return $result[0] EndFunc ;==>_IrrAddHillPlaneMesh
Edited by linus, 24 June 2010 - 09:44 PM.
#45
Posted 23 June 2010 - 02:51 PM
If your refering to Maya Camera the last parametar is speedSlightly unrelated, but how do you change the speed that the camera moves? I find that i keep flying through my model because the camera is too fast
irr_camera = IrrAddMayaCamera ( parent as irr_node, rotateSpeed as single, zoomSpeed as single, moveSpeed as single )
_IrrAddMayaCamera( , 100.0, 100.0, 100.0)
#46
Posted 23 June 2010 - 05:03 PM
#47
Posted 27 June 2010 - 05:27 PM
_IrrHideMouse() + _IrrShowMouse(),
_IrrSetCameraClipDistance (not working because of missing param),
_IrrAddChildToParent (wrong param order).
If I am not wrong, also functions using byReference calls are not working - e.g. _IrrGetNodePosition() returns always '0' values.
This rewritten version works for me:
Func _IrrGetNodePosition($h_Node, ByRef $a_Vector3df) Dim $a_Vector3df[3] $result = DllCall($_irrDll, "none:cdecl", "IrrGetNodePosition", "ptr", $h_Node, "float*", $a_Vector3df[0], "float*", $a_Vector3df[1], "float*", $a_Vector3df[2]) if @error Then Return Seterror(1,0,False) Else $a_Vector3df[0] = $result[2] $a_Vector3df[1] = $result[3] $a_Vector3df[2] = $result[4] Return True EndIf EndFunc ;==>_IrrGetNodePosition
I guess some other get-functions could/should be reworked this way.
Unfortunately JRowe seems to be currently "inactive" - Maybe holidays, busy in job, or bought a VW
A little bit unsure how to continue without coordination of JRowe. This promising project should become stable + useable - but in common! I definetly don't want to end up in a separate + private branch of JRowe's excellent work.
Opinions?
Edited by linus, 27 June 2010 - 05:31 PM.
#48
Posted 28 June 2010 - 02:17 PM
On the plus side of things, there are a bunch of new features to be added.
However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator
#49
Posted 28 June 2010 - 03:24 PM
Don't know if my modified au3irrlicht.au3 is helpful for you (winMerging)?
#50
Posted 28 June 2010 - 10:52 PM
If a help file is made, cut the examples to just the function and bare necessities. The original help was hard to follow because most of the examples had the same code (and a full script) and since some functions I was able to work out (with help) adding a specific function became confusing trying to figure out just the parts that were needed for that.
010101000110100001101001011100110010000001101001011100110010000001101101011110010010000001110011011010010110011100100001My first project Allin1 Program launcherBill CalculatorGot <Insert problem here>?There's an AutoIt script for that!
#51
Posted 04 July 2010 - 10:55 AM
A helpfile is definetly a nice idea, but at current status of the project too soon to think about (nevertheless, if anybody has some info and/or link how the au3 help is done? ) ...If a help file is made, cut the examples to just the function and bare necessities. The original help was hard to follow because most of the examples had the same code (and a full script) and since some functions I was able to work out (with help) adding a specific function became confusing trying to figure out just the parts that were needed for that.
But converted examples should also help you out - the original freeBasic demos are very nice to follow, and when you can try them directly in au3 it should give you everything to work yourself into the features + usage of the irrlicht engine.
I am working on a conversion (
Edit: To give anybody interested an overview what is already possible with au3irrlicht2, I attach what I have until now. The .zip includes working demos, original + modified UDF, an updated usercalltips.api and the msvcp71.dll not included in the wrapper. More info in the included 00_examples_readme.txt.
!!Please note: this is work in progress and moreover, some kind of a private branch (which I hope can be merged into next "oficial" release)!!
Edit2: Example package V0.1 removed. See updated V0.2 in later post.
As jRowe is setting up a google code page for this project, I can up the working demos there if needed (and it is still compatible with current work of jRowe
Edited by linus, 06 July 2010 - 11:06 PM.
#52
Posted 04 July 2010 - 02:35 PM
010101000110100001101001011100110010000001101001011100110010000001101101011110010010000001110011011010010110011100100001My first project Allin1 Program launcherBill CalculatorGot <Insert problem here>?There's an AutoIt script for that!
#53
Posted 06 July 2010 - 11:02 PM
includes now
Edit:
Edit2:
Obsolete, latest examples + rest are now included into jRowe's releases.
So keep yourself updated here: http://code.google.com/p/au3irrlicht2
BTW: Feedback still highly welcome!
Think this package shows nicely what's possible by now with au3Irrlicht2. And I hope this will bring (more) life to this project ... Feedback, comments and suggestions definetly welcome.
Edited by linus, 21 July 2010 - 09:03 AM.
#54
Posted 12 July 2010 - 04:31 PM
here is a new version of the example package (version 0.3, see post above). Includes now 70 fully converted + working examples.
Don't know if worth to continue, since this seems to become a one man show. Maybe because of the world cup, maybe anybody else switched to the mature freeBasic version of the wrapper?
#55
Posted 12 July 2010 - 08:19 PM
#56
Posted 12 July 2010 - 09:58 PM
interest isnt problem, problem is to convert my 2000+ line script + rewriting with aditional functions that i did not have, from old to new and to not messitupAlso interest in this project seems to be ... well ... completely slept away:
Don't know if worth to continue, since this seems to become a one man show. Maybe because of the world cup, maybe anybody else switched to the mature freeBasic version of the wrapper?
As for me, im waiting JRowe-s release, dont need to reminde him all the time that im waiting for his update becose he already know it and im shure that he will relise it when he have free time on his side to work on it so theres no need to speed up everything, best to take it slow and make it good.
#57
Posted 17 July 2010 - 11:44 AM
Well, why not speed it up a little bit by helping jRowe with this project (he asked for it?!)As for me, im waiting JRowe-s release, dont need to reminde him all the time that im waiting for his update becose he already know it and im shure that he will relise it when he have free time on his side to work on it so theres no need to speed up everything, best to take it slow and make it good.
Also he seems to be VERY busy for a longer time, I try to help with this project by getting all the freeBasic examples running. Which should also result in a fixed + useable UDF after all.
70 of 111 are done - think a good milestone ...
trancexx gave me already some hints about pointer usage in the dllCall. Think I understood but not sure if it's the core of the thing. So here we go:
.zip includes:
.au3: (working because using the default emitter (line 55). When adding own emitter (commented out line 106), irrLicht engine starts up, then produces runtime error after some time.
.bas: a little bit reworked (original was a little bit confusing). Logically, it does exactly the same as the .au3. Except that it is working perfectly ...
UDF: contains some more fixes/additions for the particle example. At very end there is the "evil" _IrrAddParticleEmitter with some comments maybe relevant for "diggin".
Edit: Problem solved.
Edited by linus, 24 September 2010 - 04:29 PM.
#58
Posted 20 July 2010 - 01:24 AM
I've got the au3irrlicht google code page created, and I'll be adding Linus to the commiters list. Any suggestions are welcome, and if you want to contribute, let me know. I'll be uploading Linus' revision as the official starting point (2.01 sounds good to me.)
I'll upload this latest update from Linus as the official 2.01 version, and then organize the source and examples in SVN.
Thanks very much, Linus.
However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator
#59
Posted 20 July 2010 - 02:08 AM
I'll update what I can, when I can. The particle stuff is almost there, I think, so we don't have much farther to go. Great work! There are some amazing effects in the examples already.
TODO:
Example 7 - Particle System
Example 15 - Custom Mesh
Example 18 - Ray hitting nodes
Example 22 - Indices and Vertices
Example 25 - Particles from Node
Example 27 - Dynamic Particle Emitter
Example 34 - Find Nodes
Example 35 - Saving a Scene
Example 37 - Shader Materials
Example 39 - Texture Blending
Example 59 - Limited Collision with Point
Example 60 - Getting Node Children
Example 61 - Mouse Wheel
Example 62 - 6DOF Camera
Example 64 - Tiled Terrain
Example 66 - Stop Particles
Example 67 - Push Particles
Example 68 - Color Particles
Example 69 - Spline Particles
Example 70 - Texture and Images
Example 71 - Sphere Terrain Surface
Example 73 - Sphere Terrain Coordinates
Example 74 - Push Particle Mushroom Cloud
Example 75 - Push Particle Explosion
Example 79 - Newton Collision
Example 81 - GLSL Shader Materials
Example 82 - Freetype text
Example 83 - Embedded OpenGL Commands
Example 89 - Orthagonal Camera
Example 90 - Collision Point
Example 91 - Distance and Collision
Example 92 - Moving Entities by Collision
Example 93 - 3D Position from Screen
Example 95 - Rotating Nodes and Cameras for Flight Simulation
Example 96 - Lighting and Shadowmaps
Example 97 - Physics: Newton and ODE
Example 103 - Billboard Groups
Example 104 - LoD
Example 106 - Advanced Start
Example 107 - Render to Texture with Alpha
I'll cross things off the list as we go. the particles will fall into place once we have the original, basic example functioning correctly. The physics stuff may need some additional work and wrapping of their own.
Edited by JRowe, 20 July 2010 - 02:26 AM.
However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator
#60
Posted 24 July 2010 - 06:00 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





