califax has quit [Remote host closed the connection]
califax has joined #openscad
J24k10 has joined #openscad
J24k79 has quit [Ping timeout: 256 seconds]
LordOfBikes has quit [Ping timeout: 252 seconds]
L29Ah has joined #openscad
LordOfBikes has joined #openscad
mmu_man has quit [Ping timeout: 252 seconds]
drfff has joined #openscad
califax has quit [Remote host closed the connection]
califax has joined #openscad
mtm has joined #openscad
Guest32 has joined #openscad
Guest32 has quit [Ping timeout: 256 seconds]
paddymahoney has quit [Ping timeout: 265 seconds]
paddymahoney has joined #openscad
paddymahoney has quit [Ping timeout: 252 seconds]
paddymahoney has joined #openscad
paddymahoney has quit [Ping timeout: 246 seconds]
paddymahoney has joined #openscad
paddymahoney has quit [Ping timeout: 260 seconds]
mmu_man has joined #openscad
paddymahoney has joined #openscad
alXsei has joined #openscad
marcus has quit [Remote host closed the connection]
marcus has joined #openscad
alXsei has quit [Quit: Leaving]
guso78 has joined #openscad
<guso78>
teepee, do you think we should extend "automatically starting Cura" ??? We could define an application per-file like PS goes to Paper Printer PDF goes to Acroread, CSV goes to Excel, pov goes to povray ...
<guso78>
I know there will be a huge of fields, actions, settings to be defined for that, but maybe we can do this in an semi-automated fashion ?
L29Ah has left #openscad [#openscad]
cart_ has joined #openscad
cart_ has quit [Remote host closed the connection]
cart_ has joined #openscad
SamantazFox_ is now known as SamantazFox
guso78 has quit [Quit: Client closed]
cart_ has quit [Quit: Konversation terminated!]
UltimateCodeWarr has quit [Ping timeout: 256 seconds]
mtm has quit [Ping timeout: 244 seconds]
mtm has joined #openscad
<Scopeuk>
At that point you are moving to just invoking the os default handler for each
teepee_ has joined #openscad
teepee has quit [Ping timeout: 260 seconds]
teepee_ is now known as teepee
Guest22 has joined #openscad
<Guest22>
Hi, I am new to OpenSCAD.
<Guest22>
I am trying to design an 3d print enclosure for my keyboard.
<Guest22>
I tried to use `surface("image.png")` to provide texture to the 3d model and found it extremely slow.
<Guest22>
I tried with a 128x128 displacement map, it takes me more than 30mins to render, with a lot of noise.
<Guest22>
I have an 8k version of the map but it will takes forever to render.
<Guest22>
I want to show the image to give you an idea, but seems like i can't post image here.
Guest22 is now known as emuemu
<J24k10>
emuemu hi
<J24k10>
have you used the most current version 2024 (snapshot) where manifold is active?
<teepee>
it's a nice start, probably next step would be adding some properties and maybe some scene templates
emuemu has quit [Quit: Client closed]
<J24k10>
the povray editor seems a but rudimentary .. you can't even comment a block
<J24k10>
(and i am not familiar with it)
<J24k10>
fascinating that you have no 3D view of the scene - so you can't see light positions and need to render to see the result. It is like using scad without the main window..
<J24k10>
teepee do you think povray could be added like a 3rd party send to print option .. so the file gets executed automatically (and the image is saved)
<teepee>
you can do that already
<teepee>
the gui calls it "slicer" but it's actually just exporting the 3d mesh to any other program
<J24k10>
yes but the "pov" option is not there for file format
<teepee>
huh? oh, the PRs did overlap and we added it only to the toolbar button
<f0lkert>
J24k10: it isn't always required. this is just a suggestion, you can tweak the script after it has been generated
<J24k10>
f0lkert i am using 2024.10.5 and the model is 90° rotated is that how it should be?
guso78 has joined #openscad
<guso78>
teepee, i think about not only launching one program, but one program - per extension. So you could e.g export PDF to acrobat reader , Postscript to ghostview or lately .pov to povray ...
<teepee>
lets see if that works...
<J24k10>
f0lkert however it is a great extension to scad - thank you for that
<teepee>
guso78: yes, extending the start local app is certainly useful, I see a couple of options
<f0lkert>
J24k10: well the camera is a "suggestion". you can adjust it in the script. you can then also add a background and/or materials and so on. the idea is that you can tweak it afterwards.
<teepee>
also note the comment by Scopeuk, it would be great to be able to select "use whatever the system has registered"
<guso78>
looking at your pr 1 minute back It appears you found a workaround. Can your slicer render povray ?
<teepee>
and it would be nice when we could allow additional parameters to be specified. it's easy to work around for some people, but the casual user probably is not used to writing batch files or shell scripts
<teepee>
guso78: povray can render povray ;-)
<guso78>
yes, if the person is not interested in 3d printing you can add your default slicer to povray :)
<guso78>
not sure if you noticed my yesterdays povray inputs ... my scene is not very well lighted, i hardly see any edges in my povray output
<guso78>
(and i am questioning, if in povray a rectangle has to be specified with 5 pts)
<J24k10>
f0lkert https://imgur.com/a/5t51vvy i think a camera suggestion that is closer to the default view would be helpfull
<f0lkert>
guso78: i have not seen it
<J24k10>
f0lkert can you extract the bounding box data for the camera so the look at is the center of it and location is calculated to get a full view?
<f0lkert>
J24k10: that current look-at *is* the center of the bbox
<J24k10>
oh
<f0lkert>
J24k10: the imgur link sends me to some page with tons of images?
<f0lkert>
the duplication was/is intentional, I got errors of povay else tht the polygons were not closed
<J24k10>
f0lkert https://imgur.com/a/5t51vvy is one image of a cylinder in povray and scad as comparison .. i see that you added a animation variable but the start should be so it looks alike
<f0lkert>
what is going on again I can't open the imgur link?!
<f0lkert>
oh there are special spaces behind it
<f0lkert>
utf-8 spaces
<f0lkert>
J24k10: can you try increasing the distance while reducing the angle? e.g. adjust location< > in camera { } and adding "angle 50" in that camera definition?
<J24k10>
setting the camera rotation <0,0,0> works
<f0lkert>
ok!
<J24k10>
and as it is not simple to start an animation without study povray
<f0lkert>
why not? maybe I should 'emit' a bash-script as well for doing so? can be a one-liner.
<J24k10>
f0lkert maybe "curse of knowledge" means something to you - but without povray seems to be a terrible software
<f0lkert>
maybe something like: for k in `seq 0 10 360` ; do DISPLAY= povray +I../tetris.pov +W1920 +H1080 +Q11 +A0.1 +K$k +O$k.png ; done
<J24k10>
Cyclic_Animation=On" doesn't work .. and where at the start - end in between for the camera
<f0lkert>
that's why I added the rotate<this that> to the script: that you can (well if you know the parameters, mea culpa) relatively easy produce an animation showing most of the object.
<f0lkert>
or maybe as a comment in the pov code
<f0lkert>
but that would be problematic for windows users
J24k10 has quit [Quit: Client closed]
J24k has joined #openscad
<J24k>
f0lkert i think it would be helpful to add several options as comments in the code so uncommenting activates animation or whatever
<f0lkert>
you can't uncomment it in the script, you need to run povray multiple times with e.g. a changing +k parameter
<f0lkert>
so I can add documentation
<f0lkert>
to the script
<teepee>
hmm, just adding POV to the setup options does not work :(
<f0lkert>
but it still needs manually be copied to a command-line/shell-script
<f0lkert>
teepee: what do you mean?
<J24k>
so i added "for k in `seq 0 10 360` ; do DISPLAY= povray +I../tetris.pov +W1920 +H1080 +Q11 +A0.1 +K$k +O$k.png ;" at the end and it just highlight yellow
<teepee>
we have the new "export to local slicer" feature where the rendered mesh is passed to some external program
<teepee>
I've added POV but it seems to generate a binary STL
<f0lkert>
teepee: you could with povray as well. then even animate from withing OpenSCAD
<f0lkert>
not sure if I understand
<teepee>
in the toolbar there are buttons: Preview, Render, Send-to-Printer (cube with up arrow)
<teepee>
try the last one
<teepee>
it allows selection between octoprint, print-a-thing (online print service) and new local slicer
<J24k>
f0lkert »for k in `seq 0 10 360` ; do DISPLAY= povray +I../tetris.pov +W1920 +H1080 +Q11 +A0.1 +K$k +O$k.png ; done« doesn't work either .. "expected 'object or directive'
<f0lkert>
are you sure about the ../tetris.pov path?
<f0lkert>
can you show a screenshot?
<teepee>
oh, there's an additional switch converting the option values to file-type enum
<teepee>
hmm, that needs some refactoring :)
<J24k>
f0lkert yeah replaced that with the actual filename .. still doesn't work - maybe need a different format on windows
<f0lkert>
oooh windows! then that for k in `seq 0 10 360` ; do will probably not work. unless you're doing it under bash or so. but cmd.exe wants something different.
<J24k>
I am sure not many will use that feature if we can't improve usability for it
<f0lkert>
well we could do it from inside of openscad. meaning the invocation of the povray script.
<teepee>
drop the "DISPLAY=" that's not generally working anymore
<teepee>
it's +D and -D for the preview window
<f0lkert>
but note: my intention was never to make it into somehing animation, it was only: here's a povray export, now you can fiddle with the export until it is something you like
<J24k>
but why adding the clock variables for the camera?
<f0lkert>
as a suggestion
<f0lkert>
but now that it is there, indeed maybe we can improve thins
<f0lkert>
things
<J24k>
This will be confusing if you expect people "fiddle until something you like"
<J24k>
i think we need some information comments with examples
<J24k>
/ change rotate<0,0,0> to <X,Y,Z>
<f0lkert>
in the documentation?
<teepee>
I think we want to collect a couple of templates and provide those in a next step for selection
<J24k>
no in the code .. people will not read any documentation
<f0lkert>
or in the console-window?
<J24k>
they want a nice picture and need to know how to change the camera (at least)
<J24k>
the exported *.pov should have some comments to guide a user where to change what .. starting with // camera position is at the end
<f0lkert>
considering that, maybe we should make the camera parameters of the openscad viewport available to the exporting-functions. then we're all set
<f0lkert>
s/all/mostly/
<J24k>
$vpt $vpr $vpd $vpf should be available for that
<f0lkert>
where? in the c++ code I mean
<f0lkert>
is it in a global or so?
<J24k>
teepee?
<f0lkert>
I looked for that in the beginning but could not find it
<teepee>
it's in the result of the script evaluation as the script is allowed to change those
<teepee>
I assume at the time of export the way to get this would be qglview->cam.getVpt();
<teepee>
for command line, it would need to look into the evaluation result
<f0lkert>
let's see what happens
<teepee>
I'll find it eventually... ;-)
<f0lkert>
I see that export_png gets the camera as a parameter
<teepee>
aha, that looks promising this->qglview->cam.updateView(file_context, false);
<othx>
f0lkert linked to YouTube video "device" => 1 IRC mentions
<nihil>
f0lkert: you kids and your fancy "cigarette" rolling machines...
<f0lkert>
nihil: is it that? don't know, I just rendered it from hzeller's github :-)
<nihil>
no clue, just thought it kinda looked like a convoluted take on one
<nihil>
I've known a few stoners who are dumb as a box of used rubbers when it comes to 99% of things in life, but when it comes to creative ways to smoke weed, they'll out-engineer half the staff at NASA to get it done
<f0lkert>
hehehe :-)
ali1234 has quit [Remote host closed the connection]
<f0lkert>
well, povray is a raytracer. povray can do the same as openscad (subtracting a sphere from a box for example) but then spends a bit of time to calculate how the rays of light go around the "scene".
<f0lkert>
so ideally at some point we'll just pick the AST and convert it directly to povray
<InPhase>
f0lkert: It might be nice to see what happens to them on a better render. :)
<nihil>
ok, now tested in 10.05, same behavior
<f0lkert>
InPhase: indeed!
<InPhase>
f0lkert: If you are shopping for test models.
<nihil>
and colors are back in render with it in manifold
<nihil>
odd that it would revert back
<f0lkert>
InPhase: note that for material I chose plastic (ish)
<nihil>
past several dev builds didn't do that
<teepee>
nihil: manifold moved from experimental feature to official backend
<InPhase>
f0lkert: I'm going to go run some errands, but if there's a flaw in that math, let me know. I'll be around. I'm a good vector math consult for worthwhile endeavors, and I support efforts for pretty renders.
<nihil>
ah
<teepee>
new backend swiitch now
<nihil>
I have to say the colors in render is one of my favorite recent additions
<InPhase>
f0lkert: Probably if something is amiss it's a misunderstanding level issue rather than a typo, so any details you can provide, or simple testcases illustrating the dynamics of the problem, would be helpful.
<nihil>
nothing more heartbreaking than spending a lot of time making something pretty, then having it turn into a giant blue blob when you render
<nihil>
measurement probably tops that though
<nihil>
no more including a ruler and translating/rotating it all over the screen to measure shit
<f0lkert>
InPhase: thanks for your help! I'm going to bed now though, it's around 23:00 here. but i'll get at it tomorrow.
<InPhase>
Sure. Night. :)
kintel has joined #openscad
<kintel>
nihil FYI: Colors in CGAL rendering is partially happening due to internal refactoring; we just accidentally inherit colors fpr objects not touched by CGAL since colors are not part of our internal mesh format. We should explicitly kill colors in CGAL mode to be more consistent.
<kintel>
teepee I'm refactoring the 3D print upload stuff, so if you're looking for new features like file format choice, we could do it all at the same time
<teepee>
kintel: not really new feature, but instead of enum + multiple places of mapping from string to enum, have it all in some sort of format class
<teepee>
so we don't need to go through all the code when adding a new format
<teepee>
we added it in 2 other places but missed those (also due to time overlap in the PRs, but still...)
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
UltimateCodeWarr has joined #openscad
kintel has joined #openscad
<kintel>
teepee right, that's orthogonal to my refactoring. I was more thinking along the lines of adding things like PovRay as a "local slicer" and configuring what file format to send to it
<teepee>
yes, what guso mentioned earlier
<teepee>
povray as such works in minimalistic way
<teepee>
but 2 targets means full reconfiguration
<teepee>
I guess that means we'd like to have a dynamic list of targets
<kintel>
yeah, if we want multiple registered apps, but a single app + selectable file format is a start
<kintel>
If we really want to be fancy: scan the filesystem for apps we support and auto configure :)
<kintel>
selectable file format would be interesting for external print services too
<teepee>
it's probably better not to push too much stuff into a change
<teepee>
I still have the 3mf color import to finish up, so that will take a while
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JordanBrown has joined #openscad
<JordanBrown>
InPhase you mentioned that TPU is indestructible. I just had some friends ask for something in TPU, to make it more durable than PLA. It's built entirely out of ~2mm rods forming a line drawing. Since I made a few spare, I tried to pull one apart... and failed. Wow.
mmu_man has quit [Ping timeout: 248 seconds]
<UltimateCodeWarr>
Nylon, especially Carbon Fiber Nylon is one of the strongest filaments right?
<buZz>
cf anything is amazing tough
<JordanBrown>
I have no experience with it. I'm probably 99% PLA, 0.8% ABS, 0.2% TPU.
<buZz>
nylon is quite flexible and forgiving and remembers its shape somewhat
<UltimateCodeWarr>
I had asked chat GPT to show me the relative strengths of select filaments. Nylon was at the top. As soon as infill dropped below 50%, then strength fell off rapidly (as opposed to linearly).