Coder Social home page Coder Social logo

docs-3d-deprecated's Introduction

Cocos Creator 3D User Manual

NOTICE: This repository is no longer maintained because the dedicated Cocos Creator 3d engine have been fully merged into Cocos Creator mainstream version 3.0, so please submit any documentation PRs or issues to Cocos Creator docs repo.

Requirements

This documentation site is powered by GitBook.

You need Node.js and npm to be able to build the site.

To install gitbook:

npm install gitbook-cli -g

Install gulp and other modules:

npm install gulp -g

npm install

Install gitbook plugins:

gitbook install

Preview

To preview the doc, run the following command:

npm run preview
// or
npm run preview -- -o file1,file2...

The first command will build and launch web server to host the site. It will also enable live reload plugin, so your changes to the markdown source file will automatically triggers the rebuild of the docs.

The second command allows you to build the page that you assigned straightly. Please change the file1,file2... to your own file name, then execute preview command. And this command will help you rebuild the .bookignore file which can let you ignore the files that you didn't change when you rebuild the doc.

After generation finished, don't quit server process, run the following command in other terminal context:

gulp prune-left-bar

This will remove unused links from left bar.

Build

If you just want to build the markdown to html, use this command:

npm run build

You can also build the doc for ebook formats (PDF, ePub, mobi), please following this guide:

https://toolchain.gitbook.com/ebook.html

If you need to publish to the website, you'd better build it on Mac. If use Windows, some redundant .md file will also generated.

Content Editing

The markdown source of this book is in language specific folders /en and /zh. Language options are registered in the LANGS.md file.

Index

In each language folder there is an SUMMARY.md file, which contains all the pages to build and also this file serves as a sidebar navigation list. Any markdown source file that are not listed in this index will not be build.

In this index file, just write links to each markdown file in a list. Indented list is for chapters that contains expandable subs. For example:

- [Using Editor](getting-started/basics/editor-overview.md)
 - [Assets](getting-started/basics/editor-panels/assets.md)
 - [Scene](getting-started/basics/editor-panels/scene.md)
 - [Node Tree](getting-started/basics/editor-panels/node-tree.md)

Will create a toggleable chapter title Using Editor. Once clicked all its subs will show up.

Front page

index.md at each language folder is the front page of the doc.

Page content

To change the content of each page, just edit the markdown source files. There's no specific front matter format, just make sure each page has a h1 as the title.

Customize Style and Template

To customize styles, modify zh/styles/website.css and en/styles/website.css.

To change HTML templates, change the content in zh/_layouts and en/_layouts. Check out Templating Guide for gitbook.

Contribution

If you encounters any typo or content problem please report issue in this repo. Pull requests are welcome!

docs-3d-deprecated's People

Contributors

arsen2010 avatar caryliu1999 avatar colincollins avatar ftershock avatar gameall3d avatar genginejs avatar holycanvas avatar jareguo avatar jaycelai avatar jerrywwl avatar jonelau avatar knoxhuang avatar linyunmo avatar msoft1115 avatar ootroyoo avatar pandamicro avatar patricejiang avatar shrinktofit avatar slackmoehrle avatar troublemaker52025 avatar visualsj avatar walzer avatar xunyi0 avatar yanoo1497 avatar yeshao2069 avatar yunhsiao avatar zhefengzhang avatar zhenghuaxing avatar zxg0622 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docs-3d-deprecated's Issues

模型资源

sheji.zip

[Asset DB] Importer exec failed: {assetC:\Users\Administrator\Desktop\MoRi\assets\model\sheji.fbx}
at ImportTask.importAsset (D:\Software\cocos\resources\app.asar\node_modules@editor\asset-db\libs\task.js:1:1355)
at processTicksAndRejections (internal/process/task_queues.js:86:5)

[Asset DB] Error: FBX2glTF 进程以非 0 状态值 3221225477 退出, 意味着该进程可能未成功终止。 这通常是因为 FBX2glTF 在转换源 FBX 文件时发生了内部错误。 若允许,请向 Cocos 团队或 FBX2glTF 作者报告此错误并附上相关的 FBX 文件。进程输出:
at ChildProcess. (D:\Software\cocos\resources\app.asar\builtin\asset-db\dist\importer-3d\importers\utils\fbx2glTf.js:1:1749)
at ChildProcess.emit (events.js:194:13)
at maybeClose (internal/child_process.js:998:16)
at Process.onexit (internal/child_process.js:265:5)

