You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.
I am trying to import glb file and add the imported object to scene but I do not know hot to achieve this because the object that I have imported does not have any geometry property <ng-container *ngIf="character$ | async as character"> <ngt-mesh receiveShadow castShadow [ref]="boxRef.ref" [position]="position" [rotation]="rotation" [material]="character.materials['VanguardBodyMat']" [geometry]="$any(character.nodes['Scene']).geometry"> </ngt-mesh> </ng-container>
Do you know how to import this object https://cdn.jsdelivr.net/gh/tamani-coding/threejs-character-controls-example@6a5ea138d6ea45455ef18cf5502df8289cd42137/src/models/Soldier.glb
The text was updated successfully, but these errors were encountered:
It works with primitives but the question is how set a castShadow & receiveShadow <ng-container *ngIf="model"> <ngt-primitive receiveShadow castShadow [object]="model.scene" (beforeRender)="onBeforeRender($event)"></ngt-primitive> </ng-container>
Hi,
I am trying to import glb file and add the imported object to scene but I do not know hot to achieve this because the object that I have imported does not have any geometry property
![image](https://user-images.githubusercontent.com/10407594/184847835-a95133a9-8981-4309-8b8f-2f77753e4137.png)
<ng-container *ngIf="character$ | async as character"> <ngt-mesh receiveShadow castShadow [ref]="boxRef.ref" [position]="position" [rotation]="rotation" [material]="character.materials['VanguardBodyMat']" [geometry]="$any(character.nodes['Scene']).geometry"> </ngt-mesh> </ng-container>
Do you know how to import this object
https://cdn.jsdelivr.net/gh/tamani-coding/threejs-character-controls-example@6a5ea138d6ea45455ef18cf5502df8289cd42137/src/models/Soldier.glb
The text was updated successfully, but these errors were encountered: