IrrlichtWrapper 1.05 (still) beta

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
Chrono Syndrome
Enthusiast
Enthusiast
Posts: 169
Joined: Thu Oct 05, 2006 6:44 am
Contact:

Post by Chrono Syndrome »

...And for primitives: add toruses, please.
Don't try to catch ze Night !
Remember: 'z' is better zen 'th' =) !
Sorry for bad english.
benny
Enthusiast
Enthusiast
Posts: 465
Joined: Fri Apr 25, 2003 7:44 pm
Location: end of www
Contact:

Post by benny »

This project looks really interesting ... hope I find some time to browse
through the code / examples ...

Thanks for your work !
regards,
benny!
-
pe0ple ar3 str4nge!!!
Chrono Syndrome
Enthusiast
Enthusiast
Posts: 169
Joined: Thu Oct 05, 2006 6:44 am
Contact:

Post by Chrono Syndrome »

I'm waiting...
Don't try to catch ze Night !
Remember: 'z' is better zen 'th' =) !
Sorry for bad english.
kawasaki
Enthusiast
Enthusiast
Posts: 182
Joined: Thu Oct 16, 2003 8:09 pm

Post by kawasaki »

I think if a few programmers who are familiar with C++ and Purebasic form to make a dedicated development team for the Irrlicht Wrapper, within a month or so, the 3d capabilities of Purebasic will sky-rocket.


I bought ColdSteel but am very disappointed atm. I would love to see this wrapper continue to grow, and not just cease and end up on page 44 on the Announcements Forum.


Im currently learning C++ (got a way to go :p ) so ill be able to contribute soon hopefully.
neotoma
User
User
Posts: 84
Joined: Sun Dec 14, 2003 6:38 pm
Location: Germany, Mechernich
Contact:

Post by neotoma »

@Chrono Syndrome:
Chrono Syndrome wrote: I'm waiting...
ehhm... for what ? A Torus ?
Oh the other problems are fixed, and with the next-release the Particles and Demo 22 will work. But still problems with Demo 23....
kawasaki wrote:I think if a few programmers who are familiar with C++ and Purebasic form to make a dedicated development team for the Irrlicht Wrapper, within a month or so, the 3d capabilities of Purebasic will sky-rocket.
Maybe not Sky-Rocket, but much better as with the PB-3D-Engine.

And to everyone who wants to help to make the IrrlichtWrapper better, more stable and grow :
I need Demos / Tutorials ect.
And what i'm really need is a 3d-Modeller and Texturer - while i'm very untalented for that. I plan to make a set of 'Advanced' Demos to show the capatibilities and help as How-Tos. But the people need 'good looking'-Demos to say 'Oh Yes - great ! I'll try it !'. Maybe here any Helpers around ? (Oh, also the Doku needs helpers, but i think nobody like this part.... ;-) )
kawasaki wrote: I bought ColdSteel but am very disappointed atm. I would love to see this wrapper continue to grow, and not just cease and end up on page 44 on the Announcements Forum.
I never checked ColdSteel out - but isn't it a Irrlicht-Based Engine ?
Hmmm, and i give the Wrapper for free away ...
kawasaki wrote: Im currently learning C++ (got a way to go :p ) so ill be able to contribute soon hopefully.
Good Idea !

Mike
Chrono Syndrome
Enthusiast
Enthusiast
Posts: 169
Joined: Thu Oct 05, 2006 6:44 am
Contact:

Post by Chrono Syndrome »

for what ? A Torus ?
No. For any answer.
Oh the other problems are fixed, and with the next-release the Particles and Demo 22 will work.
That's good, thanks !
Don't try to catch ze Night !
Remember: 'z' is better zen 'th' =) !
Sorry for bad english.
dige
Addict
Addict
Posts: 1240
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post by dige »