RenderTexture相关接口变更未更新到文档中

URL: sprite-frame

  1. creator 3D 版本: 1.2.0
  2. 文档中未更新的内容:文档末尾出现的跟RenderTexture相关的接口
RenderTexture 是一个渲染纹理,它可以将摄像机上的内容直接渲染到一张纹理上而不是屏幕上。SpriteFrame 通过管理 RenderTexture 可以轻松的将 3D 相机内容显示在 UI 上。使用方法如下:

const cameraComp = this.getComponent(Camera);
const renderTexture = new RenderTexture();
const size = view.getVisibleSize();
renderTexture.reset({
   width: size.width,
   height: size.height,
   colorFormat: RenderTexture.PixelFormat.RGBA8888,
   depthStencilFormat: RenderTexture.DepthStencilFormat.DEPTH_24_STENCIL_8
});

cameraComp.targetTexture = renderTexture;
const spriteFrame = new SpriteFrame();
spriteFrame.texture = renderTexture;
const sprite = this.getComponent(Sprite);
sprite.spriteFrame = spriteFrame;

编辑器

不能看到模型网格,不能操作模型网格,不能向UNITY一样在编辑器里一边游玩一边修改/调摄像头

English doc translation

Module Owner Difficulty Caution Translator Status
concepts @pandamicro Easy   @slackmoehrle done
assets @VisualSJ Normal Links need to be checked @slackmoehrle done
audio-system @YunHsiao Easy   @zhefengzhang done
getting-started @gameall3d Hard   @slackmoehrle testing
material-system @YunHsiao Hard   @YunHsiao done
particle-system @caryliu1999 Hard Chinese doc need review @slackmoehrle done?
physics @JayceLai Normal   @gameall3d done
render-pipeline @caryliu1999  Hard   Ignore ignore
scripting @LinYunMo Normal   @slackmoehrle 1/2 done
tween @JayceLai Easy   @slackmoehrle done
ui-system @JoneLau Normal Refer to 2D, massive work @xunyi0 done
engine/animation @shrinktofit Normal   @slackmoehrle done
engine/event @LinYunMo ItEasy   @slackmoehrle done
engine/renderable @YunHsiao Normal   @slackmoehrle done
editor/animation @yanOO1497 Normal   @slackmoehrle Done but i need to review again
editor/assets @VisualSJ Easy   @slackmoehrle done
editor/component @LinYunMo Easy   @slackmoehrle Done
editor/console @VisualSJ Easy   @zhefengzhang done
editor/engine-cu... @LinYunMo Easy   @xunyi0  
editor/hierarchy @arsen2010 Easy   @slackmoehrle done
editor/inspector @VisualSJ Easy   @slackmoehrle done
editor/preferences @VisualSJ Easy Chinese doc need polish @yanOO1497 done
editor/preview @yanOO1497 Easy   @yanOO1497 done
editor/project @VisualSJ Easy Chinese doc need polish @yanOO1497 starting
editor/publish @yanOO1497 Hard Chinese doc need update @xunyi0 done
editor/scene @gameall3d Normal   @gameall3d Done
editor/terrain @GengineJS Normal   @slackmoehrle done

动画剪辑:[循环模式] 一节中AnimationClip.wrapMode 表格中的WrapMode.PingPng 拼写错误

URL : https://github.com/cocos-creator/docs-3D/blob/master/zh/engine/animation/animation-clip.md

Cocos 文档:https://docs.cocos.com/creator3d/manual/zh/engine/animation/animation-clip.html#%E5%BE%AA%E7%8E%AF%E6%A8%A1%E5%BC%8F

WrapMode.PingPng	从动画开头播放到结尾后,从结尾开始反向播放到开头,如此循环

参考 API文档: https://docs.cocos.com/creator3d/api/zh/enums/animation.wrapmode.html#pingpong
WrapMode.PingPng 应为 WrapMode.PingPong

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.