View in #help on Slack
@Hyungkyu_Lee: hey, happy to join this slack… I’m enjoying the amazing library update of conrnerstone3D.
Can I have a quick question for the init to render the 3D viewport?
when I tried to initialize the 3D viewport on pure latest react app (e.g. React18+Typescript5+webpack), it shows error to activate GPU and type error of tier. can I have a guidance from the experts regarding how I can handle this, please? Thanks.
@Alireza_Sedghi: you are calling init twice for some reason, maybe you have it in a useEffect or something?
@Hyungkyu_Lee: yes… currently, i put it on the react render simply. Definitely, I need to fine-tune of the state management for the later.
I’m checking the all demo example is working fine or not under the latest set of npm packages at this moment.
stackViewport looks working fine, though. 3D viewport looks drawing nothing…
It looks the demo sample of 3D rendering should be out of the box of ReadNode. I don’w know, though. It’s drawing well on the out of React reander.
Is there any component wrapper/library to use the cornerstone3d inside React component?
I can see a npm packge of ‘react-cornerstone-viewport’, though. (https://github.com/cornerstonejs/react-cornerstone-viewport) It looks not supporting the latest cornerstone library, and I’m not sure if it’s also managed by cornerstone.js and OHIF.
@Alireza_Sedghi: We don’t use that library anymore
@Hyungkyu_Lee: Thanks… is there any plan of cs3d to release a typing library for typescript ?
@Alireza_Sedghi: we already ship our types