GithubHelp home page GithubHelp logo

vtk file rendering? about paraviewweb HOT 9 CLOSED

kitware avatar kitware commented on August 12, 2024
vtk file rendering?

from paraviewweb.

Comments (9)

jourdain avatar jourdain commented on August 12, 2024 1

ParaViewWeb is meant to be used with Paraview or VTK on the server side for data processing and rendering. So by using either you will be able to read anything that they can read such as a VTK file. But that setup usually require a server with a GPU for good performance. See RemoteRenderer example for more details.

But if you are looking at a more "full JavaScript" for doing so, you should look for vtk.js or even ParaView Glance.

from paraviewweb.

jourdain avatar jourdain commented on August 12, 2024 1

The issue is right there:

this.reader = vtkHttpDataSetReader.newInstance();
this.reader.setUrl(`http://localhost:3000/Assets/cube_ascii.vtp`).then(() => {

The reader for vtp file is not vtkHttpDataSetReader but this one instead.

from paraviewweb.

jourdain avatar jourdain commented on August 12, 2024 1

Please be more careful when reading/writing code. They are a lot of examples out there that works on the vtk.js site. I know it is not obvious for beginners, but as much as we love helping the community it is time consuming to figure out the simple typo on random codes. Like the one below vtkOpenGLRenderWindow != FullScreenRenderWindow...

import vtkOpenGLRenderWindow from 'vtk.js/Sources/Rendering/Misc/FullScreenRenderWindow';

I guess you should look at that specific example

from paraviewweb.

AugmentedFoul avatar AugmentedFoul commented on August 12, 2024 1

Oh wow,

Sorry about that. That seemed to fix it thank you very much.

from paraviewweb.

jourdain avatar jourdain commented on August 12, 2024 1

I can't debug your code... The issue is not in vtk.js. I would suggest more investigation on your end...

from paraviewweb.

AugmentedFoul avatar AugmentedFoul commented on August 12, 2024

This is my attempt to use straight vtk.js but it is still not working. Im getting an error saying:
TypeError: view.setRenderable is not a function
image

https://pastebin.com/ZCxjnLrm

from paraviewweb.

AugmentedFoul avatar AugmentedFoul commented on August 12, 2024

I made the edit but the same problem still persists. That said the vtp file is actually showing up in the network tab so it did probably fix a future problem.

from paraviewweb.

AugmentedFoul avatar AugmentedFoul commented on August 12, 2024

Ok I thought it was fixed but not quite, there still seems to be an issue with the reader. I keep getting an error.

I thought it was a sync issue, so I used loadData().then, however it is still not working.
image

from paraviewweb.

AugmentedFoul avatar AugmentedFoul commented on August 12, 2024

Sorry,

Thought it wouldnt hurt to ask. Thanks for all the help

from paraviewweb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.