html rendering in 3d app

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
roxaz
Posts: 575
Joined: Tue Jan 23, 2007 8:35 pm
Location: LT

html rendering in 3d app

Post by roxaz »

is anyone aware of any lib or anything that would let me render html in a 3d application?
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

Do you mean as in being able to display webpages in your 3D application?
Brainsaw
Posts: 1177
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Post by Brainsaw »

Hmm ... I don't know of any solution, but this would definetely be cool ... using HTML to design some textures and stuff.
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
roxaz
Posts: 575
Joined: Tue Jan 23, 2007 8:35 pm
Location: LT

Post by roxaz »

if webpages would work that would be awesome. however now im aiming for very basic html rendering. there is opensource server software that im making client for.. and it sends NPC texts in html format.

so far i found article (http://www.codeproject.com/KB/IP/htmlimagecapture.aspx) on how to make a screenshot of page without loading it. i guess it could be rendered, but not sure how with interacting with the page.
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

There's a difference between rendering HTML and parsing HTML, I think what you want is a HTML parser, which I think you could find a simple library for

If you had a lot of time on your hands you could even write this yourself I suppose...
roxaz
Posts: 575
Joined: Tue Jan 23, 2007 8:35 pm
Location: LT

Post by roxaz »

im not familiar with any html parser lib so tell me how they work... in crude words do they make like a list of elements with their coords to be drawn or do i have to calculate all that myself?
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

A HTML parser would just be a library able to read HTML-formatted data and put them into usable data structures

eg. you would create a table structure in HTML and the library would be able to extract this data from the table so you could use it

This is essentially how every simple script parser works, and I'm sure you could find a library like this somewhere (although I'm not familiar with any)

Is there any specific reason on why you want to use HTML to accomplish this, instead of for example XML?
roxaz
Posts: 575
Joined: Tue Jan 23, 2007 8:35 pm
Location: LT

Post by roxaz »

well to be honest im looking for most useful and easiest way to reach the goal. in example server has admin panel that is scripted with html and sent to client. if in-game window could render that it would be very useful. what i am rly trying to avoid is calculating element positions in the window. that would take time i cant invest now.. i already have backup solution ready using xml, but it is very basic, just drawing some text in predefined text area, and binding events up to 5 buttons. but buttons and text always remain in same place, not very reusable. using this solution server admin panel goes right out through the window - got to make custom windows to handle all that..
kalvinorama
Posts: 10
Joined: Sat Jul 19, 2008 12:27 pm

Post by kalvinorama »

Hello,

I remember have seen a library for doing that. But i can't refind this. It is the dual of WebGL, and it has been release at the same period.

Another one, but looks a little bit less serious :
http://www.ubrowser.com/
loki1985
Posts: 214
Joined: Thu Mar 31, 2005 2:36 pm

Post by loki1985 »

Post Reply