Sunday, March 27, 2016

the bidimensional complex numbers nature of world

Wondered why modern physics uses bidimensional complex numbers fourier transforms and waves probability bidimensional complex density functions.( why not one dimension, or 3,4 ?).
In fact it is due to the mathematical property that any function f(t) f(x) or f(x,y,z,t) can be decomposed as a sum of cos cosinus and sin sinus , which can be described as a sum of harmonics : cosinus with amplitude and phase (2 dimensions) for each frequency ,  amplitude*cos(twopi*frequency*t +phase)  which is fourier sum.
And so the nature of world is due to maths. 

Saturday, March 26, 2016

html5 pointillés dotted broken lines draw in canvas

heres an example of how to draw dooted broken lines (lignes pointillé) in html5 javascript canvas

  var contextx=0,contexty=0,contextpattern=0;
function context_moveTo(x,y){
  context.moveTo(x,y);
  contextx=x;contexty=y;
}
function context_lineTo(x,y){
  if(contextpattern==0){context.lineTo(x,y);}
  else if(contextpattern==2){
     var dr=20,dx=(x-contextx),dy=(y-contexty),dn=Math.sqrt(dx*dx+dy*dy)/dr;
     for(var i=0;i<dn;i++){context.moveTo(contextx+i*dx/dn,contexty+i*dy/dn);
           context.lineTo(contextx+i*dx/dn+dx*11/(dr*dn),contexty+i*dy/dn+dy*11/(dr*dn));}
     }
  else{
     var dr=10,dx=(x-contextx),dy=(y-contexty),dn=Math.sqrt(dx*dx+dy*dy)/dr;
     for(var i=0;i<dn;i++){context.moveTo(contextx+i*dx/dn,contexty+i*dy/dn);
           context.lineTo(contextx+i*dx/dn+dx*6/(dr*dn),contexty+i*dy/dn+dy*6/(dr*dn));}
     }
contextx=x;contexty=y;
}

Thursday, March 24, 2016

communicate with html iframe child window

how to easily interact communication between html parent window and child iframe window ?
use html5 localStorage if both parent and child window are in the same folder.
you can find a javascript example in my osm car sim json_osm_webcarsimheight_shadow and mystreetview

=>  http://chungswebsite.blogspot.fr/search/label/json_osm_chung     (free open source) 

Wednesday, March 9, 2016

woman3D_chung erotical nude art version of face3D_chung

woman 3D chung is an erotic nude art viewer version of face3D_chung openGL 3D avatar model creation program. ( beautifull not porn )

for 15+ years old,
personnal use only => https://womanchung.blogspot.pt/search/label/woman3D_chung         

(27/12/2016) sounds, automove added
(17/01/2018) morphobj3DS_woman version added

Thursday, February 25, 2016

2000 light years from earth

2015 light years from earth , there is not a piece of causality photon from Jesus nor from any more recent people , and the universe is million times larger. So , are men's god for man or for the universe ? or rather consider it as a worldwide shared parapsychological entity

Monday, January 25, 2016

read_chung free text to speech txt book reader with 3D avatar

read chung is a small txt reader with 70 multilingual tts text to speech voices from responsivevoice and yandextranslate and animated 3D face avatar written in html5 , javascript and uses jsc3D .
open source, no adds popups.

play it here =>  https://chungkn1400.github.io/read_chung/read_chung/read_chung_helene.html

                 =>  https://chungkn1400.github.io/read_chung/read_chung/read_chung_anne.html

                 =>  https://chungkn1400.github.io/read_chung/read_chung/read_chung_sigourney.html 

you can download it there =>  https://sourceforge.net/projects/read-chung/   (source)

find txt ebooks here => https://www.google.fr/search?q=download+txt+ebook

(15/02/2016) txt ansi format support added (default is utf-8)

Monday, December 21, 2015

3D talking avatar faces free open source chatbot game

look at my new chatbot 3D talking avatars faces i created with latest updated face3D_chung
(anne,carol,clementine,elise,evie,helene,nathalie,sasha,sigourney,sophie,valerie)

=>  https://chungkn1400.github.io/chatbot_chung_small/chatbot_chung_web/chatbot_large_iframe.html

(25/12/2015) talk3D_chung simple example of using obj models created with face3D_chung added

=>  http://chungswebsite.blogspot.fr/2014/06/face3dchung-free-3d-obj-model-with.html   


Sunday, November 29, 2015

grass nature scenary demo openGL with cross_car_chung

tips : in cross_car_chung (freeware) you can set the nature scenary grass height with ctrl+G keys and also change the grass texture (see combo)

=> cross_car_chung

