Jump to content

Use of Unigui for games and animations


SergioFeitoza

Recommended Posts

Hi Fred. Now taht my code is working I will go to the 3D views I mentioned before. Before going to JS, that I would have to study a lot, I will try to do a conversion of my GLScene sources

If I succeed to put in the browser , simply the edges of a single cube I  think I will do it. I will post here Regards

 

Link to comment
Share on other sites

Hi Sergio,

If you prefer the pascal language to target internet browser/javascript environments, there are already wrappers for GLScene in pascal language for this, they compile/transpile your code to javascript. So uniGUI has nothing to do there.

If one day uniGUI decides to integrate one of those (for example pas2js) to uniGUI then it would be a beautiful thing.

Link to comment
Share on other sites

Hi Mehmet    Thanks for the info  …. ,

 

Yes, I prefer the pascal language to target internet browser. If I have the GLScene part of my code working with my Delphi + Unigui code it will become 100% ready as it is in VCL (figure below).

I am looking for a wrapper for GLScene in pascal language for this. Actually, I posted, in the last 2 years,  suggestions for this in GLScene forum. As I could not find I will try to do something by myself. An open code for doing the first steps would be good because I have some experience with GLScene.

I collected some material about how to compile/transpile pascal codes to javascript (pas2js) . However I did not find a wrapper with free code. Can you give an example of existing wrappers for GLScene ?

 

The references I have up to now listed here. Next wek I will start to read them in more details to see what I can get inside.

 

PAS2JS   https://github.com/Kryuski/pas2js-for-delphi

SCENEJS  http://scenejs.org/

GLGE  http://www.glge.org/

 

WEBGL https://www.delphitools.info/2012/05/31/webglscene-something-is-brewing-in-the-lab/

 

SMART PASCAL https://en.wikipedia.org/wiki/Smart_Pascal

 

 

Any additional information is very welcome.

GLscene.png

Link to comment
Share on other sites

20 minutes ago, SergioFeitoza said:

However I did not find a wrapper with free code. Can you give an example of existing wrappers for GLScene ?

I don't know if they are free code (probably not). But have a look at this link, it will give you a good start:

https://www.delphitools.info/2012/05/31/webglscene-something-is-brewing-in-the-lab/

Link to comment
Share on other sites

30 minutes ago, Mehmet Emin said:

But since pas2js is open source I would go that way and develop the wrapper yourself.

The three  ones are useful. Next week I start to go deep on this to understand better. I knew about WebGl but not about Smart_Pascal. I will try to develop by myself . The learning time with the other options  may be longer than try to do based in GLScene that I know well several of the unis  Regards and Thanks  I will post here the advances

Link to comment
Share on other sites

  • 2 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...