neotoma wrote: And what i'm really need is a 3d-Modeller and Texturer - while i'm very untalented for that. I plan to make a set of 'Advanced' Demos to show the capatibilities and help as How-Tos. But the people need 'good looking'-Demos to say 'Oh Yes - great ! I'll try it !'. Maybe here any Helpers around ? (Oh, also the Doku needs helpers, but i think nobody like this part.... ;-) )
What kind of modells do you need? .3ds, .mesh?
May be I can help.
Chrono Syndrome
Enthusiast
Enthusiast
Posts: 169
Joined: Thu Oct 05, 2006 6:44 am
Contact:

Post by Chrono Syndrome »

Oh... And what about this ?:
Little suggestion: add, plz, function to receiving OutputID (for StartDrawing / StopDrawing) of IrrLicht window/screen.
And one more suggestion: add, plz, command for coloring nodes (creating a texture for thats isn't convenient...) ala EntitiyColor in Blitz3D.
Don't try to catch ze Night !
Remember: 'z' is better zen 'th' =) !
Sorry for bad english.
neotoma
User
User
Posts: 84
Joined: Sun Dec 14, 2003 6:38 pm
Location: Germany, Mechernich
Contact:

Post by neotoma »

dige wrote:What kind of modells do you need? .3ds, .mesh?
May be I can help.
Thanx, i'll contact you !

Chrono Syndrome wrote:Oh... And what about this ?:
Little suggestion: add, plz, function to receiving OutputID (for StartDrawing / StopDrawing) of IrrLicht window/screen.
Ehhm, i added a Function to get the Hwnd (WindowsHandle). Maybe this helps, but i'm not deep enough in this StartDrawing()/StopDrawing()-Interna. We have to try out.
Chrono Syndrome wrote:And one more suggestion: add, plz, command for coloring nodes (creating a texture for thats isn't convenient...) ala EntitiyColor in Blitz3D.
I wouldnt rebuild B3D. But you can set (next release) DiffuseColor, EmissiveColor, AmbientColor and SpecularColor for each Material.


Mike
kawasaki
Enthusiast
Enthusiast
Posts: 182
Joined: Thu Oct 16, 2003 8:09 pm

Post by kawasaki »

can you please do a quick example, partial code will be just as good, of how to render a camera to an image gui gadget.. (not a purebasic gadget, a irrlicht gui gadget)..


Thanks! :)
neotoma
User
User
Posts: 84
Joined: Sun Dec 14, 2003 6:38 pm
Location: Germany, Mechernich
Contact:

Post by neotoma »

kawasaki wrote:can you please do a quick example, partial code will be just as good, of how to render a camera to an image gui gadget.. (not a purebasic gadget, a irrlicht gui gadget)..
I have no example here, but it is fairly simple. Take a look at the RenderTotarget-Feature.
All you have to do, is to render your Scene to Texture, and assign this texture to a GUI-Image.....
(not tested, but that would be my first try to solve that)

Mike
kawasaki
Enthusiast
Enthusiast
Posts: 182
Joined: Thu Oct 16, 2003 8:09 pm

Post by kawasaki »

Code: Select all

XIncludeFile "_Inc\Irrlicht Wrapper.pb"