=>  http://chungswebsite.blogspot.fr/p/forestchung.html  (grass + forest_chung + webgl)
 

  

Sunday, August 2, 2015

mywebglflightspace free webgl 3D space flight simulator

mywebglflightspace chung is a free webgl 3D space flight simulator with shaders written in html5 and javascript. Every single spot in the sky is an explorable stellar system with real coordinates and color from hipparcos database query (1000 nearest stars) . Explore distant nebula s .You can also shoot at other spaceships and destroy them .Can run on a small netbook.

play here => mywebglflightspace.html   

source code and files  =>  https://sourceforge.net/projects/mywebglflightspace-chung/  (20Mo)

(06/08/2015) I key : stars info (name, type)
(10/08/2015) spaceship explosions added
(11/08/2015) proxy radar added
(13/08/2015) htmlaudio support added (for iexplorer, webaudio otherwise)
(15/08/2015) load/save games menu added (source available)
(20/08/2015) export/import gamesaves to file added



Friday, June 19, 2015

cputime small free cpu / memory usage display

cputime chung is a small cpu - memory usage displayer allways visible at the right/bottom corner of the screen written in freebasic .Click on window and press escape 5 seconds to close.

=>  https://sourceforge.net/projects/cputime/       

Monday, April 27, 2015

openstreetmap 3D car simulation / glsl shadows without depth texture for basic webgl

here you can find a online demo of fast full shadow mapping without depth or float texture for basic html5 webgl that doesnt have these features.(works better with firefox) , and webglcarsimheight , a free 3D osm car / foot / flight / sailship game using real world osm openstreetmap realtime online data .
drive or fly on millions kilometers of real world roads and thousands towns all over the world.

works with firefox,chrome (no webaudio in iexplorer, faster but irregular and no localhost mode with chrome as chrome dont loads local images files.). Works well with N3540 cpu based notebook.

=> json_osmall_webgl_shadow.html

=> json_osmall_webglcarsimheight_shadow.html  (with car sim)

=> json_osmall_webglcarsimheight_noshadow.html  (idem with no shadow) 

download source here => https://sourceforge.net/projects/jsonosmchung/  (6Mo)

note : your browser must support html5 localstorage


(04/05/2015) new radio [R] added
(20/05/2015) stop, cross panels added
(21/05/2015) speak voice added
(24/05/2015) autopilot mode added
(27/05/2015) 3rd view car model added
(05/06/2015) cars traffic added
(09/06/2015) mouse on screen control added
(26/06/2015) city panels added , switchable shadows
(30/06/2015) click on google maps to teleport
(03/07/2015) eiffeltower,libertystatue,christrio,domerock,gizah,capitol,tajmahal,buddah added
(05/07/2015) autopilot forward added, click on screen to move cockpit,reclick to reset
(06/07/2015) static/moving shadows
(12/07/2015) fog added
(15/07/2015) rocs added
(19/07/2015) draw far land added
(20/07/2015) mystreetview added (shif+M)
(21/07/2015) foot ascend mode (climb walls) added (A)
(23/07/2015) clouds shadow added
(20/08/2015) save/load export/import file gamesave
(09/10/2015) long roads and bridges support
(13/10/2015) optimized shadows shaders (fps 10->20)
(13/10/2015) bridges added to noshadow version (fps 28)
(14/10/2015) woman panel, church added
(19/10/2015) city distance panels added
(05/11/2015) winter scenary added
(28/11/2015) toyota, volvo cockpit added
(10/12/2015) half fog, cadillac cockpit added
(13/12/2015) mercedes,ford cockpits , logan cars added
(17/01/2016) tunnels added
(13/03/2016) gran trees added according to ground texture
(21/03/2016) moves in mystreetview view updates position
(22/03/2016) enhanced car fly mode (Q key)
(24/03/2016) press space or esc to quit mystreetview view
(26/03/2016) grass added
(08/04/2016) seawaves and sailable sailships added
(05/07/2017) roads names added
































Thursday, March 12, 2015

openstreetmap osm roads data to html5 arrays 3D car sim

json_osm_chung is an open source realtime online converting openstreetmap servers osm real roads data to html5 arrays to use with a game or in this example to draw on a graphical canvas or 3D webgl. Use the arrow keys to move or select one of the presets locations. recreate any real roads + buildings places in the world . mixed with google static maps satellite ground images , water terrain detection , srtm terrain heightmaps, trees , lamps,  and webglcarsimheight  a small free 3D driving car simulation game. Can  run on a small netbook. works better with firefox .

how does it work ? In osm, you have ways and nodes. A way is a line of nodes, nodes composed by latitude and longitude . A way can discribe a road, a building contour, a forest contour, an airport ...  All this is available online in realtime via json javascript api .(nothing to install)

