Brad | 1 Jun 2008 05:00

Re: [Wt-interest] Missing files in chart example

Pau Garcia i Quiles wrote:
> You need to download ExtJS from http://extjs.com. It's documented in  
> the Ext module front page:  
> http://www.webtoolkit.eu/wt/doc/reference/html/group__ext.html
>
>   
Doh! I didn't think of the possibility of it being an eternal library, 
of course! My bad, sorry for the noise. Thank you Pau.

Kind regards,
Brad

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Sang Park | 2 Jun 2008 02:21
Picon

[Wt-interest] Wt and OpenGL binding

Hello,

This is really a newbie question since I'm really new to Wt.  I've
been looking around project code documentation for just today (I just
found out about yesterday!), so I haven't had much time to look around
the code base to give a reasonable question, but due to high interest
in Wt(web toolkit for C++ yay finally) and little bit of feeling
impatinence, I wanted to ask question.

My plan is to create a 3D renderer using Wt and OpenGL.  Is there a
way to integrate OpenGL on Wt by directly accessing drawable surface?
Can it be done?

Thank you!

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Pau Garcia i Quiles | 2 Jun 2008 02:47
Favicon

Re: [Wt-interest] Wt and OpenGL binding

Quoting Sang Park <sangpark83@...>:

> Hello,
>
> This is really a newbie question since I'm really new to Wt.  I've
> been looking around project code documentation for just today (I just
> found out about yesterday!), so I haven't had much time to look around
> the code base to give a reasonable question, but due to high interest
> in Wt(web toolkit for C++ yay finally) and little bit of feeling
> impatinence, I wanted to ask question.
>
> My plan is to create a 3D renderer using Wt and OpenGL.  Is there a
> way to integrate OpenGL on Wt by directly accessing drawable surface?
> Can it be done?

There's Canvas3D but it's only for Mozilla browsers:
http://blog.vlad1.com/2007/11/26/canvas-3d-gl-power-web-style/

Then Opera has its own implementation (with a different API) of a 3D canvas:
http://my.opera.com/timjoh/blog/2007/11/13/taking-the-canvas-to-another-dimension

And of course you can use Java (Java3D, etc) , Flash (PaperVision 3D,  
for instance) or ActiveX (IE-only, several third-party implementations).

I don't know of any standarized solution, though.

--

-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
(Continue reading)

Picon

[Wt-interest] wt memory consumption and execution speed

small test:

---------------------------------------
#include <WApplication>
#include <WText>
#include <WTable>
#include <string>
#include <boost/lexical_cast.hpp>

using namespace Wt;

WApplication *createApplication(const WEnvironment& env)
{
	WApplication *app = new WApplication(env);

	WTable *table_layout = new WTable(app->root());
	
	for(int i=0; i<500; i++)
	for(int j=0; j<500; j++){
		//~ table_layout->elementAt(i,j)->addWidget(new
WText(boost::lexical_cast<std::string>(i)+boost::lexical_cast<std::string>(j)+"
"));
		//~ table_layout->elementAt(i,j)->addWidget(new WText("|"));
		new WText("*", table_layout->elementAt(i,j));
	}

	return app;
}

int main(int argc, char **argv)
(Continue reading)

Guy Deleeuw | 2 Jun 2008 04:19
Picon

Re: [Wt-interest] wt memory consumption and execution speed

Hello,
> -------------------------------------------------------
>
> but this small program consumes more than 300Mb (according to top) and
> I couldnt wait till the end of loading? it was not fast.
> Im new to Wt? Is this normal behavior or i have a memory leak?
>
>   
you create 500 rows * 500 columns = 250 000 cells in html the with of 
the page slow down dramatically the speed to display the page.

Regards
Guy

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
djal | 2 Jun 2008 04:28
Picon

Re: [Wt-interest] wt memory consumption and execution speed

But why wt uses so much memory? Where it goes?

2008/6/2 Guy Deleeuw <G.De_Leeuw@...>:
> Hello,
>> -------------------------------------------------------
>>
>> but this small program consumes more than 300Mb (according to top) and
>> I couldnt wait till the end of loading? it was not fast.
>> Im new to Wt? Is this normal behavior or i have a memory leak?
>>
>>
> you create 500 rows * 500 columns = 250 000 cells in html the with of
> the page slow down dramatically the speed to display the page.
>
> Regards
> Guy
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> witty-interest mailing list
> witty-interest@...
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
(Continue reading)

Wim Dumon | 2 Jun 2008 09:18
Picon
Favicon

Re: [Wt-interest] Wt and OpenGL binding

2008/6/2 Sang Park <sangpark83@...>:
> Hello,
>
> My plan is to create a 3D renderer using Wt and OpenGL.  Is there a
> way to integrate OpenGL on Wt by directly accessing drawable surface?
> Can it be done?
>

As Pau points out, there is currently no 3D support in Wt. If you are
not interested in interactive (real-time) 3D, but only want still 3D
images, you may want to use Mesa3d (a high-quality software OpenGL
implementation) and use it to render in a mempry buffer, which you
convert to a jpg/png/whatever before rendering on the website. Could
you explain your use case in a little more detail?

Regards,
Wim.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Archimedes B. Cortes | 2 Jun 2008 09:31
Picon

Re: [Wt-interest] Sub-Classed Validator

I was looking for a functionality in wt that would allow say:
I have WRegExp reg("ABC") as a validator, a textbox will only allow me 
to enter characters that satisfies reg, and not show red as in the case 
of Wt textboxes.

I am currently also looking into sub-classing the WLineEdit or 
Ext::LineEdit instead.

Well, if what you've suggested below will come up with the same effect, 
why not. At least, we have that function. :)

Koen Deforche wrote:
> Hey Archimedes,
>
> 2008/5/29 Archimedes B. Cortes <acortes@...>:
>   
>> I'm trying to come-up with a validator that will catch every input
>> character and filter it if it's not valid (will not show on say a text
>> box). A similar class from other lib that I've used before allows this
>> and not the current behavior of showing a red on a textbox when
>> validated. I usually re-implement validate(input, pos) and manipulate
>> the input and pos. I understand that in WValidator's case I may do it in
>> javaScriptValidate(). I've already tried, but since I'm not yet familiar
>> with the underlying script code, every attempt is still unsuccessful.
>> Can you help me with this one? Or is there an easy way?
>>     
>
> In principle, yes, you should do this in javaScriptValidate(), but
> that validate function does not support manipulating the input (it can
> only return whether it is valid or not).
(Continue reading)

Guy Deleeuw | 2 Jun 2008 09:41
Picon

Re: [Wt-interest] wt memory consumption and execution speed

Hello Djal,

For each columns your program produce a HTML code like :

<td id="xxxx"><span id="o11">*</span></td> 
= 42 chararcters * 500 columns = 21 000
and for each row 
<tr id="of">
</tr>
(17 characters *21 000) * 500 = 178 500 000 bytes 170Mb

WText use unicode string may be (but I'm not sure) 2 bytes/character = 340MB
Top are true :-)
but your browser cannot display a page from this size.

I try your example with 50 rows and 50 columns and work fine for me.

Regards
Guy

djal a écrit :
> But why wt uses so much memory? Where it goes?
>
> 2008/6/2 Guy Deleeuw <G.De_Leeuw@...>:
>   
>> Hello,
>>     
>>> -------------------------------------------------------
>>>
>>> but this small program consumes more than 300Mb (according to top) and
(Continue reading)

Archimedes B. Cortes | 2 Jun 2008 09:56
Picon

[Wt-interest] Floating WWidget

I was reading the limitation of Wt dialogs. It says, "Only one WDialog 
window may exist at any time in a single application. An attempt to 
instantiate a second dialog will result in an exception that terminates 
the session." I admit I have not gone through all the Wt manual, please 
direct me if I have just missed on something or I just don't know how.

I'm sure that sooner or later this toolkit is going to be bigger, and 
sooner or later we can even come up with a desktop on a browser with it. 
Let's just say I'm just thinking of a future collaborative project in 
advance :), this is aside from my current project requirement.

I am looking for a floating widget similar to a dialog without the modal 
and limit of number issue. I previously tried with Wt widget, then 
panel, and now I'm at blank with dialog.

--

-- 
ABC-90106446

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Gmane