integrate a web page in my scene with irrlicht engine

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
khenissi
Posts: 11
Joined: Mon Jun 06, 2011 10:44 am

integrate a web page in my scene with irrlicht engine

Post by khenissi »

Hey everyone,
Can I integrate a web page in my scene with irrlicht engine?
thanks a lot!!
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, of course. Why not?
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

Not natively, no

You could however try to implement a GUI element which uses a layout engine like gecko or something like that, although that would be some serious overkill I suppose

It depends on what the web page should contain, if it's just some simple HTML you could try to write or find a simple HTML parser and a mechanism for handling HTTP requests
If it should be able to execute scripts and things like that I'd definitely go for a well-established layout engine, seeing as you could run into security issues otherwise

EDIT:

@hybrid: unless you guys recently implemented a web-browser gui element, am I missing something here? :D
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, you're missing exact semantics. Question was "Can I...". And with my optimistic mind, I thought that khenissi can come up with some integration.
If the question was whether Irrlicht can natively display HTML content the answer would be no. But there are some integration examples for web render engines in the code snippets or project forum.
khenissi
Posts: 11
Joined: Mon Jun 06, 2011 10:44 am

Post by khenissi »

thanks for all. my question wasn't so clear,but Mr hybrid understood me. my goal is to display a web page and web surfing in my game programed with C + + and Irrlicht. I understand from you that this is impossible with Irrlicht,but to do this I must integrate web render engines in my code, Mr hybrid can you give me an example or a link to examples. thank you
CuteAlien
Admin
Posts: 9680
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

You could try if this here still works: http://irrlicht.sourceforge.net/phpBB2/ ... ml+browser

I though there was also something about webkit once, but don't find it in the forum.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
loki1985
Posts: 214
Joined: Thu Mar 31, 2005 2:36 pm

Post by loki1985 »

http://awesomium.com/

sadly commercial, but reportedly an early version exists which has an open source license.
khenissi
Posts: 11
Joined: Mon Jun 06, 2011 10:44 am

Post by khenissi »

thanks,
I tried the solution of Mr CuteAlien but I have a problem with llmozlib
I added #include "llmozlib.h" in include folder but there is still a problem
this is the error: undefined reference to `LLMozLib::getInstance()'
my IDE is code Blocks
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Post by serengeor »

khenissi wrote:thanks,
I tried the solution of Mr CuteAlien but I have a problem with llmozlib
I added #include "llmozlib.h" in include folder but there is still a problem
this is the error: undefined reference to `LLMozLib::getInstance()'
my IDE is code Blocks
Try to google on what "error: undefined reference" means :wink:
Working on game: Marrbles (Currently stopped).
khenissi
Posts: 11
Joined: Mon Jun 06, 2011 10:44 am

Post by khenissi »

I know,but I haven't found the library that is responsible to this reference
khenissi
Posts: 11
Joined: Mon Jun 06, 2011 10:44 am

Post by khenissi »

I don't know if I'm on the right way
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Post by serengeor »

khenissi wrote:I know,but I haven't found the library that is responsible to this reference
It might also mean that .cpp files missing in the project.
Working on game: Marrbles (Currently stopped).
khenissi
Posts: 11
Joined: Mon Jun 06, 2011 10:44 am

Post by khenissi »

yes you are right .. i found. ccp but it contains a lot of reference to .h I'm unable to find on web!!! that's why I ask if I'm on the right way
CuteAlien
Admin
Posts: 9680
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

You have to install llmozlib probably. Just google it and you will find it.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
khenissi
Posts: 11
Joined: Mon Jun 06, 2011 10:44 am

Post by khenissi »

i tried but no result.. it's so diffucult
Post Reply