explore real 3D world in your car 

=> json_osm.html     (roads)

=> jsonosmall.html    (roads+buildings)

=> json_osm_webgl.html   (roads+3D webgl)

=> json_osmall_webgl.html   (roads+buildings+3D webgl+google static maps)

=> json_osmall_webglcar.html  (idem+car)

=> json_osmall_webglcarsim.html  (idem+car simulation+trees)

=> json_osmall_webglcarsimheight.html   (idem+car sim+trees+terrain height+lamps+forests)

=> json_osmall_webglcarsimheight_shadow.html   (idem with shadows shaders)

open source code => https://sourceforge.net/projects/jsonosmchung/

desktop enhanced version  in freebasic
=> http://chungswebsite.blogspot.fr/search/label/freewebcar_chung

 (15/04/2015) sea shader added
(04/06/2015) cars traffic added
(09/06/2015) mouse on screen control added
(30/06/2015) click on google maps to teleport
(03/07/2015) eiffeltower,libertystatue,christrio,domerock,gizah,capitol,tajmahal,buddah added
(12/07/2015) fog added
(15/07/2015) rocs added
(19/07/2015) draw far land added
(20/07/2015) mystreetview added (shif+M)
(21/07/2015) ascend mode (climb walls) added (A)
(23/07/2015) clouds shadow added










Sunday, January 18, 2015

mywebglflight free 3D webgl / bing static maps flight simulator

here you can find my open source online 3D webgl flight / car simulator with shaders (nothing to download)
arrows : turn    pageup/pagedown : motor    H : help
Comes with a small riding hack & slash fighting game forest_chung with trees, grass, rocs, monsters
You can also go to any place around the world with bing static maps earth satellite images (shift+G flyto). Fly over africa with 3D moving horses, zebras, elephants, girafes, antilopes, birds. Can run on a small netbook .

works better with firefox32, also with chrome, not ie11(no webaudio),don't forget to enable javascript

=>  http://chungswebsite.blogspot.fr/p/mywebglflight_srtm.html   (with srtm data & dogfight & car)

=>  http://chungswebsite.blogspot.fr/p/mywebglflight.html 

=>  http://chungswebsite.blogspot.fr/p/mywebglflightold.html

=>  http://chungswebsite.blogspot.fr/p/forestchungold.html

test if you can run webgl =>  http://get.webgl.org/
   
(12/10/2014) web audio api sounds instead of html5 audio
(13/10/2014) yougo, grece, hawai, japan added
(15/10/2014) skydome added
(17/10/2014) egypt, vietnam added + real weather
(20/10/2014) raindrops on cockpit added
(22/10/2014) optional game save cookie added
(23/10/2014) joystick and gamepad supported
(25/10/2014) foot mode added
(11/11/2014) forest_chung small hack&slash version added
(14/11/2014) small jscompile_chung javascript compressor / compiler added
(18/11/2014) resize window support
(17/01/2015) worldwide google static maps satellite images added
(18/01/2015) flyto geolocation added
(21/01/2015) many preset places added
(25/01/2015) draw airports added
(26/01/2015) tanks added
(28/01/2015) buildings added
(30/01/2015) cssscale added (lowerres<=>faster)
(01/02/2015) faster rotates for fps<10
(03/02/2015) alphajet added
(16/02/2015) satellite srtm elevation data added
(18/02/2015) start/stop dogfight added (shift+D)
(23/02/2015) wild horses added
(25/02/2015) minimal cockpit added
(01/03/2015) elephants, girafes, zebras, antilopes, birds added
(04/03/2015) car mode added
(24/06/2018) bing not google


source  =>  https://sourceforge.net/projects/mywebglflightchung/



Monday, December 22, 2014

chatbot_chung free simple keywords entertainment chatbot

chatbot chung is a keywords based probabilities algorythm simple entertainment chatbot with 3D talking openGL avatars written in freebasic. It generates random questions/answers according to the input keywords or text but can import aiml simple question/answer or question/random/answers or single star/ multi srai data saved from "AIML_chung" open source application . Comes with a html5 and pure javascript online version (with auto detection of 44 multilanguages support include english, autodetect, francais, german, italian, spanish, greek, russian, arabic, chinese, vietnamese ...) .

click here =>  https://sourceforge.net/projects/chatbotchung/      (9 Mo include html files)

note: desktop version is the more recent (AIML, SORT gentext )

online html5 version =>  chatbot_chung.html    (nothing to download, speaks with firefox & chrome)
                                                                            (added voice recognizing on google chrome)
                                                                            (added wikipedia online data)
with lowpoly model =>  chatbot_chung2.html    
the plus : more various answers , easy to add content to the current 90000 questions/answers data

