Git Product home page Git Product logo

Comments (8)

ekzhang avatar ekzhang commented on June 5, 2024

Can you try compiling with optimizations turned on? The cylinder example should be fairly quick, since it only takes 1 sample. Either add run with --release or add this to your Cargo.toml:

[profile.dev]
opt-level = 2

from rpt.

LeandroMarceddu avatar LeandroMarceddu commented on June 5, 2024

Aha, thanks for this. Adding the profile.dev section resulted in an error this time, instead of just hanging. Appended below. Sadly this tells me nothing, but it might tell you something.

�[31mThe application panicked (crashed).�[0m
Message:  �[36mcould not set the provided `Theme` via `color_spantrace::set_theme` globally as another was already set: InstallThemeError�[0m
Location: �[35mC:\Users\leand\.cargo\registry\src\github.com-1ecc6299db9ec823\color-eyre-0.5.11\src\config.rs�[0m:�[35m736�[0m

  ���������������������������������� BACKTRACE �����������������������������������
  �[96m                              â‹® 13 frames hidden â‹®                              �[0m
  14: �[32mcore::result::Result<T,E>::expect�[0m�[90m::h743b1205f56c1877�[0m
      at �[35m/rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c\library\core\src/result.rs�[0m:�[35m1022�[0m
  �[96m                              â‹® 3 frames hidden â‹®                               �[0m
  18: �[91mplaterflow::processes::gen_thumb�[0m�[90m::ha1900fff45d67346�[0m
      at �[35mD:\Projects\PlaterFlow\src\processes.rs�[0m:�[35m159�[0m
  19: �[91mplaterflow::processes::plater::run�[0m�[90m::h92ba25d708f86cc6�[0m
      at �[35mD:\Projects\PlaterFlow\src\processes.rs�[0m:�[35m149�[0m
  20: �[91mplaterflow::main�[0m�[90m::h29ff971bb18bb419�[0m
      at �[35mD:\Projects\PlaterFlow\src\main.rs�[0m:�[35m34�[0m
  21: �[32mcore::ops::function::FnOnce::call_once�[0m�[90m::h77012c5fd1eb9014�[0m
      at �[35m/rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c\library\core\src\ops/function.rs�[0m:�[35m227�[0m
  �[96m                              â‹® 14 frames hidden â‹®                              �[0m

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.

from rpt.

ekzhang avatar ekzhang commented on June 5, 2024

It looks like you're calling color_eyre::install() twice, could you fix that?

from rpt.

LeandroMarceddu avatar LeandroMarceddu commented on June 5, 2024

It looks like you're calling color_eyre::install() twice, could you fix that?

I'll be damned. That did it; at least this time it outputs something although nothing even remotely close to the STLs, but progress is progress. The first generates an image of a starry sky for some reason, the second is just black. If I want to batch generate several STLs, what is the best way to clear everything? As I have a feeling this is happening with the second STL. (added both STLs and generated images here)

from rpt.

LeandroMarceddu avatar LeandroMarceddu commented on June 5, 2024

Figured it mostly out, taking a crash course on 3D Vectors right now to get everything set up properly. Thanks; I'll close this.

from rpt.

ekzhang avatar ekzhang commented on June 5, 2024

No worries! Glad you figured it out. If you're generating thumbnails within an application on demand, then you may want to try out a faster rendering algorithm, since path tracing is mostly used for ahead-of-time renders because it's so expensive.

Some links that might be useful: https://arewegameyet.rs/ecosystem/3drendering/ and https://github.com/asny/three-d

from rpt.

LeandroMarceddu avatar LeandroMarceddu commented on June 5, 2024

from rpt.

ekzhang avatar ekzhang commented on June 5, 2024

3D graphics isn't easy!

from rpt.

Related Issues (4)

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.