# Issue with Model Rendering in HOOPS Communicator 2024.6.0

**URL:** https://forum.techsoft3d.com/t/issue-with-model-rendering-in-hoops-communicator-2024-6-0/4100
**Category:** HOOPS Visualize Web
**Created:** [October 10, 2024, 12:32pm UTC](https://forum.techsoft3d.com/t/issue-with-model-rendering-in-hoops-communicator-2024-6-0/4100 "2024-10-10T12:32:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![soukaina.abkari](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@soukaina.abkari](https://forum.techsoft3d.com/u/soukaina.abkari)
#### Post date: [October 10, 2024, 12:32pm UTC](https://forum.techsoft3d.com/t/issue-with-model-rendering-in-hoops-communicator-2024-6-0/4100/1 "2024-10-10T12:32:11Z")

</div>

Hello everyone,

I’m currently facing an issue with rendering a model using HOOPS Communicator 2024.6.0. I have set up the server with the following command:

`./ts3d_sc_server --license-file license.txt --model-search-directories ./converted_models/standard/sc_models --sc-port 50001 --initial-use-duration 0 --log-file sc_server.log --sc-verbose-logging true --exit-on-load-finish false`

In my client-side code, I’m using the `Communicator.WebViewer` to connect to the server via WebSocket. Here is a simplified version of my setup:

```auto
import * as Communicator from './hoops/web-viewer';
import { useState, useEffect } from 'react';
import { v4 as uuidv4 } from 'uuid';

export default function Viewer() {
    const [nodeId, setNodeId] = useState(null);
    const viewerId = uuidv4();

    useEffect(() => {
        const hwv = new Communicator.WebViewer({
            containerId: viewerId,
            endpointUri: 'ws://localhost:50001',
            model: 'bnc'
        });

        hwv.setCallbacks({
            sceneReady: () => {
                console.log('Scene is ready');
                hwv.view.setBackgroundColor(Communicator.Color.white(), Communicator.Color.white());
            },
            connectionError: (error) => {
                console.error('Connection error:', error);
            },
        });

        hwv.start();

        window.addEventListener('resize', () => {
            hwv.resizeCanvas();
        });

        return () => {
            hwv.shutdown();
        };
    }, []);

    return (
        <div id={viewerId} style={{ width: '100%', height: '100%' }}></div>
    );
}

```

Despite the setup, the model does not render in the viewer. The server logs do not show any errors, and the client-side logs indicate that the scene is ready. However, the model is not visible.

I’ve ensured that the WebSocket connection is established correctly and that the model file is available in the specified directory. Could anyone provide insights or suggestions on what might be causing this issue?

Thank you in advance for your help!

---

<div class="post-metadata">

### Author: ![tino](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@tino](https://forum.techsoft3d.com/u/tino)
#### Post date: [October 10, 2024, 1:07pm UTC](https://forum.techsoft3d.com/t/issue-with-model-rendering-in-hoops-communicator-2024-6-0/4100/2 "2024-10-10T13:07:28Z")

</div>

Hello @soukaina.abkari,

Welcome to the forum !

Are you seeing any messages in the web browser dev console?

---

<div class="post-metadata">

### Author: ![soukaina.abkari](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@soukaina.abkari](https://forum.techsoft3d.com/u/soukaina.abkari)
#### Post date: [October 10, 2024, 1:24pm UTC](https://forum.techsoft3d.com/t/issue-with-model-rendering-in-hoops-communicator-2024-6-0/4100/3 "2024-10-10T13:24:02Z")

</div>

Thank you,

I see this regarding ws:

 ![Screenshot 2024-10-10 at 15.18.16](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/e/e9f87b075b0687d583a10818edcbd46b4b7ba48a.png)  
 ![Screenshot 2024-10-10 at 15.19.34](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/4/48831dc74cae8c7a575e3bf9cafb0fa7affb4b96.png)  
 ![Screenshot 2024-10-10 at 15.19.52](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/6/613521d3459094d5de78fc10364e853b97383033.png)  
 ![Screenshot 2024-10-10 at 15.20.13](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/b/b4e4451df78bc9b87d51cd4744a0bc2af6afa19c.png)

after a while the server disconnects

```auto
.../HOOPS_Communicator_2024.6.0/server/bin/macos ────────────── ✔  03:22:18 PM  ▓▒░─╮
╰─ ./ts3d_sc_server --license-file license.txt --model-search-directories ./converted_models/standard/sc_models --sc-port 50001 --initial-use-duration 0 --log-file sc_server.log --sc-verbose-logging true --exit-on-load-finish false

```

```auto
.../HOOPS_Communicator_2024.6.0/server/bin/macos ────────────── ✔  03:22:16 PM  ▓▒░─╮
╰─ tail -f sc_server.log ─╯
0.001:info: settings.workspaceDir=''
0.001:info: settings.sessionToken: set=false
0.001:info: settings.sslCertificateFile: 
0.001:info: settings.sslPrivateKeyFile: 
0.001:info: settings.sslDisableRevocationTest: false
0.001:info: settings.sslCaPath: 
0.001:info: settings.ssrGpuIndex: 4294967295
0.001:info: settings.ssrEgl: false
0.001:info: settings.restFileserver: 
0.002:info: HTTP Ping client disabled via settings
123.629:info: server has received initial data from the WS connection
123.737:info: server disconnect: disconnect

```

Thanks for answering.

---

<div class="post-metadata">

### Author: ![tino](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@tino](https://forum.techsoft3d.com/u/tino)
#### Post date: [October 10, 2024, 1:33pm UTC](https://forum.techsoft3d.com/t/issue-with-model-rendering-in-hoops-communicator-2024-6-0/4100/4 "2024-10-10T13:33:53Z")

</div>

Thanks for providing the additional information.

I just posted a reply to a [similar post](https://forum.techsoft3d.com/t/bad-network-version-when-connection-to-sc-server/4101/2) in the forum regarding a `BAD_NETWORK_VERSION` result.
