ruzi Posted June 27, 2014 Share Posted June 27, 2014 i need make simple rotating sphere planet from flat image example what i need, but very light and simple without three.js:https://github.com/jeromeetienne/threex.planets/ Link to comment Share on other sites More sharing options...
lewster32 Posted June 27, 2014 Share Posted June 27, 2014 I'm afraid this isn't so simple with a 2D library, as it involves spherical transforms. There will be examples of spherical mapping in canvas which can be applied to Phaser's BitmapData objects, so I'd Google for those. Link to comment Share on other sites More sharing options...
ruzi Posted June 28, 2014 Author Share Posted June 28, 2014 http://en.wikipedia.org/wiki/UV_mappingits possible converting each point from 2D picture to 3D coordinate, but in picture 1000x1000 pixel need check 1.000.000 pointsexample: http://codepen.io/jonbrennecke/full/zqDaj/maybe phaser can use ready texture map from json file? Link to comment Share on other sites More sharing options...
lewster32 Posted June 28, 2014 Share Posted June 28, 2014 Phaser has no in-built 3D support; this is something that would have to be done via webGL or canvas externally - and as Phaser uses pixi which falls back to canvas on non-webGL devices, you'd need to ensure your routine also worked on both. Link to comment Share on other sites More sharing options...
Recommended Posts