InitIrrlichtWrapperDll()
IrrStart( #IRR_EDT_OPENGL, 640, 480, #IRR_WINDOWED, #IRR_NO_SHADOWS, #IRR_CAPTURE_EVENTS )
IrrSetWindowCaption( "Beta Demo 1" )


CamWin=IrrGuiAddWindow(0,0,405,300,#IRR_GUI_BORDER,"Cam",0,1)

View1=IrrGuiAddImage(5,25,100,130, CamWin,0)
IrrGuiAddImage(105,25,200,130, CamWin,1)
IrrGuiAddImage(205,25,300,100, CamWin,2)
IrrGuiAddImage(305,25,400,100, CamWin,3)

*FairyMesh = IrrGetMesh("Beta Demo Media\faerie.md2")
If *FairyMesh
*FairySceneNode = IrrAddMeshToScene( *FairyMesh )  
*FairyTexture   = IrrGetTexture("Beta Demo Media\faerie2.bmp")
IrrSetNodeMaterialTexture( *FairySceneNode, *FairyTexture, 0 )
IrrSetNodeMaterialFlag( *FairySceneNode, #IRR_EMF_LIGHTING, #True)
IrrSetNodeMaterialShininess( *FairySceneNode, 0, 20.0)
IrrSetNodePosition( *FairySceneNode,-10,0,-100 )
EndIf

*light = IrrAddLight(-15,5,-105,255,255,255,100)
IrrSetAmbientLight(60,60,60)

*CubeNode = IrrAddCubeSceneNode(60);

IrrAddRotationAnimator(*CubeNode,0.3, 0.3,0)
IrrSetNodePosition( *CubeNode,-100,0,-100 )
IrrSetNodeMaterialFlag( *CubeNode, #IRR_EMF_LIGHTING, #True)
	
*RenderTarget = IrrCreateRenderTargetTexture(95,95)
;IrrSetNodeMaterialTexture(View1, *RenderTarget, 0 )
    
*FixedCamera = IrrAddCamera(10,10,-80, -10,10,-100)

While IrrRunning()

IrrBeginScene( 255,255,255 )

IrrSetActiveCamera(*FixedCamera);
IrrDrawScene()
IrrSetRenderTarget(0,  #True, #True, 0,0,255);     
IrrGuiImageSetImage(View1,*RenderTarget)

IrrBeginScene( 255,255,255 )
IrrGuiEventAvailable()
IrrReadGuiEvent()
IrrDrawGUI()

IrrEndScene()
Wend

This is what i have in terms of rendering to a GUI Image, but it just displays a black box with a few coloured squared on the top left of the image. :?:
Chrono Syndrome
Enthusiast
Enthusiast
Posts: 169
Joined: Thu Oct 05, 2006 6:44 am
Contact:

Post by Chrono Syndrome »

I've got a new idea: add commands to get/set pixels of textures and receiving their (Textures) Height\Width, plz. It's will be very useful.
Don't try to catch ze Night !
Remember: 'z' is better zen 'th' =) !
Sorry for bad english.
neotoma
User
User
Posts: 84
Joined: Sun Dec 14, 2003 6:38 pm
Location: Germany, Mechernich
Contact:

Post by neotoma »

Chrono Syndrome wrote:I've got a new idea: add commands to get/set pixels of textures and receiving their (Textures) Height\Width, plz. It's will be very useful.
Yes, in future-releases this will be possible (i'v done this already in c++). Also some more access to the Terrain will later available.
But at the moment (and also for the next release) you can load the texture with PB and manipulate it there before you pass it to Irrlicht as Texture.
(See examples for how to do it.)

@kawasaki:

I'll check this out, but it seems in your code above, that you set the Render-Texture to 0 instead of the Texture-Pointer.


Mike
benny
Enthusiast
Enthusiast
Posts: 465
Joined: Fri Apr 25, 2003 7:44 pm
Location: end of www
Contact:

Post by benny »

Hi ...

the Hello world example from the Help-File doesn't show the static
Text. I only get a white screen. Any ideas why ?

And with which command do you set the color of the text ? With :

IrrGuiStaticSetOverrideColor(*st.l, red.l, green.l, blue.l) ???

What is the pointer "*st.l" used for ? :roll:

Many questions ... maybe someone can help ;-)

Code: Select all

 XIncludeFile "IrrlichtWrapper.pbi"
 
 InitIrrlichtWrapperDll()
 IrrStart( #IRR_EDT_SOFTWARE, 400, 200, #IRR_WINDOWED, #IRR_NO_SHADOWS, #IRR_IGNORE_EVENTS )
 
 IrrSetWindowCaption( "Example 01: Hello World - The GUI" )
 
 IrrGuiAddStaticText( "Hello World", 4,0,200,16, #IRR_GUI_NO_BORDER, #IRR_GUI_NO_WRAP )
 
  While IrrRunning() 
      IrrBeginScene( 0,255,255 )   
      IrrEndScene() 
  Wend
  
  IrrDrawGUI()  
  IrrStop()
  
  FreeIrrlichtWrapperDll()
regards,
benny!
-
pe0ple ar3 str4nge!!!
Post Reply