full large version =>  https://chungkn1400.github.io/.../chatbot_large_iframe.html    

   (01/01/2015) single star (aiml) import added
(01/01/2015) export data to javascript added (ctrl+J)
(02/01/2015) html : yandex multilingual auto detection translate added  (en,fr,es,de,it,...)
(12/01/2015) aiml single srai & star support added
(03/09/2015) aiml multi srai  support added
(05/09/2015) aiml set vars, get vars added
(08/09/2015) aiml condition tag support added
(10/09/2015) say "battledome" then "fight" test added
(11/09/2015) aiml simple <that> tag test added
(14/09/2015) voice recognition added on google chrome
(15/09/2015) wikipedia online data added to html version
(19/09/2015) wikipedia unlimited data added to the freebasic version



Sunday, December 7, 2014

forest_chung free webgl 3D fps / horse riding hack & slash game

forest chung is a free html5 webgl 3D fps / horse ride hack and slash exploration / fighting game written in javascript with shaders and vaste random procedural world, trees, grass, rocs, water, monsters, woman riders you can chat with chatbot_chung multilingual when they are near .

online game (nothing to download)
(works with firefox, Chrome, not iexplorer(no webaudio), others: to try)
 =>  http://chungswebsite.blogspot.fr/p/forestchung.html

source code => https://sourceforge.net/projects/forestchung/

test if you can run webgl =>  http://get.webgl.org/

(12/11/2014) river added (14/11/2014) small jscompile_chung javascript compressor / compiler added
(16/11/2014) ride horse added
(18/11/2014) resize window support
(21/11/2014) forest_chung fast rotate added for low fps
(06/12/2014) fighting 3D skeleton rider added
(09/12/2014) desert added
(12/12/2014) skeleton sprite animation from perso3D_chung added
(14/12/2014) birds added
(15/12/2014) css scalex (lowerres / faster) added
(16/12/2014) barbare woman rider added
(17/12/2014) woman jean rider added
(05/01/2015) chatbot_chung with near women riders added
(07/01/2015) auto resize screen supported
(04/12/2015) new grass, wild horses added


Thursday, July 31, 2014

html5 + custom streetview at Deauville

go to Deauville - Trouville - Tourgeville with this html5 + custom street view  , or go anywhere in the world with click on the map !
(combo => select place /  arrows => move  / M=> map / H => help)

click here => http://chungswebsite.blogspot.fr/p/mystreetview.html

download source here
=> https://sourceforge.net/projects/mystreetviewchung/    

(21/03/2016) html5 position storage memory added

   

Thursday, July 10, 2014

html5 + jsc3d + face3D_chung animation demo

here you can find a demo of html5 canvas + jsc3d + face3D_chung 3D obj model animated avatar from photo (free open source) + google translate TTS text to speech + eliza like chatbot (pure javascript , no WebGL required )
(TTS function: Chrome only, Firefox & ie11 : not always)

=> _face3D_chung_say_drive.html 
=> _face3D_chung_elizabot.html    (eliza based online chatbot )
=> _face3D_chung_sashabot.html  (idem with another avatar )
=>   womanjean_elizabot.html  (idem with lowpoly avatar )


 "*" => repeat last input
  ""  => autochat
(17/07/2014) now you can enter only the first letters of words
(19/07/2014) eval(...) key added from javascript eval() function , so you can insert pieces of javascript program allowing all javascript Maths String and Conditional features in key/pattern/result (see 'whats my name' / 'my name is' example in myelizadata.js)
(20/07/2014) var elizaredir added, if not empty, resubmit with input=elizaredir (20 times max) see test example


Wednesday, July 9, 2014

vk_keys for javascript

here you can find a small vk_keys keyboard charcode constants listing to embed in your javascript applications
=> http://chungswebsite.blogspot.fr/p/vkkeys.html

Monday, June 30, 2014

Tuesday, June 3, 2014

face3D_chung free 3D obj model with texture from single face photo

face3D chung is a small mesh editor with which you can create speaking 3D obj model character avatar head objects with texture from a single photo of any man or woman for your games. Works by 3D & texture morphing .Uses freebasic apps gui_chung , loadobj3ds_chung , openGL1.4 and aiml_chung_dll . Can run on a small netbook. .Is free open source.
Can be used as mesh editor (adjust texture,scale parts) by load/save as model .

=>  https://sourceforge.net/projects/face3dchung/  (20Mo)


(08/06/2014) speaking avatars with moving lips added
(11/06/2014) AIML dialog added
(28/08/2016) speak3D_chung_dll dll version with example added
(29/08/2016) speak3D_chung_dll2 for multi avatars display