holy crp that is amazing \_\*
two really exiting news: running on iphone and arkit!!!
@Simeon @John (I didn’t know where to post this so…)
find & replace is driving me crazy lately. Now I noticed it stopped working. I’m on iOS11, iPad Pro 12.9" first model, and latest official Codea release from the app store.
A new build is out!
Sorry for the long delay. This build is very close to what the final version of 2.5 will be.
BETA NOTES
- After installing the new version please make sure to restore examples. Some projects have been renamed and the old ones should be deleted as they will not be removed by this process.
- For feedback / questions please visit codea.io/talk (PM simeon or john for access to the beta thread)
NEW FEATURES - Craft
- A new advanced feature-set with support for 3D environments, lighting, physics, voxels and more!
- OBJ model loading (support for other formats coming in future updates)
- Directional, point and spot lights
- Advanced material system with support for physically based rendering
- Voxel rendering and collisions with support for fully custom block types and scripting
- Advanced noise system for terrain generation and other procedural content
- 3D physics, with support for spheres, boxes, capsules and mesh shapes
New Examples
New Assets
CHANGE LOG
8/09/2017
Examples
- Additional commenting and explanation text
- Added Learn Craft example that includes a simple step-by-step introduction to the basic features of the Craft update
- Renamed Crosser project to Froggy
- Renamed Planet Generator to World Generator
- Modified Planet 3D example to include clouds and some models from CastleKit
- Voxel Terrain
- Added support for tree and cave generation
- Added bedrock layer to terrain
- Added tuneable parameters to modify terrain generation
- Updated several icons
- Updated lighting settings in several projects to account for linear rendering colorspace
- World Generator
- Modified project materials to support linear colorspace
Editor
- New project screen allows you to select Craft template as an option
Assets
- Added more 3D asset packs
Documentation
- Added missing types, properties and methods
Runtime
- scene.voxels
- Added voxel serialization (experimental), see scene.voxels:enableStorage() method for more details
- Several bug fixes and API improvements
- rendering
- Added support for linear color space in the render pipeline and material shaders (gamma correction)
- Added rendering statistic, see scene.renderBatchCount, scene.renderBatchCullCount
Hi @Simeon - awesome update, thanks for correcting project icon issue. Some issues with 3D examples but it is probably due to old examples still retained - world generator/planet generator and froggy//crosser. This will take a lot of trial an error.
Thanks again
Just to check uploading to Dropbox still isn’t working. Gave error “Dropbox.com error 413”.
Not sure if this was corrected in current version.
@Bri_G dropbox should be working — from a quick googling that error can occur when trying to sync a file that is too large. Do you have any very large files in your Codea dropbox folder?
Hi Simeon - not large files - but lots of them - are the graphics associated with them included?
@Simeon @Bri_G I have 2 Dropbox files just over 3MB and had no trouble syncing them.
@dave1707, the text file size of the backup file (when using your backup project) is 2.2 Mb. Just the single text file - graphics would make this significantly bigger. I’ve mentioned before that I think we should have the option of script text and graphics or just the script text alone. After all if you have written the code, it will contain path data for graphics (which could be easily edited) - the option would allow you to choose.
By the way @Simeon - what is the craft button on the create new project file field - is it the template mentioned above?
@John is the ARKit already included?
Second thoughts, the inclusion of project icons would be nice but not essential.
Great update, just wanted to let you know the step number 6 in “Learn craft” is not working. I’m on iPad mini 3 iOS 10.2.1. Pm me for screenshot if you want
Edit: To be more specific, it shows errors upon loading but if you change the step it runs fine. Only step number 6.
@Simeon @John How accurate are the examples that are shown in the build in Craft reference.
@se24vad not yet as this is a iOS 10 build
@dave13259 the example projects are mostly done. The ones in the reference should be ok but let me know if you spot any problems. They are mostly snippets so they won’t all work without a complete project (I.e setting up a scene and updating / drawing it).
@John, @EvanDavis, on the “Learn Craft” example just running steps 1 to 5 gave me a black screen. Are there any dependencies needed for this or is it just a template to add your own features to?
As already pointed out step 6 throws up errors. Running on PadPro 9.7. IOS 10.3.3.
@John,
It looks like the new Craft examples have been added into the existing examples. There are issues with some of the old examples - have significant changes been made to Craft - if so could you point me to a list of changes and are there any updated notes for the latest Craft use.
The Craft package looks really awesome - but it will take me some time to get to grips with it. Thanks.
@Bri_G With Learn Craft, if you run step 1 then run step 6, every step then gives a blank screen. To get it to run properly, run step 1 then close the project. Open the project again and try the other steps except step 6. It’s kind of hard to get a grip on Craft. I have trouble getting things to run and I don’t know enough to easily fix things. It take a lot of looking at the examples.
Thanks for the feedback. I’ll look into why that example isn’t working. I’m planning on doing some long-form tutorials to explain craft for new and existing Codea users. It’s a different model from the standard Codea API; entity component rather than immediate mode / state-based.
If you have anything you would like to know how to do or want an example on I would be happy to explain it.
@John I pulled step 6 (TheSun) out of the project LearnCraft to get it to run in its own project. One of the parameters allows you to change the Sun’s color. Changing the Sun’s color shows correctly on the objects, but when I rotated the scene so I was looking at the Sun, it was still white. Shouldn’t the color of the Sun change with its parameter color. Also there’s a parameter for SunActive. When I slide that off, the Sun doesn’t shine on the object, but I can still see the Sun. Shouldn’t the Sun disappear when it’s not active. These are minor things for now, but they might be important later on.
@dave1707 thanks for the feedback, managed to get some of the examples within Learn Craft working. Impressive!!!
@John
Tried to load one of my old obj files and Codea crashed out. Few questions on that:
- There are several definitions of obj files, what is the exact format used within the Craft Loader?
- Does it include a link to the mtl file or is it incorporated?
- Is there any way we can trap the error and print out a message rather than crashing?
The file I was loading is old and may be out of date - I would just like to know how to change it if possible.