File Reference
Back end: server/
These files are not meant to be edited and reside only on our sever:
load_image.php, load_points.php, nose_chin_tap.php, post.php, save_points.php, post_and_load.php |
These files communicate with our C++ software when the user performs an interaction that will affect the images displayed. |
The server is implemented in two parts:
PPAsyncCommandLine: This is a lightweight utility that is called from the php that sends message to RealTimeServer
RealTimeServer: This is where all the image processing is done. It loads all the necessary data files into memory once, then it is left running so request can be dealt with immediately. PPAsyncCommandLine communicates with the RealTimeServer using local sockets.
RealTimeServer comes with the RepeatingServer.bat file which should be run to start RealTimeServer. This file ensures that if RealTimeServer ever crashes, it will start up again automatically. There are some parameters that can be added to line 2 of the RepeatingServer.bat:
-n_processors N | N specifies the number of simultaneous threads to use. Ideally it's the same as the number of cores. |
-delete_uploads_after_n_hours N | N specifies how old files in the uploads dir have to be before being deleted (it deletes all .jpg and .ppx files) |
-max_request_queue N | N decides how many requests queue up before the user starts being rejected. |
N.B. sometimes RealTimerServer won't automatically start up again until an error notification is manually closed. To stop this showing up please add the following registry entry to the the Windows registry using regedit.
Location: "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Windows Error Reporting"
Name: DontShowUI
Type: REG_DWORD
Value: 1
Front end examples
The following files are meant to be edited or used as a starting place to implement your own versions. Copies reside on our server, but you will have been given your own copies to experiment with.
simple/eyeshadow.html simple/lipstick.html simple/tan.html |
Very simple example of makeup webpages, with example buttons for switching between makeup. |
mockup/lipstick_range/index.html mockup/urban_decay_eyeshadow/index.html |
A styled example of makeup webpages. |
The following files are not meant to be edited, and are more likely to change in the future as we add more functionality.
mymy-makeup.js | All of the javascript needed to do everything |
mymy.css mymy.scss |
Very basic css or scss to include, which gives very minimal styling to ensure elements such as the loader overlay display correctly. Any can be overwritten depending on the use case. |