-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(app): Improve docs examples with code group to avoid confusion #463
Conversation
* chore(deps): update deps to latest * chore: on demand invalidation composable with prop change detection * feat: on-demand orbit-controls * feat: on-demand camera controls * feat: invalidate also on autoRotate * feat: on-demand map controls and refactor * feat: on-demand transform controls * feat: on-demand keyboard controls * feat: on-demand keybaord controls * chore: added demo suffix to control pages to avoid confusions * feat: on-demand pointer lock controls * feat: on-demand scroll controls * feat: on-demand levioso * feat: correct orbit controls auto rotate invalidation * feat: on-demand text3d * feat: on-demand mouse-parallax * feat: on-demand fbo and size watcher refactor * chore(playground): refactor to use useLoop and sub components * chore: remove unused import for lint fix * chore(playground): refactor lensflare demo to use useLoop * feat: on-demand sampler * feat: on-demand invaldiation on reflector prop change * chore: added render activity graph and try to make on-demand work on AnimatedSprite * chore: renamed positional audio demo * chore: on-demand smoke * feat: on-demand precipitation * feat: on-dermand stars * feat: on-demand Environment * feat: on-demand sky * feat: on-demand Ocean component * chore: testing on-demand on fit * feat: on-demand Wobble Material * feat: on-demand invalidation holographic material * feat: on-demand reflection material * feat: on-demand custom shader material * chore: rename bakeshadows demo * chore: misc route * chore: ci, update action setup * chore: update Tres core * fix: reimplement ContactShadows for v4 core * docs: change link name * fix(ContactShadows): add invalidate to updates --------- Co-authored-by: alvarosabu <alvaro.saburido@gmail.com>
* feat(Sparkles): invalidate on update * chore: fix linter error * refactor(Sparkles): remove renderMode predicate before invalidate
* chore: remove `useOnDemandInvalidation` on Levioso * chore: remove composable `useOnDemandInvalidation` * chore: remove composable from Ocean * chore: remove composable on Precipitation * chore: remove composable from sky * chore: remove from Fit * chore: remove from smoke * chore: remove from orbit-controls * chore: remove composable from Text3D * chore: remove from mouse parallax * chore: remove composable from Reflector * chore: only needed fbo invalidation * chore: remove composable from useSurfaceSampler * chore: remove composable from all controls * chore: add invalidation on loop * chore: remove prop speed check on loop for Levioso * chore: remove invalidateOnDemand on MapControls * chore: remove `invalidateOnDemand` from Keyboard controls * chore: add invalidate on fit method, remove watch props
This PR adds an `autoRender` flag to `FBOOptions`. This flag allows consumers of `useFBO` who want to take control of when and where to render the render target instead of always rendering it with the default scene and camera. Co-authored-by: Alvaro Saburido <alvaro.saburido@gmail.com>
Run & review this pull request in StackBlitz Codeflow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea @JaimeTorrealba, hopefully this will educate community about async usage on cientos.
I just added minor suggestion on the naming of components.
Thanks for the PR
docs/guide/loaders/use-fbx.md
Outdated
<script setup lang="ts"> | ||
import { TresCanvas } from '@tresjs/core' | ||
import { OrbitControls } from '@tresjs/cientos' | ||
import AsyncComponent from './AsyncComponent.vue' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import AsyncComponent from './AsyncComponent.vue' | |
import TheModel from './TheModel.vue' |
docs/guide/loaders/use-fbx.md
Outdated
<TresPerspectiveCamera :position="[11, 11, 11]" /> | ||
<OrbitControls /> | ||
<Suspense> | ||
<AsyncComponent /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<AsyncComponent /> | |
<TheModel /> |
docs/guide/loaders/use-fbx.md
Outdated
</TresCanvas> | ||
</template> | ||
``` | ||
```vue{2,6} [AsyncComponent.vue] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```vue{2,6} [AsyncComponent.vue] | |
```vue{2,6} [TheModel.vue] |
docs/guide/loaders/use-gltf.md
Outdated
<script setup lang="ts"> | ||
import { TresCanvas } from '@tresjs/core' | ||
import { OrbitControls } from '@tresjs/cientos' | ||
import AsyncComponent from './AsyncComponent.vue' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import AsyncComponent from './AsyncComponent.vue' | |
import TheModel from './TheModel.vue' |
docs/guide/loaders/use-gltf.md
Outdated
<TresPerspectiveCamera :position="[3, 2, 5]" /> | ||
<OrbitControls /> | ||
<Suspense> | ||
<AsyncComponent /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<AsyncComponent /> | |
<TheModel /> |
docs/guide/loaders/use-gltf.md
Outdated
</TresCanvas> | ||
</template> | ||
``` | ||
```vue{2,6} [AsyncComponent.vue] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```vue{2,6} [AsyncComponent.vue] | |
```vue{2,6} [TheModel.vue] |
<script setup lang="ts"> | ||
import { TresCanvas } from '@tresjs/core' | ||
import { OrbitControls } from '@tresjs/cientos' | ||
import AsyncComponent from './AsyncComponent.vue' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import AsyncComponent from './AsyncComponent.vue' | |
import TheVideoTexture from './TheVideoTexture.vue' |
/> | ||
<OrbitControls /> | ||
<Suspense> | ||
<AsyncComponent /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<AsyncComponent /> | |
<TheVideoTexture /> |
</TresCanvas> | ||
</template> | ||
``` | ||
```vue{3,8,13} [AsyncComponent.vue] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```vue{3,8,13} [AsyncComponent.vue] | |
```vue{3,8,13} [TheVideoTexture.vue] |
✅ Deploy Preview for cientos-tresjs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@alvarosabu I have fixed this one, please let me know if everything good |
No description provided.