linus Posted November 18, 2010 Posted November 18, 2010 i cant get any of the examples to work. i try to run them but nothing happens.im on windows 7 64 bitAny chance/idea/suggestion to get rid of this top-10-question? Have no 64bit so help is welcome.@trancexx: Compliments from one of the masters - goes down like honey ( and I mean it )
Miniz Posted November 19, 2010 Posted November 19, 2010 (edited) Any chance/idea/suggestion to get rid of this top-10-question? Have no 64bit so help is welcome. @trancexx: Compliments from one of the masters - goes down like honey ( and I mean it ) Yes, I know how, I have the same problem. If your running a 64-bit OS. Try rigth-clicking an example and click Run Script (x86). Or go to Tools -> Compile and select x86 on output arch. Or add this to the start of the example: #Region #AutoIt3Wrapper_UseX64=n #EndRegion Btw, Thank's a lot for sharing this. It's just too awesome Edited November 19, 2010 by Miniz
hot202 Posted November 19, 2010 Posted November 19, 2010 Can some one please show me a example using a map from sketchup with textures showing. You can download maps from http://sketchup.google.com/3dwarehouse thanks guys
Techmix Posted November 19, 2010 Posted November 19, 2010 I have used also models from Sketchup. I must convertet it to .obj Models with sketchup pro; the .3ds converted models didn´t work fine for me. Greets!
linus Posted November 19, 2010 Posted November 19, 2010 Try rigth-clicking an example and click Run Script (x86). Or go to Tools -> Compile and select x86 on output arch. #AutoIt3Wrapper_UseX64=n 1) and 2) are clear - but the trap where severals get into 3) would be the comfortable way; but it's only working for compiled scripts. Or am I wrong?
hot202 Posted November 19, 2010 Posted November 19, 2010 i get it to load a .obj map but dont under stand how to aply the textures i have about 10 and sketchup exports them with there names.
linus Posted November 19, 2010 Posted November 19, 2010 i get it to load a .obj map but dont under stand how to aply the textures i have about 10 and sketchup exports them with there names.Load the mesh, set lightning to false, that's it. Textures applied to .obj are loaded automatically (if at right place, have a look into output of SciTe )
hot202 Posted November 19, 2010 Posted November 19, 2010 (edited) how do you set the lighting to false? and where is the right place for the textures? the same place the .obj is? Edited November 19, 2010 by hot202
linus Posted November 19, 2010 Posted November 19, 2010 how do you set the lighting to false? and where is the right place for the textures? the same place the .obj is? _IrrSetNodeMaterialFlag( $SceneNode, $IRR_EMF_LIGHTING, $IRR_OFF ) - just open, read & learn from example 003 ... Forgive me, but don't you think it would be better to understand the very basics before playing with the advanced things?? Anyway, to answer your second question: Sketchup's export gave me a file structure with .obj, .mtl and a subdir with textures. Copied this structure, loaded the .obj and everything was fine (means: textured).
hot202 Posted November 19, 2010 Posted November 19, 2010 (edited) when i have a skydome and Terrain that works but when i add my .obj to that the script gets that error message when running it. im only using the advanced things cos all i want to be able to do is make my house in sketchup and then make a script so i can walk around my house Edited November 19, 2010 by hot202
linus Posted November 19, 2010 Posted November 19, 2010 when i have a skydome and Terrain that works but when i add my .obj to that the script gets that error message when running it.im only using the advanced things cos all i want to be able to do is make my house in sketchup and then make a script so i can walk around my houseSure, up to you. Especially because you don't reveal that error message
linus Posted November 19, 2010 Posted November 19, 2010 (edited) Maybe interesting for the ones keen on using Sketchup ...1) would say it's currently NOT possible to load COLLADA files exported from Sketchup - because with current wrapper (0.7.7) it's not possible to set a needed irrLicht attribute for this (details: search here for COLLADA_CREATE_SCENE_INSTANCES)2) Some of you can maybe help themselves with export to .obj from their legal copies of Sketchup Pro 3) For the poor one's with the free Sketchup, this seems also to work:>> EXPORTED from Sketchup8 to COLLADA (.dae) with options: NO edges - triangulate ALL surfaces - ALL hidden geometry - NO component's structure - export of TEXTURES (option names translated from my German Sketchup)>> IMPORTED resulting .dae as static mesh into demo version of CopperCube2.2>> EXPORTED this as Irrlicht scene (.irr). Irrlicht scene export will also work when demo version expires!That's it; now _IrrLoadScene can be used to add everything to the scene manager.No guarantees nor support for this. Updates for workaround of course welcome. Edited November 19, 2010 by linus
Miniz Posted November 19, 2010 Posted November 19, 2010 (edited) 1) and 2) are clear - but the trap where severals get into 3) would be the comfortable way; but it's only working for compiled scripts. Or am I wrong? Your wrong Btw: Somebody help! I'm making a gui with a black background, with some white text on. The problem is that the text i barely visible. What the fudge am i doing wrong, I'm feeling like a über-noob not knowing this $static =_IrrAddStaticText("test", 4,0,256,16, $IRR_GUI_NO_BORDER, $IRR_GUI_NO_WRAP) _IrrGUISetColor($ststic, 255, 255, 255, 255) Edited November 19, 2010 by Miniz
linus Posted November 19, 2010 Posted November 19, 2010 Your wrong very great if this could be one of those rare moments I like to hear this But compare with Ãœber-noob sounds cute - Norwegian? You have to pass a constant to _IrrGUISetColor instead of the GUI element; try _IrrGUISetColor($EGDC_BUTTON_TEXT, 255, 255, 255, 255) Valid constants are not in help file, but you can look for enum IRR_GUI_COLOR_ELEMENT in \include\au3Irr2_Constants.au3.
Miniz Posted November 19, 2010 Posted November 19, 2010 very great if this could be one of those rare moments I like to hear this But compare with Ãœber-noob sounds cute - Norwegian? You have to pass a constant to _IrrGUISetColor instead of the GUI element; try _IrrGUISetColor($EGDC_BUTTON_TEXT, 255, 255, 255, 255) Valid constants are not in help file, but you can look for enum IRR_GUI_COLOR_ELEMENT in \include\au3Irr2_Constants.au3. Thanks! Yeah I'm Norwegian. Regarding kaotkbliss' information, I'm not sure this will work for everyone, but it's working like a charm for me Currently I'm working on a Multiplayer FPS game, this thing is exactly what i need. Because i dont have time to start learning c++ or java atm, nor do I have time to study Direct3D or read the OpenGl Bible. (I'm in high school) I really appreciate all the time and effort you guys put in to this
linus Posted November 19, 2010 Posted November 19, 2010 I really appreciate all the time and effort you guys put in to this Thanks in return - always nice to see people using au3Irr2 (and still in anticipation to see something finished; but ok, all those started nextGen FPS should take some years to finish )Well, maybe we can complete this 64bit-thing: 1) you have 64bit and when running the example scripts without any changes it crashes, right?2) what happens if you add #AutoIt3Wrapper_UseX64=n to the top of au3Irrlicht2.au3, then run example script exactly same way as before - hopefully it works?
Miniz Posted November 20, 2010 Posted November 20, 2010 Thanks in return - always nice to see people using au3Irr2 (and still in anticipation to see something finished; but ok, all those started nextGen FPS should take some years to finish )Well, maybe we can complete this 64bit-thing: 1) you have 64bit and when running the example scripts without any changes it crashes, right?2) what happens if you add #AutoIt3Wrapper_UseX64=n to the top of au3Irrlicht2.au3, then run example script exactly same way as before - hopefully it works?I'm not making anything super fancy. I'm just doing it for educational purposes.1) Yes.2) No it dosen't.
linus Posted November 20, 2010 Posted November 20, 2010 I'm not making anything super fancy. I'm just doing it for educational purposes.1) Yes.2) No it dosen't. Nah, was just joking But educational sounds good - keep concept small, make it working, add some nice comments, and we'll have something more for the coming \demo dir of au3Irr2 ...?!2) Damned. So I wasn't wrong (but wanted to be )
Miniz Posted November 20, 2010 Posted November 20, 2010 (edited) Nah, was just joking But educational sounds good - keep concept small, make it working, add some nice comments, and we'll have something more for the coming \demo dir of au3Irr2 ...?!2) Damned. So I wasn't wrong (but wanted to be )Probably, if I finish it Great news! I've found a workaround for the 64-bit problem 1. Download the latest Autoit version here:http://www.autoitscript.com/autoit3/downloads.shtml2. Run the installer.3. Select overwrite current version. -> Next4. "You are running a 64-bit Operating System. Use native x64 tools where possible?" SELECT NO!5. Finish the installation..6. That's it... Edited November 20, 2010 by Miniz
Miniz Posted November 21, 2010 Posted November 21, 2010 Why wont this work?! Please help me if you know something i oblivously don't.. expandcollapse popup; ---------------------------------------------------------------------------- ; Irrlicht Wrapper for Imperative Languages - Freebasic Examples ; Frank Dodd (2006) ; Converted/modified for the au3Irr2 project by linus ; ---------------------------------------------------------------------------- #include "au3Irrlicht2.au3" opt("MustDeclareVars", True) HotKeySet("{ESC}", "_exit") Func _exit() _IrrStop() Exit EndFunc ; _exit DIM $BSPMesh DIM $BSPNode DIM $Camera DIM $CameraNode _IrrStart( $IRR_EDT_OPENGL, 800, 600, $IRR_BITS_PER_PIXEL_32, _ $IRR_WINDOWED, $IRR_NO_SHADOWS, $IRR_IGNORE_EVENTS, $IRR_VERTICAL_SYNC_ON ) _IrrSetWindowCaption("Test") _IrrGetTexture("res\textures\gothic_floor\xstepborder5.jpg") _IrrGetTexture("res\textures\e7\e7beam01.jpg") _IrrGetTexture("res\textures\e7\e7beam02_red.jpg") _IrrGetTexture("res\textures\e7\e7bigwall.jpg") _IrrGetTexture("res\textures\e7\e7bmtrim.jpg") _IrrGetTexture("res\textures\e7\e7bmtrim2.jpg") _IrrGetTexture("res\textures\e7\e7brickfloor01.jpg") _IrrGetTexture("res\textures\e7\e7brnmetal.jpg") _IrrGetTexture("res\textures\e7\e7dimfloor.jpg") _IrrGetTexture("res\textures\e7\e7panelwood.jpg") _IrrGetTexture("res\textures\e7\e7sbrickfloor.jpg") _IrrGetTexture("res\textures\e7\e7steptop.jpg") _IrrGetTexture("res\textures\e7\e7steptop2.jpg") _IrrGetTexture("res\textures\e7\e7swindow.jpg") _IrrGetTexture("res\textures\e7\e7walldesign01b.jpg") $BSPMesh = _IrrGetMesh( "res\maps\20kdm2.bsp" ) $BSPNode = _IrrAddMeshToScene( $BSPMesh ) $Camera = _IrrAddFPSCamera() $CameraNode = $Camera _IrrSetNodePosition( $CameraNode, 1750, 149, 1369 ) _IrrSetNodeRotation( $CameraNode, 4, -461.63, 0 ) _IrrHideMouse() WHILE _IrrRunning() _IrrBeginScene( 240, 255, 255 ) _IrrDrawScene() _IrrEndScene() WEND
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