GarageGames / Torque3D

MIT Licensed Open Source version of Torque 3D from GarageGames
http://torque3d.org
MIT License
3.35k stars 1.2k forks source link

GuiWebCtrl (Web UI Control) #162

Closed BlzFans closed 11 years ago

BlzFans commented 11 years ago
  1. Web and Flash Embedded in 3D Games, based on WebKit
  2. DDS Image Decoder in WebKit
  3. Load HTML from local filesystem or pakaging filesystem
  4. Javascript bindings for C/C++

Demo: http://sourceforge.net/projects/wke/files/Torque3D-WebUI-Demo-v1.20.7z/download

Source Code: http://svn.code.sourceforge.net/p/wke/code/trunk/demo/wkeTorque3D or https://github.com/BlzFans/wke/tree/master/demo/wkeTorque3D

Full Source Code: https://github.com/BlzFans/Torque3D

lukaspj commented 11 years ago

DDS Image Decode isn't this in stock T3D? Also is this a feature suggestion? I think a forum post is better for that. But I can confirm the demo is running on W8.

I would be interested in something similar to this if it could be run without a border and do callbacks to the engine so I could design my interface in HTML rather than the UI elements in Torque. Also transparency so you can create a webpage as an overlay to the playGUI.

What CSS does it support?

Is it efficient?

  1. Javascript bindings for C/C++ Can you be more specific on this?
  2. Read file from package files What do you mean by this?
mquaker commented 11 years ago

maybe 'Read file from pakage files' mean like contents pakaging system.

example : unreal engine using .upk quake engine using .pak

current selling crypt pakaging solution for Torque Engine. https://www.garagegames.com/community/blogs/view/20479

BlzFans commented 11 years ago

@lukaspj

DDS Image Decode isn't this in stock T3D?

DDS Image decoder in WebKit, you can use dds image in HTML. The official WebKit Does not support DDS.

I would be interested in something similar to this if it could be run without a border and do callbacks to the engine....

Yes, it could be.

What CSS does it support?

CSS3

Is it efficient?

Yes, it just use WebKit

Javascript bindings for C/C++ Can you be more specific on this?

a. Javascript call C/C++ function b. Javascript call TorqueScript function c. C/C++ call javascirpt function d. TorqueScript call javascript function

Read file from package files What do you mean by this?

Load HTML from local filesystem or pakaging system

Sorry for my poor Engslih :)

BlzFans commented 11 years ago

@mquaker Yes, thank you

lukaspj commented 11 years ago

Hmm, I wonder if you could rewrite this to a javascript scripting language lol...

Anyways this would be really awesome if you could create it as an overlay to the playGUI so you could use it to create your UI (being able to use CSS for buttons rather than use images would be a huge improvement, and html is way easier to work with than the T3D UI)

Also there were this on the resources on T3D which had render to texture feature, might be worth combining the two

thecelloman commented 11 years ago

Closing this since this is not an actionable item or issue with stock code. We encourage the author or interested parties to submit a pull request if this something that is desired.