Skip to content

Commit 9efd857

Browse files
committed
Fix assets URLs
1 parent fd811ef commit 9efd857

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { downloadGLTF, type RenderStateChanges } from "@novorender/api";
22

33
export async function main(): Promise<RenderStateChanges> {
4-
const objects = await downloadGLTF(new URL("https://api.novorender.com/assets/gltf/logo.glb"));
4+
const objects = await downloadGLTF(new URL("https://assets.novorender.com/gltf/logo.glb"));
55
return { dynamic: { objects } };
66
}

demo-snippets/guides/views/environments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { createSphereObject, RenderStateChanges, View } from "@novorender/api";
33
const { mesh } = createSphereObject();
44

55
export async function main(view: View) {
6-
const envIndexUrl = new URL("https://api.novorender.com/assets/env/index.json");
6+
const envIndexUrl = new URL("https://assets.novorender.com/env/index.json");
77
const envs = await View.availableEnvironments(envIndexUrl);
88
const { url } = envs[2]; // just pick one
99
view.modifyRenderState({

docs/guides/dynamic_objects.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Dynamic objects are meant for small and lightweight objects, such as 3D widgets
1616

1717
One way to create dynamic object is to load them from a glTF file.
1818
Currently we support [glTF 2.0](https://www.khronos.org/gltf/) (.gltf/.glb).
19-
You can download these from any url, but we do provide a few gltf models on our server: https://api.novorender.com/assets/gltf/
19+
You can download these from any url, but we do provide a few gltf models on our server: https://assets.novorender.com/gltf/
2020

2121
```typescript
2222
var objects = await downloadGLTF(url);

docs/guides/views.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ Arturo's [open source IBL baker](https://github.com/arturoc/skylights) may help
190190
Here, we'll show you how to pick and download one of the default environments.
191191

192192
The view contains a function <CodeLink type="class" name="View.availableEnvironments"/> that will retrieve a list of available environments from the specified source.
193-
We've already included some environments on our `api.novorender.com` server, so that's were we'll point it to.
193+
We've already included some environments on our `assets.novorender.com` server, so that's were we'll point it to.
194194

195195
```typescript
196-
const envs = await View.availableEnvironments("https://api.novorender.com/assets/env/index.json");
196+
const envs = await View.availableEnvironments("https://assets.novorender.com/env/index.json");
197197
const {url} = envs[0];
198198
view.modifyRenderState({ background: { url } });
199199
```

0 commit comments

Comments
 (0)