<teepee>
hi DamienMarchal, how did you dump those framebuffer images? My notebook only has an intel gpu, so it's not possible to reproduce the context-menu problem
teepee_ has joined #openscad
<DamienMarchal>
Hi teepee, sadly to get the image from the selection framebuffer I had to modify the code (I wanted to use a gl debugging tools like nsight but failed).
<DamienMarchal>
So I changed the code in MouseSelector::select() to read the whole framebuffer and export it as a png. I also had to change the MouseSelection shader to save more contrasted ID.
<DamienMarchal>
I can makes a branch if this help.
<teepee_>
ah, ok, I was hoping for some neat tool :-)
<DamienMarchal>
(me too)
<teepee_>
I tried renderdoc a while ago but this needs some serious reading of documentation which I did not manage yet
Artea has quit [Remote host closed the connection]
<Scopeuk>
I wouldn't expect a crash from that but openscad will refuse to build it as it isn't valid syntax. to achieve something like that I would probably build a module, will kicks something togeather as a demo
<InPhase>
stealth_: For the simplest example, that seems like extra boilerplate. But the power of that scales nicely with more complicated things.
<stealth_>
InPhase, makes sense
<InPhase>
stealth_: But note the simplest example also could have been: for (i=[0:3]) { odd = i%2; rotate([i*90, odd ? 90 : 0, odd ? 0 : 90]) cylinder(h=10,d=2); }
<InPhase>
The assignment only to avoid repetition.
<stealth_>
InPhase, it doesn't matter how long the code is in openscad right? its not like you are running software, it just needs to render?
<InPhase>
Well I primarily aim first for code that I can parametrically modify, second for code that I can maintain/modify/change easily, and third for performant code that will render in a timely manner. Although that third one has been getting a whole lot easier with the latest codebase.
<InPhase>
The length of the code matters to me only in how it impacts those other parameters.
<InPhase>
Very long code can easily become hard to maintain. But very often slightly longer code is easier to maintain and work with than code golf.
<stealth_>
i just write it so its readable for me
<InPhase>
OpenSCAD performance is unusual compared to other languages, because usually the bulk of the render time has to do with things like the count of faces rather than the actual compute runtime.
<stealth_>
like 1 function per line
<InPhase>
Only in certain niche designs does the compute time start to become significant.
<InPhase>
We have had some compute time overheads in the past, but most of those have been hammered out pretty well, to where it doesn't hit unless you do some wildly recursive computations with very simple render outputs.
<stealth_>
like in C is you write short code it impoves speed vs long code, since its makes copies. in python you have reference so you can write more long/readable code. with openscad i assume it creates some kind of ast before rendering?
<InPhase>
It does.
<stealth_>
cool, so it will rewrite your code into optimal one before rendering then.
<InPhase>
Well I wouldn't go throwing the word optimal around there.
<stealth_>
lol, ok it just rewrite the code.
<stealth_>
i just noticed i had empty `do = [];` which did nothing and didn't call it, and it was in AST
mmu_man has quit [Ping timeout: 255 seconds]
mmu_man has joined #openscad
misterfish has quit [Ping timeout: 264 seconds]
rogeliodh910 has joined #openscad
germ_ has joined #openscad
krushia_ has joined #openscad
dTal_ has joined #openscad
oldlaptop_ has joined #openscad
Alexer- has joined #openscad
gbruno_ has joined #openscad
misterfish[x] has quit [Ping timeout: 246 seconds]
gbruno has quit [Ping timeout: 246 seconds]
rogeliodh91 has quit [Ping timeout: 246 seconds]
germ has quit [Ping timeout: 246 seconds]
dTal has quit [Ping timeout: 246 seconds]
krushia has quit [Ping timeout: 246 seconds]
Alexer has quit [Ping timeout: 246 seconds]
oldlaptop has quit [Ping timeout: 246 seconds]
paddymahoney has quit [Ping timeout: 246 seconds]
gbruno_ is now known as gbruno
dTal_ is now known as dTal
mmu_man has quit [Ping timeout: 272 seconds]
Artea has joined #openscad
paddymahoney has joined #openscad
mmu_man has joined #openscad
paddymahoney has quit [Ping timeout: 246 seconds]
paddymahoney has joined #openscad
luser has joined #openscad
luser has left #openscad [Konversation terminated!]