I have a Delphi code in which I use GLscene to do 3D views and some animations. I am converting the Delphi Seattle code to anable me to run in it the browser. I am advancing using Intraweb components . I used Mida Converter to some conversions. I am now arriving in the GLscene part of the code. The first question is : Is it necessary to convert the GLscene code to see what I see in the browser what I see in the desktop version?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So, the question is : Is there anything like a "WebGLScene" ? If not what are the steps I would need to follow to see mu GLscene + Delphi codes in the browser ? A demo would be great I thank you in advance for any help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there anything like a "WebGLScene" ?
Yet there is no a separated GLScene’s branch or advanced ScriptingAPIs for WebGL in current trunk, that was developed for dwsI/dwsII earlier and not updated for DWS https://www.delphitools.info/dwscript/
It would be useful to visualize 3D samples similar http://webglsamples.org/ (or other resources) with GLScene’s ScriptingAPIs implementing features like in Cesiumjs http://cesiumjs.org or http://xeolabs.com/articles/scenejs4-release but using Delphi Web Script language instead of Java Script. Now in Unity3D and Unreal Engine 4.10 users can prepare both OpenGL and WebGL applications.
what are the steps I would need to follow to see mu GLScene + Delphi codes in the browser ?
In any case here should be a bunch of tools including GLScene+DWS+WebGL+glTF. In the first step you need to have a Loader (or LoadFromFile()) for binary or embedded glTF files for scenes having formats especially designed for web (native for Cesium, MS Remix3D/Paint 3D etc.)
You may try to ask Eric Grange about his plans for supporting WebGL+JSON+glTF+GLScene in DWS at https://bitbucket.org/egrange/dwscript
PW
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear PW
Thank you for your always good and complete explanations. I am reading this material and taking the courage to start learning to do the conversion. It seems a little more complex than I thought but I think it's worth the effort. At first I need to find the source code of one of these demos http://webglsamples.org/ Possibly I will find one in the links above
Reading the code I think I will understand better when you say GLScene+DWS+WebGL+glTF
Actually I am advancing well in doing a site using Delphi + Intraweb . More than having a site written in Delphi Seattle + Intraweb , my idea is to put in the site my homemade (Delphi+GLScene) software . It is for some electrical engineering calculations. The idea is to make available to the users the possibility of doing the calculations via browser in Internet, It is starting to work and I am now arriving to the GLscene part ..
Typical screens in desktop version are here http://www.cognitor.com.br/TR074ENGFigures.pdf
By the way, with your answers to my posts along the last years, you and other coleagues in this forum helped meto complete the desktop version you see in these figures
Regards Sergio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Looking to Jerome post above can anyone help me to transform the GLscene sample renderining/lining in a cgi-app . Some artcle or demo or anything explanining how to do it is very welcome. Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear PW Thank you very much. Good material.
Soon I will post in this forum a free working source code of a site made by me with Delphi Seattle + Intraweb with a calculation code that can be ran through browser. It uses a local or remote MySql database. It will be useful for people like me converting desktop codes to run in Internet. It is working except for the small part using GLscene. I followed your comment about WebGl but I would not be able to take time to study to go in that way. Maybe there is some other solution using most of my GLscene code
If any of you know how to transform some of the GLscene (small) samples in a cgi-app please show me the code. It is the key I need. Regards Sergio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
TGLDummyCube has the property edgecolor that is quite useful. In many-many cases cubes are characterized just by the edges. I imagine that this is the reason why TGLDummyCube , which has very few properties, has it.
My suggestion is to include in TGLcube component an “edge color property”
If it is not easy to do it or there is another reason for not implementing , please help me to implement in my codes a component like a “TGLcube with a coloredge property”. Thank you all in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I converted a Delphi code from my Delphi Seattle to run in the browser . I used Delphi + Intraweb + Bootstrap and works more or less well. I am still learning some tricks but it works. Soon I will publish in the web. For running some Delphi codes (their exe) works fine in my computer but when I try to put the file in the provider directory something do not work well. So I am now trying to really convert the full Delphi code to Delphi + Intraweb + Bootstrap which is possible but hard to do. I am now arriving to the GLscene part of the code. The question : Do you know if there are "GLscene for Web " components even if not free ? Thanks in advance for any information
An example of cgi-app directly as suggested above would help me. I tried to find but did not succeeded. Thanks in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you PW. I will go deep in this matter and and also in webgl . Now is a must for me . I need also to understand better the sentence above by Jerome " perhaps you'll can also try to make a cgi-app directly, it will work normally "
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Jerome. Thanks for the help. I will check the links one by one
I created a site using Delphi + Intraweb + Bootstrap (DIB) and works well. I want to use this DIB site to enable people to access it via browser to run some different calculation codes that I have also prepared in common Delphi. Most of them use GLscene. Then I have two options:
a) The first is to put the calculation codes (with several screens) inside the code of the DIB site. This is possible but hard to do because the calculation codes are complex. The main problem is that I imagine that , at the end, the resulting DIB site (which is a exe file) may become very slow
b) The second option ( I suppose) is to use the original DIB.IW site (which is an exe file) to call other Delphi.exe files (not IW) of the calculation codes (putting all of them in a single directory in my provider ) . It works in my local computer but in this post https://www.atozed.com/forums/showthread.php?tid=635 the colleagues says that will not work when I put it in the provider directory accessing via browser
I will check now if the use of cgi-app works for this. I will post here at the end.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, Sergio, this why you must make a cgi-app. CGI-APP run on server side not in client-side (browser.)
For running the cgi-app you must check the settings in your web server to allow cgi-app working. if i'm remember those options are not enable by the provider by default because it can cause security hole. And i think you must create a sub-folder like "www.myweb.com/cgi-app/" and give the name of your app as parameter aka" www.myweb.com/cgi-app/runmyapp.cgi" or something like that. If I'm also remember well, the app will be run in an IFrame
If you just want doing a calculation (no opengl display) you can use DWS scripting directly. Or you can also check this 2 links (pas2js)
I will check the movie also. My central point is that I already have a site made with Delphi + intraweb + Bootstrap working. This is not so hard to do and I will put it in the air very soon and will make the code available. I imagine that the calculation codes that I want to call from this site have to be cgi applications (instead of common exe files). I will try do something like this as simple as possible and put it running in my provider. If we can create a code / demo doing something like this http://webglsamples.org/blob/blob.html but with Delphi + Intraweb + GLScene this code would become a reference and help many-many people. I am sure it is not difficult to do. We need only to do an understandable step by step description based on a simple demo with source code. If anyone want to try I can provide a small Delphi + Intraweb + Bootstrap source code as a starting point
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It would be great if we could do a single demo + code like in this figure. If anyone want to try I can prepare the basic Delphi + Intraweb code and post here to add Glscene part.. The final product would be to run it in the browser ( I can put in my provider which permit exe files)
I have a Delphi code in which I use GLscene to do 3D views and some animations. I am converting the Delphi Seattle code to anable me to run in it the browser. I am advancing using Intraweb components . I used Mida Converter to some conversions. I am now arriving in the GLscene part of the code. The first question is : Is it necessary to convert the GLscene code to see what I see in the browser what I see in the desktop version?
Complementing my question:
I found now in Internet information about WebGl like in http://webglsamples.org/aquarium/aquarium.html
So, the question is : Is there anything like a "WebGLScene" ? If not what are the steps I would need to follow to see mu GLscene + Delphi codes in the browser ? A demo would be great I thank you in advance for any help.
Sergio,
Dear PW
Thank you for your always good and complete explanations. I am reading this material and taking the courage to start learning to do the conversion. It seems a little more complex than I thought but I think it's worth the effort. At first I need to find the source code of one of these demos http://webglsamples.org/ Possibly I will find one in the links above
Reading the code I think I will understand better when you say GLScene+DWS+WebGL+glTF
Actually I am advancing well in doing a site using Delphi + Intraweb . More than having a site written in Delphi Seattle + Intraweb , my idea is to put in the site my homemade (Delphi+GLScene) software . It is for some electrical engineering calculations. The idea is to make available to the users the possibility of doing the calculations via browser in Internet, It is starting to work and I am now arriving to the GLscene part ..
Typical screens in desktop version are here http://www.cognitor.com.br/TR074ENGFigures.pdf
By the way, with your answers to my posts along the last years, you and other coleagues in this forum helped meto complete the desktop version you see in these figures
Regards Sergio
Hi, perhaps you'll can also try to make a cgi-app directly, it will work normally.
Thanks Jerome . I will try to do it Regards sergiofeitoza@cognitor.com.br
Looking to Jerome post above can anyone help me to transform the GLscene sample renderining/lining in a cgi-app . Some artcle or demo or anything explanining how to do it is very welcome. Thanks
Dear PW Thank you very much. Good material.
Soon I will post in this forum a free working source code of a site made by me with Delphi Seattle + Intraweb with a calculation code that can be ran through browser. It uses a local or remote MySql database. It will be useful for people like me converting desktop codes to run in Internet. It is working except for the small part using GLscene. I followed your comment about WebGl but I would not be able to take time to study to go in that way. Maybe there is some other solution using most of my GLscene code
If any of you know how to transform some of the GLscene (small) samples in a cgi-app please show me the code. It is the key I need. Regards Sergio
TGLDummyCube has the property edgecolor that is quite useful. In many-many cases cubes are characterized just by the edges. I imagine that this is the reason why TGLDummyCube , which has very few properties, has it.
My suggestion is to include in TGLcube component an “edge color property”
If it is not easy to do it or there is another reason for not implementing , please help me to implement in my codes a component like a “TGLcube with a coloredge property”. Thank you all in advance
I converted a Delphi code from my Delphi Seattle to run in the browser . I used Delphi + Intraweb + Bootstrap and works more or less well. I am still learning some tricks but it works. Soon I will publish in the web. For running some Delphi codes (their exe) works fine in my computer but when I try to put the file in the provider directory something do not work well. So I am now trying to really convert the full Delphi code to Delphi + Intraweb + Bootstrap which is possible but hard to do. I am now arriving to the GLscene part of the code. The question : Do you know if there are "GLscene for Web " components even if not free ? Thanks in advance for any information
An example of cgi-app directly as suggested above would help me. I tried to find but did not succeeded. Thanks in advance
Sergio,
Some years ago there was an announcement by Eric Grange about WebGLScene based on WebGL and DWS. Look at https://www.delphitools.info/2012/05/31/webglscene-something-is-brewing-in-the-lab/
PW
Thank you PW. I will go deep in this matter and and also in webgl . Now is a must for me . I need also to understand better the sentence above by Jerome " perhaps you'll can also try to make a cgi-app directly, it will work normally "
Hi Sergio there are some resources link i found about CGI-App with Delphi for help you
https://www.experts-exchange.com/questions/20182285/A-simple-Delphi-CGI-application.html
https://oldsite.adug.org.au/PastMeetings/Presentations/GlennLawrenceFeb98/Default.html
https://stackoverflow.com/questions/1172190/web-application-in-delphi
http://speed.eik.bme.hu/help/html/Special_Edition-Using_CGI/ch3.htm
https://www.youtube.com/watch?v=R64_n8vIrvg
http://blog.marcocantu.com/blog/delphiajaxdemo.html
http://www.sc.ehu.es/scrwwwsr/isapi/ch03.htm
Hi Jerome. Thanks for the help. I will check the links one by one
I created a site using Delphi + Intraweb + Bootstrap (DIB) and works well. I want to use this DIB site to enable people to access it via browser to run some different calculation codes that I have also prepared in common Delphi. Most of them use GLscene. Then I have two options:
a) The first is to put the calculation codes (with several screens) inside the code of the DIB site. This is possible but hard to do because the calculation codes are complex. The main problem is that I imagine that , at the end, the resulting DIB site (which is a exe file) may become very slow
b) The second option ( I suppose) is to use the original DIB.IW site (which is an exe file) to call other Delphi.exe files (not IW) of the calculation codes (putting all of them in a single directory in my provider ) . It works in my local computer but in this post https://www.atozed.com/forums/showthread.php?tid=635 the colleagues says that will not work when I put it in the provider directory accessing via browser
I will check now if the use of cgi-app works for this. I will post here at the end.
Hi, Sergio, this why you must make a cgi-app. CGI-APP run on server side not in client-side (browser.)
For running the cgi-app you must check the settings in your web server to allow cgi-app working. if i'm remember those options are not enable by the provider by default because it can cause security hole. And i think you must create a sub-folder like "www.myweb.com/cgi-app/" and give the name of your app as parameter aka" www.myweb.com/cgi-app/runmyapp.cgi" or something like that. If I'm also remember well, the app will be run in an IFrame
If you just want doing a calculation (no opengl display) you can use DWS scripting directly. Or you can also check this 2 links (pas2js)
http://p2js.gelicon.biz/en/
http://wiki.freepascal.org/pas2js
perhaps it can help you a bit for making what you want
Last edit: Jerome.D (BeanzMaster) 2018-10-10
Hi Jerome
Thank you for the very useful information. . I am reading the links you sent to make an understanding. I will write back in next days
Hi, i just find this video to make web app with REST (DataSnap / HTML– jQuery)
https://www.youtube.com/watch?v=J5u9XfYbjvI&t=71s
I will check the movie also. My central point is that I already have a site made with Delphi + intraweb + Bootstrap working. This is not so hard to do and I will put it in the air very soon and will make the code available. I imagine that the calculation codes that I want to call from this site have to be cgi applications (instead of common exe files). I will try do something like this as simple as possible and put it running in my provider. If we can create a code / demo doing something like this http://webglsamples.org/blob/blob.html but with Delphi + Intraweb + GLScene this code would become a reference and help many-many people. I am sure it is not difficult to do. We need only to do an understandable step by step description based on a simple demo with source code. If anyone want to try I can provide a small Delphi + Intraweb + Bootstrap source code as a starting point
It would be great if we could do a single demo + code like in this figure. If anyone want to try I can prepare the basic Delphi + Intraweb code and post here to add Glscene part.. The final product would be to run it in the browser ( I can put in my provider which permit exe files)