teepee changed the topic of #openscad to: OpenSCAD - The Programmers Solid 3D CAD Modeller | This channel is logged! | Website: http://www.openscad.org/ | FAQ: https://goo.gl/pcT7y3 | Request features / report bugs: https://goo.gl/lj0JRI | Tutorial: https://bit.ly/37P6z0B | Books: https://bit.ly/3xlLcQq | FOSDEM 2020: https://bit.ly/35xZGy6 | Logs: https://bit.ly/32MfbH5
teepee_ has joined #openscad
teepee has quit [Ping timeout: 260 seconds]
teepee_ is now known as teepee
J24k45 has quit [Quit: Client closed]
J24k45 has joined #openscad
J24k69 has joined #openscad
J24k45 has quit [Ping timeout: 256 seconds]
LordOfBikes has quit [Ping timeout: 265 seconds]
LordOfBikes has joined #openscad
UltimateCodeWarr has quit [Quit: Client closed]
sinned69158 has quit [Quit: Ping timeout (120 seconds)]
sinned69158 has joined #openscad
sinned69158 has quit [Client Quit]
sinned69158 has joined #openscad
mmu_man has quit [Ping timeout: 255 seconds]
pca006132 has joined #openscad
UltimateCodeWarr has joined #openscad
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lockywolf has quit [Quit: ZNC 1.8.2 - https://znc.in]
crazy_imp has quit [Ping timeout: 252 seconds]
crazy_imp has joined #openscad
<J24k69> f0lkert if you can't use the actual viewport - at least use the scad default view [55,0,25]  which need to be rotated somehow for POV
<J24k69> or more it seems this is already done by the location calculation so rotate <0,0,0> would be adequate
ccox has quit [Read error: Connection reset by peer]
ccox has joined #openscad
<gbruno> [github] UBaer21 opened pull request #5377 (correct rotation view in export_pov.cc) https://github.com/openscad/openscad/pull/5377
mmu_man has joined #openscad
<J24k69> alternativ we could use look_at *-1 and location the same + <0,0,50> then rotation needs +<0,0,180> to match and would allow to change the distance easy ( 50 )
mmu_man has quit [Ping timeout: 255 seconds]
mmu_man has joined #openscad
lockywolf has joined #openscad
lockywolf has quit [Client Quit]
lockywolf has joined #openscad
<f0lkert> J24k69: i'm working on using the actual viewport
<f0lkert> J24k69: I just got sidetracked with other projects
<J24k69> f0lkert no problem - i just wonder which approach is more convenient to use the look at or rotation -  using rotation with a top down view makes it easier to change distcance
<f0lkert> Yes but I need to re-calculate that into a look-at as that's the povray-way afaik :-)
<J24k69> f0lkert from my tests - if you use locaton <0,0,50> look_at <0,0,0> then rotation<-55,0,25+180> works
lockywolf has quit [Quit: ZNC 1.9.1 - https://znc.in]
lockywolf has joined #openscad
<J24k69> also using povray as print service is strange - pov ray show the rendered image - but not the file and if you hit run again it will render the previous file - so you can not change resolution.
<J24k69> also the image is saved in temp
<J24k69> maybe there are some command line options to make this nicer
lockywolf has quit [Quit: ZNC 1.9.1 - https://znc.in]
lockywolf has joined #openscad
<J24k69> f0lkert i also removed the lights and used a areal light - here the comparison https://imgur.com/a/MRnAmwE
<f0lkert> looks nice! maybe we should make this configurable IN the povray-script. like with #define-alike disable/enable.
<J24k69> couldn't we use templates for this - so you could select them like color schemes
<f0lkert> yes, that's possible as well: https://www.povray.org/documentation/view/3.60/236/ <-- #include directive
<J24k69> so we could leave the export geometry only and include a  selectable light/camera file
<f0lkert> yup
<f0lkert> but
<f0lkert> hmmm, and then also a template for 'selected-viewport.inc' or so, so that via a #define the calculated/selected viewport is used.
<J24k69> I noticed the position of the light needs to be relative to the object size - so maybe best placed two Arial lights beside the camera location ( like it is done with real cameras)
mmu_man has quit [Ping timeout: 246 seconds]
<J24k69> If we have a nice working template - we don't need any selections .. the pro user will know how to change the script - and dummy pov user like me are just happy what they get
mmu_man has joined #openscad
<J24k69> f0lkert btw when using more complex geometry i get a lot "polygon not closed - closing" warnings in povray
<f0lkert> that's a thing I don't know how to fix unfortunately
<J24k69> ok
mmu_man has quit [Ping timeout: 265 seconds]
deathonater has joined #openscad
Smeef has quit [Ping timeout: 252 seconds]
mmu_man has joined #openscad
Guest28 has joined #openscad
Guest28 has quit [Client Quit]
<buZz> J24k69: oooo that second one looks so much better, nice
<buZz> J24k69: i'd say one behind the camera, one behind the camera and 'high up a lot' maybe 2x Z of object?
<buZz> so you get a bit better ambience lighting
<J24k69> yes but needs to be before the object as the areal light casting shadows but lighting an object like a point .. bit strange. Also you probably want them not directly in line with  the camera - bit left so shadows show
<J24k69> also making something that works for a cube(10) and for a cube (100) is quite difficult
aiyion1 has joined #openscad
<buZz> hmhm yeah i can imagine
<buZz> maybe f0lkert has a brilliant idea for it ;)
<J24k69> i think if the camera position is calculated we get a good result by positioning the light relative to the camera and scale the intensity and size by distance
<buZz> i hope someday we can use the animation features of openscad with the povray export :P
<J24k69> probably not so difficult as the $t and clock for pov is not so different - easiest would be to use openscad make the animation - else you need to export the $t which is not part of CSG-tree afaik. But using scad for the animation will leave no control over lights material etc.
<buZz> unless its a 'theme' for the export
<J24k69> yes
<J24k69> but for windows seems difficult to get animation render in povray
<buZz> windows?
<buZz> the OS?
<J24k69> yes
<buZz> i wouldnt have expected windows povray to behave differently from all others :)
<J24k69> can't find any documentation but seems the animation need scripting that is OS dependent as povray it self is a comand line tool
<J24k69> hm ok you need to start the ini not the pov file https://www.f-lohmueller.de/pov_tut/animate/anim001e.htm
<J24k69> there is no official tutorial to learn povray .. smh
snaked has quit [Quit: Leaving]
<J24k69> oh  y is z  in povray that explains somethings
J24k17 has joined #openscad
J24k69 has quit [Ping timeout: 256 seconds]
nmr_scientist has joined #openscad
<nmr_scientist> hello. Anybody has experience with using BOLS2. It's a great library but scarcely any tutorials
JakeSays has joined #openscad
ubuntourist has joined #openscad
<pca006132> anyone here is interested in joining a discord server about openscad, manifold, jscad and potentially other code cad stuff?
<teepee> no
<J24k17> no
<teepee> nmr_scientist: for very specific BOSL2 questions, the mailing list is a good place, as at least BOSL2 devs are reading there. good chance for detailed answers
<nmr_scientist> ok
<pca006132> nmr_scientist: or maybe you can ask in https://github.com/BelfrySCAD/BOSL2/discussions
teepee_ has joined #openscad
teepee has quit [Ping timeout: 260 seconds]
teepee_ is now known as teepee
<pca006132> I think my major complaint with irc is that it doesn't work across multiple machines (kind of works with multiple accounts), and recently the latency is getting higher...
<pca006132> it may take up to several seconds for the msg to display on screen, like slower than rendering :P
<teepee> I guess we could try installing a client on our fileserver
<teepee> no such issues here with the delay, not sure why that happens, maybe one of the libera servers is acting srtange
<pca006132> and the weirdest thing is my lab network just outright blocked irc
<pca006132> no idea why, maybe manager hates irc
<teepee> hmm, you are connected via tantalum.libera.chat which is supposedly in Amsterdam
<pca006132> I guess all their servers are in Europe?
<pca006132> maybe US as well?
<teepee> I don't know if they have a list somewhere
<pca006132> now the network is actually fine, I just get that high delay quite often recently
<teepee> they block networks with open relays as those are potential spam entry points
<pca006132> I see
<teepee> what was that client name? thelounge or something?
<teepee> it claims "always connected" mode
thelounge7162 has joined #openscad
<pca006132> makes sense, just feels like a bot for your account, and you connect to the bot
<thelounge7162> hello from the "thelounge" demo instance....
<teepee> uh, that demo instance is running in germany?
ubuntourist has quit [Quit: Leaving]
<thelounge7162> https://thelounge.chat/
<teepee> let me see if they have a docker image
<teepee> neat, docker compose entry, and a very simple one too
<teepee> if you like, I can have a look how to configure that for private mode
<teepee> which (as far as I understand so far) would allow login to sticky sessions
<pca006132> sounds good
<pca006132> thanks a lot
<teepee> hmm, the user manamgement section is a bit unlear
<teepee> oh, oops, haha, next page has the details :-)
mmu_man has quit [Ping timeout: 265 seconds]
<teepee> hmm, how do we call that, maybe just irc.openscad.org
* teepee crosses fingers
<teepee> nice, certificate is fine, but "bad gateways" is not good
<teepee> doh, wrong port
pa has quit [Ping timeout: 244 seconds]
pah has joined #openscad
thelounge-opensc has joined #openscad
<thelounge-opensc> nice :-)
mmu_man has joined #openscad
<teepee> I guess I need to fix some of the configs still, so lets not consider that stable yet :-)
pca006133 has joined #openscad
<pca006133> hello world
<pca006133> yeah it works :)
thelounge-opensc has left #openscad [#openscad]
thelounge7162 has quit [Quit: The Lounge - https://thelounge.chat]
<teepee> cool, if that works well, we can hand out logins to people who are interested :-)
<teepee> I don't think we'll do public mode
<pca006133> any windows users here? can someone help me try https://github.com/elalish/manifold/pull/984#issuecomment-2414253437 ?
<Scopeuk> the lounge is neat, have been using it for a good while now
<Scopeuk> mostly to work around the whole "no good android irc client" issue
<teepee> looks like I have to find out how to have an ident part for the users and also maybe get an answer on the connection limit
<teepee> so far the answer is it's ip dependent :-)
<teepee> ah, they have regional dns names: https://libera.chat/guides/connect
Guest94 has joined #openscad
Guest94 has quit [Client Quit]
<J24k17> 3mf 5mb  pov 250mb ..  that is a bit annoying
<teepee> yeah, it exports the plain mesh currently, there's probably ways for having some sort of hybrid export retaining some of the CSG stuff
<pca006133> and 3mf is zipped... so it may not be fair to directly compare them
<teepee> as it's part of the spec, I think it's ok from user view
<teepee> any application supporting 3mf *must* be able to read the compressed file
<teepee> sooo, firing up the new backup pi... with 2 x 2TB samsung 990 evo ssd :-)
<J24k17> pov integration is so worth it https://imgur.com/a/sinnkua
<Scopeuk> When I was first playing the this studd I used to export stl, pull into a blender model and light it, then render with indigo (before it went proprietary)
<Scopeuk> Pov ray is much quicker and lighter
<Scopeuk> I do still like the unbiased physical renderers, there is magic in watching the image form before you as it adds extra projections and the details fills in
<nmr_scientist> pov integration?
<J24k17> you can export povray and config it as print service - so with a button click (F7) it will render the image
<peepsalot> teepee: found a little bug via clang-tidy, which was complaining because a number instead of bool literal is used here, but I think beyond that the logic is inverted too (it should return false ?)
<teepee> yep, that looks totally out of place
<teepee> return false seems to be the logical thing to do there
<gbruno> [github] thehans opened pull request #5378 (Fix logic error found via clang-tidy check) https://github.com/openscad/openscad/pull/5378
<gbruno> [github] thehans pushed 1 modifications (Fix logic error found via clang-tidy check) https://github.com/openscad/openscad/commit/0fe37b4c7c66051f380bc8cc3246f93c4a9cdcfc
<nmr_scientist> I have no background in C or C++, how easy/hard it would be for me to contribute to OpenSCAD?
<teepee> nmr_scientist: there are certainly areas that do not need very deep knowledge of c++
<teepee> so it mostly depends on what's interesting to you :-)
mmu_man has quit [Ping timeout: 255 seconds]
<teepee> we even have some stuff pending that's currently in python - the library management handling
<peepsalot> teepee: i'm also a little confused about the offscreen-old directory, is there a library i'm missing that would avoid the "old" code?
<nmr_scientist> I basically spent all my time 3d printing, CAD, and building printers. I would need to shift some of my time to development.
<teepee> IIRC that's part of the refectoring by kintel, so I suppose library wise it's probably glew based
<teepee> nmr_scientist: your time, your choice... if you want to do some development stuff, I would be surprised if we can't find something to work on
<teepee> as it's essentially using spare or hobby time, I believe motivation is key, so working on something you care about is the best option
<teepee> hence my question :)
<nmr_scientist> I'll have to think about it. Right now I need to shift much of my attention to working on fusion 360
<nmr_scientist> learning fusion 360, excuse me
<gbruno> [github] cjmayo edited issue #5298 (rightClick menu does not appear on Linux with Qt 6) https://github.com/openscad/openscad/issues/5298
<nmr_scientist> there's a workshop I am planning to do.
<teepee> cool, good luck with the workshop, so you teach other people or got some homework?
<nmr_scientist> I am supposed to be teaching. it wouldn't do me good if I barely know how to use fusion 360. I supposed I could demonstrate OpenSCAD instead.
<teepee> unfortunately we don't have easy to use material for that ready. I'd always love to have that on the website
<teepee> there's the tutorial of course, which is *very* basic stuff but that's probably not simple to convert into a workshop/presentation
<teepee> a couple of days ago we talked about having some web based introduction, but that's going to be quite some work
<teepee> J24k17: nice render!
<nmr_scientist> I am going to be going to makerfaire soon. So I may have to postpone the workshop....Hmm.
<peepsalot> GLAD support is supposed to be the most cutting edge option, right? is that still WIP?
<teepee> yes, GLAD is the way to go, it does allow to have both EGL and X11 in one application
<peepsalot> i got a bunch of redefinition errors after attempting USE_GLAD
<teepee> I'm not sure if the windows build is already active with GLAD
<teepee> oh?
<teepee> I thought that's default on the CI
<teepee> maybe it needs to be enabled only via USE_INCLUDED_OPENCSG (or whatever the exact name is)
mmu_man has joined #openscad
<teepee> hmm, no, CI has none of the flags. my local setup uses -DUSE_BUILTIN_OPENCSG=ON though
J24k17 has quit [Quit: Client closed]
<peepsalot> with -DUSE_GLAD=ON also?
<teepee> no, not in my script calling cmake, and I can't find in the cmakelists that it forces that
<teepee> so I'm a bit confused what the current combination is
<teepee> [cmake] -- OpenCSG submodule: 1.6.0
<teepee> [cmake] -- USE_GLAD/USE_GLEW not specified: Defaulting to GLAD
<teepee> ahh, there it is
<teepee> if (${OPENCSG_VERSION_STRING} VERSION_LESS "1.6.0")
<teepee> set(OPENCSG_GLEW ON)
<teepee> so glad is default, *but* only if opencsg is >= 1.6.0
<peepsalot> ah ok, i had to wipe my build dir after adding USE_BUILTIN_OPENCSG and its working now
<peepsalot> still wish i knew how to avoid these issues which seem internal to boost: /usr/include/boost/function_output_iterator.hpp:14:1: note: ‘#pragma message: This header is deprecated. Use <boost/iterator/function_output_iterator.hpp> instead.’
<peepsalot> 14 | BOOST_HEADER_DEPRECATED("<boost/iterator/function_output_iterator.hpp>")
<peepsalot> i think i tried to stop them at one point but they came back or something
<peepsalot> like 1000x of these dumb warnings every build
<teepee> I thought those were coming from CGAL and the Qt6 fix moving from boost -> std would have fixed that
<teepee> obviously not. maybe there's more stuff using that
<peepsalot> er, my bad, more like 45 of those messages, the other hundreds were from the old GL redefinition stuff i was seeing
<peepsalot> hmm, i have not tried with qt6 yet either, are you saying that would help?
<peepsalot> should uni-get-dependencies.sh be updated with (optional?) qt6?
<peepsalot> i'm on libcgal-dev 5.5.1-1 from your xubuntu 22.04 OBS repos
J24k17 has joined #openscad
<peepsalot> anyways it does seem specific to cgal https://bpa.st/JVXA
<teepee> no, there was just a build fix that sounds related to boost-iterator
J24k17 has quit [Client Quit]
J24k17 has joined #openscad
<gbruno> [github] thehans pushed 1 modifications (Merge pull request #5378 from openscad/modernize-use-bool-literals Fix logic error found via clang-tidy check) https://github.com/openscad/openscad/commit/335ed8eb267e0d3436124e69e5fd5d584d3be02e
<gbruno> [github] thehans closed pull request #5378 (Fix logic error found via clang-tidy check) https://github.com/openscad/openscad/pull/5378
<InPhase> nmr_scientist: I was running a physics course for non-scientists (mostly majors like business and accounting), and I managed to wedge OpenSCAD into the lab portion. Lab 3 at this link was my crash course in OpenSCAD, designed to give the most time-efficient background and basic competence in OpenSCAD that I could to people who have never heard of a syntax error. Then 4 was design the rockets, 5 was an
<InPhase> experiment on the rockets: https://rcolyer.net/show/phy170/
<InPhase> nmr_scientist: You can see the structure and content of that lab03 was extremely arbitrary, but it was a sufficient background for all those non-programmers to get going quickly on the rocket design.
<InPhase> nmr_scientist: When I was advising on the content for the official tutorial, it was the experience of having taught this crash course on it that motivated much of my advice about how the tutorial should work. The tutorial is of course "better" because it's much more thorough and comprehensive, but I'm linking to this anyway to show how these notions can be made very compact with simple reference
<InPhase> examples following highly specific instructions that draw attention to the things they need to understand.
<InPhase> nmr_scientist: Of course, you can go have your workshop participants play with Fusion 360 too. :-P But with the right introduction to it, people can handle OpenSCAD regardless of their background.
UltimateCodeWarr has quit [Quit: Client closed]
mmu_man has quit [Ping timeout: 245 seconds]
<peepsalot> teepee: i'm looking at some more clang-tidy checks that are triggered only once or a few times, and there is this one in some FontList code which I'm confused about https://bpa.st/PTZA
<peepsalot> the message seems like its saying that idx.model() is definitely null? or is it just there's a possibility for it to return null?
<teepee> that file only has 499 lines here
<teepee> oh, probably the header changes
<peepsalot> a bunch of header stuff was edited recently
<peepsalot> yeah
<teepee> hmm, idx can't be null, it's a reference
<teepee> so model() returning has to be the issue
<teepee> default constructor does set it to nullptr
<peepsalot> i could see adding a conditional in case idx.model() is nullptr, but not sure what is appropriate to return; empty string for colStr? no idea for colIdx
mmu_man has joined #openscad
<teepee> if idx is only used from the str call, the str check might already take care of it too
UltimateCodeWarr has joined #openscad
aiyion1 has quit [Ping timeout: 260 seconds]
aiyion1 has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 260 seconds]
teepee_ is now known as teepee
mmu_man has quit [Ping timeout: 252 seconds]