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

Thread: Irrlicht module: first unofficial preview release

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

    Irrlicht module: first unofficial preview release

    Hi all.

    Roberto just sent me something I couldn't bealive when I first execute the sample script: first 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 sample to see with you eyes. Hope you will be able to see what I saw. If not working let us know.
    You should see what reported as "1.HelloWorld" tutorial here: http://irrlicht.sourceforge.net/tutorials.html

    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 info:
    • thinBasic module wrapper is under development using thinBasic SDK for MS C/C++
    • module is developed using 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


    Here the list of functions already created by Roberto. No documentation for the moment but we will do in next weeks.

    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

    _________________________________________________

    Irr_CreateDevice
    Irr_Run
    Irr_DrawScene
    Irr_DrawGUI
    Irr_EndScene
    Irr_Drop
    Irr_GetFPS
    Irr_GetPrimitiveCountDrawn
    Irr_SetWindowCaption
    Irr_BeginScene
    Irr_IsWindowActive
    Irr_CloseDevice

    Irr_GetMesh
    Irr_CreateMesh
    Irr_RemoveMesh
    Irr_GetMeshIndexCount
    Irr_GetMeshIndices
    Irr_SetMeshIndices
    Irr_GetMeshVertexCount
    Irr_GetMeshVertices
    Irr_AddAnimatedMeshSceneNode

    Irr_AddStaticText

    Irr_SetNodeMaterialTexture
    Irr_SetNodeMaterialFlag

    Irr_GetTexture

    Irr_SetNodeFrameLoop
    Irr_SetNodeMD2Animation

    Irr_AddCameraSceneNodeFPS
    Irr_AddCameraSceneNode


    ---Equates DRIVER TYPE
    %IRR_EDT_NULL
    %IRR_EDT_SOFTWARE
    %IRR_EDT_BURNINGSVIDEO
    %IRR_EDT_DIRECT3D8
    %IRR_EDT_DIRECT3D9
    %IRR_EDT_OPENGL

    ---Equates MATERIAL TYPE
    %IRR_EMT_SOLID
    %IRR_EMT_SOLID_2_LAYER
    %IRR_EMT_LIGHTMAP
    %IRR_EMT_LIGHTMAP_ADD
    %IRR_EMT_LIGHTMAP_M2
    %IRR_EMT_LIGHTMAP_M4
    %IRR_EMT_LIGHTMAP_LIGHTING
    %IRR_EMT_LIGHTMAP_LIGHTING_M2
    %IRR_EMT_LIGHTMAP_LIGHTING_M4
    %IRR_EMT_DETAIL_MAP
    %IRR_EMT_SPHERE_MAP
    %IRR_EMT_REFLECTION_2_LAYER
    %IRR_EMT_TRANSPARENT_ADD_COLOR
    %IRR_EMT_TRANSPARENT_ALPHA_CHANNEL
    %IRR_EMT_TRANSPARENT_ALPHA_CHANNEL_REF
    %IRR_EMT_TRANSPARENT_VERTEX_ALPHA
    %IRR_EMT_TRANSPARENT_REFLECTION_2_LAYER
    %IRR_EMT_NORMAL_MAP_SOLID
    %IRR_EMT_NORMAL_MAP_TRANSPARENT_ADD_COLOR
    %IRR_EMT_NORMAL_MAP_TRANSPARENT_VERTEX_ALPHA
    %IRR_EMT_PARALLAX_MAP_SOLID
    %IRR_EMT_PARALLAX_MAP_TRANSPARENT_ADD_COLOR
    %IRR_EMT_PARALLAX_MAP_TRANSPARENT_VERTEX_ALPHA
    %IRR_EMT_ONETEXTURE_BLEND
    %IRR_EMT_FORCE_32BIT

    ---Equates MATERIAL FLAGS
    IRR_EMF_WIREFRAME
    IRR_EMF_POINTCLOUD
    IRR_EMF_GOURAUD_SHADING
    IRR_EMF_LIGHTING
    IRR_EMF_ZBUFFER
    IRR_EMF_ZWRITE_ENABLE
    IRR_EMF_BACK_FACE_CULLING
    IRR_EMF_BILINEAR_FILTER
    IRR_EMF_TRILINEAR_FILTER
    IRR_EMF_ANISOTROPIC_FILTER
    IRR_EMF_FOG_ENABLE
    IRR_EMF_NORMALIZE_NORMALS
    IRR_EMF_TEXTURE_WRAP
    IRR_EMF_MATERIAL_FLAG_COUNT

    ---Equates ANIMATION TYPE
    %IRR_EMAT_STAND
    %IRR_EMAT_RUN
    %IRR_EMAT_ATTACK
    %IRR_EMAT_PAIN_A
    %IRR_EMAT_PAIN_B
    %IRR_EMAT_PAIN_C
    %IRR_EMAT_JUMP
    %IRR_EMAT_FLIP
    %IRR_EMAT_SALUTE
    %IRR_EMAT_FALLBACK
    %IRR_EMAT_WAVE
    %IRR_EMAT_POINT
    %IRR_EMAT_CROUCH_STAND
    %IRR_EMAT_CROUCH_WALK
    %IRR_EMAT_CROUCH_ATTACK
    %IRR_EMAT_CROUCH_PAIN
    %IRR_EMAT_CROUCH_DEATH
    %IRR_EMAT_DEATH_FALLBACK
    %IRR_EMAT_DEATH_FALLFORWARD
    %IRR_EMAT_DEATH_FALLBACKSLOW
    %IRR_EMAT_BOOM

    ---Equates OTHERS
    %IRR_WINDOWED
    %IRR_SHADOWS
    %IRR_IGNORE_EVENTS
    %IRR_GUI_BORDER
    %IRR_GUI_WRAP
    %IRR_GUI_NO_BORDER
    %IRR_GUI_NO_WRAP
    Attached Files Attached Files
    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
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Irrlicht module: first unofficial preview release

    Hi,

    thanks for nice script,
    from the equates list it is easy to make character walk, run, crouch...

    Perfect,
    Petr
    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

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

    Re: Irrlicht module: first unofficial preview release

    Petr, does it work for you?
    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

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

    Re: Irrlicht module: first unofficial preview release

    Sure !

    I have tried default software and OpenGL render.
    OpenGL takes few seconds to start but then it works ( and looks ) perfect.


    Bye,
    Petr
    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

  5. #5

    Re: Irrlicht module: first unofficial preview release

    I've just tried it and it works on my Computer. ;D
    Operating System: Windows 10 Home 64-bit
    CPU: Intel Celeron N4000 CPU @ 1.10GHz
    Memory: 4.00GB RAM
    Graphics: Intel UHD Graphics 600

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

    Re: Irrlicht module: first unofficial preview release

    OK, thanks gui.

    Roberto is working to create a complete Irrlicht wrapper.
    Irrlicht is quite massive so it will take some time to have a professional wrapper but it seems we are on the right road.

    Thanks again.
    Eros
    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

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

    Re: Irrlicht module: first unofficial preview release

    Forgot to say,

    there are 2 scripts in demo: one is thinBasic Gui (extension .tBasic) and one is thinBasic Console (extension .tBasicc) that just include the first one.

    Difference is that if you execute the Gui version you just get the graphic window.
    If you execute the Console version you get the graphic window plus a console window that is used like a sort of debug window where to look in case of problems.

    Ciao
    Eros
    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

  8. #8

    Re: Irrlicht module: first unofficial preview release

    Great job Roberto!

  9. #9
    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: first unofficial preview release

    Wow, came home tonight and it works great! Thanks Roberto!!

    Here are some more md2 models and skins I had used in Aurora while making a model viewer with it.
    I downloaded these and didn't make them.


    Attached Files Attached Files
    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

  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: first unofficial preview release

    Ok, having fun looking at the code and studying the thinBasic code compared to the c++ code sample for hello world.

    I am seeing how the pointer(pIIP) is taking the place of the class, but am confused in how it seems to replace 2 classes, the device class and smgr class? Did Roberto sort of unite the 2 classes.

    I noticed he simplified a lot of the startup initialization for us and maybe he did the same with these 2 classes?

    Very interesting to study, this is going to be really cool to learn and use.
    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
  2. Irrlicht module: 2nd unofficial preview
    By ErosOlmi in forum Irrlicht
    Replies: 11
    Last Post: 08-05-2007, 10:31

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
  •