Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Irrlicht module: 2nd unofficial preview

  1. #1
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Irrlicht module: 2nd unofficial preview

    Hi all.

    2nd unofficial preview Irrlicht module wrapper for thinBasic.

    Get attached file and unzip in thinBasic directory maintaining directory structure.
    Then go under thinBasic\SampleScripts\Irrlicht\ andexecute thinBasic script samples. If not working let us know.

    Attention:
    • irrlicht.DLL MUST be located into thinBasic.EXE executable folder in order to work. We are thinking how to avoid this but for the moment that is the way


    Some thinBasic_Irrlicht module info:
    • developer: Roberto
    • module is developed using MS C/C++
    • thinBasic module wrapper is under development using thinBasic SDK for MS C/C++
    • irrlicht.DLL is compressed using UPX 3.00w original is about 1.4Mb while the one we distribute is about 510Kb
    • due to under development status and dll size, we will not deliver this module with official thinBasic release but we will keep a parallel temp project.
      Later, when quite stable, we will decide how to go on


    Have fun and please let us know if all is working fine on your box.
    If not working, please tell us your OS and hardware config.

    Ciao
    Eros
    Attached Images Attached Images
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  2. #2

    Re: Irrlicht module: 2nd unofficial preview

    I think this distribution is incomplete. There is an include file missing

  3. #3
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Irrlicht module: 2nd unofficial preview

    Hi,

    same problem here - "ChooseDevice.inc" not found


    Bye,
    Petr

    P.S. I like the image with monster party
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Irrlicht module: 2nd unofficial preview

    Oops, sorry.
    I will update when at home this night.
    Try to comment it out. It should not be necessary for the current examples.

    Added: file updated. Hope now they will work.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  5. #5
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Irrlicht module: 2nd unofficial preview

    Attached files fixed
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  6. #6
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: Irrlicht module: 2nd unofficial preview

    Came home and found another cool example.

    Did a slight mod to show that other animations are in there, used different one for each model.
    [code=thinbasic]' Example 01: Hello World - The GUI

    uses "Irrlicht"

    #include "Irrlicht.inc"

    DIM pIIP as dword
    DIM IIP as IRR_INSTANCE_PTR
    dim mesh(4) as dword
    dim node(4) as dword

    pIIP = VARPTR(IIP)

    ' Create the device
    IRR_CreateDevice(pIIP, %IRR_EDT_SOFTWARE, 640, 480, 32, %FALSE, %FALSE, %FALSE, 0)

    ' Set the title of the display
    IRR_SetWindowCaption(pIIP, "Hello World! - Irrlicht Engine Demo from ThinBASIC")

    ' add a static text object to the graphical user interface, at the moment
    ' this is the only interface object we support. The text will be drawn inside
    ' the defined rectangle, the box will not have a border and the text will not
    ' be wrapped around if it runs off the end
    IRR_AddStaticText(pIIP, "Hello World! This is the Irrlicht Software engine from ThinBASIC!", 10, 10, 260, 22, %TRUE, %FALSE)

    ' To display something interesting, we load a Quake 2 model and display it.
    'mesh = IRR_GetMesh(pIIP, "C:\irrlicht-1.3\media\sydney.md2")
    mesh(1) = IRR_GetMesh(pIIP, "media\corpse.md2")
    node(1) = IRR_AddAnimatedMeshSceneNode(pIIP, mesh(1))
    mesh(2) = IRR_GetMesh(pIIP, "media\solo.md2")
    node(2) = IRR_AddAnimatedMeshSceneNode(pIIP, mesh(2))
    mesh(3) = IRR_GetMesh(pIIP, "media\super.md2")
    node(3) = IRR_AddAnimatedMeshSceneNode(pIIP, mesh(3))
    mesh(4) = IRR_GetMesh(pIIP, "media\sydney.md2")
    node(4) = IRR_AddAnimatedMeshSceneNode(pIIP, mesh(4))

    ' If everything worked, add a texture and disable lighting
    If node(1) then
    ' IRR_SetNodeFrameLoop(node, 0, 310)
    IRR_SetNodeMD2Animation(node(1), %IRR_EMAT_DEATH_FALLBACK)
    IRR_SetNodeMaterialTexture(node(1), 0, IRR_GetTexture(pIIP, "media\corpse.png"))
    IRR_SetNodeMaterialFlag(node(1), %IRR_EMF_LIGHTING, %FALSE)
    IRR_SetNodePosition(node(1), -40,-2,20)
    end if
    If node(2) then
    ' IRR_SetNodeFrameLoop(node, 0, 310)
    IRR_SetNodeMD2Animation(node(2), %IRR_EMAT_WAVE)
    IRR_SetNodeMaterialTexture(node(2), 0, IRR_GetTexture(pIIP, "media\solo.bmp"))
    IRR_SetNodeMaterialFlag(node(2), %IRR_EMF_LIGHTING, %FALSE)
    IRR_SetNodePosition(node(2), -20,0,0)
    end if
    If node(3) then
    ' IRR_SetNodeFrameLoop(node, 0, 310)
    IRR_SetNodeMD2Animation(node(3), %IRR_EMAT_JUMP)
    IRR_SetNodeMaterialTexture(node(3), 0, IRR_GetTexture(pIIP, "media\super.bmp"))
    IRR_SetNodeMaterialFlag(node(3), %IRR_EMF_LIGHTING, %FALSE)
    IRR_SetNodePosition(node(3), 20,2,0)
    end if
    If node(4) then
    ' IRR_SetNodeFrameLoop(node, 0, 310)
    IRR_SetNodeMD2Animation(node(4), %IRR_EMAT_RUN)
    IRR_SetNodeMaterialTexture(node(4), 0, IRR_GetTexture(pIIP, "media\sydney.bmp"))
    IRR_SetNodeMaterialFlag(node(4), %IRR_EMF_LIGHTING, %FALSE)
    IRR_SetNodePosition(node(4), 50,0,0)
    'IRR_SetNodeRotation(node(4), 0,0.75,0)
    end if

    'To look at the mesh, we place a camera into 3d space at the position (0, 30, -50).
    'The camera looks from there to (0,5,0).
    IRR_AddCameraSceneNode(pIIP,0,30,-80,0,5,0)

    ' while the scene is still running
    WHILE IRR_Run(pIIP)
    ' begin the scene, erasing the canvas to white before rendering
    IRR_BeginScene(pIIP, %true, %true, 255, 100, 101, 140)

    ' draw the Graphical User Interface
    IRR_DrawScene(pIIP)
    IRR_DrawGUI(pIIP)

    ' end drawing the scene and render it
    IRR_EndScene(pIIP)
    WEND

    ' Stop the irrlicht engine and release resources
    IRR_Drop(pIIP)
    [/code]
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  7. #7

    Re: Irrlicht module: 2nd unofficial preview

    Thanks Kent.

  8. #8
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: Irrlicht module: 2nd unofficial preview

    Roberto is making irrlicht as easy to use as Petr did openGl and you did with tbdi. Fun to tinker with all yours guys great work!!

    I tried to make an md2 file, just a simple animated cube in blender, it export to md2 format ok, but I couldn't do anything with it or see it. So I must have done something wrong. Let me know if you make an md2 model in blender and figure out how to see it with irrlicht module. I will tinker with it more too as I never made md2's before.
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  9. #9

    Re: Irrlicht module: 2nd unofficial preview

    making irrlicht as easy to use
    Well, this is exactly the ThinBASIC's great ambition, make things easy to do, in particular make the programming quick and easy.
    Thanks for your post Kryton9.

    Ciao,
    Roberto
    http://www.thinbasic.com

  10. #10
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: Irrlicht module: 2nd unofficial preview

    THANKS for what you are doing Roberto, really impressive how this is coming along and in such a very nice way, thanks again!!
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

Page 1 of 2 12 LastLast

Similar Threads

  1. Irrlicht module: unofficial preview 3
    By ErosOlmi in forum Irrlicht
    Replies: 45
    Last Post: 24-05-2013, 15:47

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •