<kintel>
JordanBrown I tried to look at it, but I'm a bit out of touch with the logging stuff and I didn't quite catch the gist of it : /
<ebo>
I am starting to focus on learning learning more than the basics of OpenSCAD. Are there libraries around for, I guess they are called. "vitamins"? If not, I will start one.
mmu_man has quit [Ping timeout: 272 seconds]
mmu_man has joined #openscad
<ebo>
As a note, I just stumbled onto NopSCADlib in the list archives. This looks very licely put together.
<kintel>
pca006132 In terms of preserving manifoldness of user-provided polyhedrons(); Do you have an example/idea of a scenario where this is important, and what would happen if the manifold is "collapsed" by merging vertex positions into a single index?
<kintel>
^ I'm interested in building some end-to-end use-cases/tests to better understand the opportunity
GNUmoon has quit [Remote host closed the connection]
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
J24k15 has quit [Quit: Client closed]
J24k15 has joined #openscad
TheCoffeMaker has quit [Ping timeout: 256 seconds]
TheCoffeMaker has joined #openscad
drkow has joined #openscad
drfff has quit [Ping timeout: 240 seconds]
peeps[work] has quit [Remote host closed the connection]
peeps[work] has joined #openscad
jonasbits has quit [Quit: No Ping reply in 180 seconds.]
jonasbits has joined #openscad
J24k15 has quit [Quit: Client closed]
J24k15 has joined #openscad
pca006132 has joined #openscad
<pca006132>
kintel: just consider the two cubes example, the one with exactly one vertex touching
guso78k has joined #openscad
arebil has joined #openscad
<guso78k>
kintel you are right: the Renderes are redone on each render.
<guso78k>
But now it appears to me that when I do preview, not only the OpenCSGRenderer is initialized, but also the ThrownTogetherRenderer afterwards. This is not only little waste of resources but also means, that OpenCSG is used with GL-Engine setup for ThrownTogether Renderer.
<guso78k>
This works in most of the cases as their GL setup is identical, but I believe my textutre setup has spot a difference. Generally I feel we should only initialize those renderers which are actually being displayed and used. what do you think ?
<guso78k>
at least my segfault is gone when i comment ThrownTogether intizlization in MainWindow.cc
guso78k has quit [Quit: Client closed]
guso78k has joined #openscad
<guso78k>
the segfault of this->opencsgRenderer->getShaderInfo() made me crazy because opencsgRenderer was not null!
<guso78k>
appears that the beeing-managed ptr had an issue ?
hyvoid has quit [Quit: WeeChat 4.2.1]
adigitoleo has quit [Remote host closed the connection]
adigitoleo has joined #openscad
mmu_man has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 255 seconds]
teepee_ is now known as teepee
mmu_man has quit [Ping timeout: 272 seconds]
mmu_man has joined #openscad
mmu_man has quit [Ping timeout: 264 seconds]
mmu_man has joined #openscad
JamesLightsword has joined #openscad
snaked has quit [Quit: Leaving]
Aussie has joined #openscad
<Aussie>
Hallo this is my first use of this medium. Can someone show me how to store a variable c in an If condition. Like a=2; b=3; if (a>b) c=b; else c=a; this is to ensure that if a dimension is given to an object this can be used in the object.
mmu_man has quit [Ping timeout: 268 seconds]
<guso78k>
every if statement is an enclosure and after if your changes is lost again. maybe you want someting like : c=(a>b)?b:a ;
<guso78k>
ternal operator
<Aussie>
shall try, thanks guso78k
J24k15 has quit [Quit: Client closed]
J24k15 has joined #openscad
Aussie has quit [Ping timeout: 250 seconds]
moonlight has joined #openscad
Aussie has joined #openscad
mmu_man has joined #openscad
kintel has joined #openscad
<kintel>
guso78 I'm not sure why we initialize the two renderers together. Ideally, they shouldn't influence each other though, but there may be bugs/weaknesses there.
guso78k has quit [Quit: Client closed]
Aussie has quit [Quit: Client closed]
<kintel>
One day I will find time to clean up renderers, still have work to do with the VBO mess..
guso78k has joined #openscad
mmu_man has quit [Ping timeout: 252 seconds]
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<guso78k>
propably a historical artefact. At the time when ThrownTogetherRenderer was added, nobody noticed as it just worked ;)
<pca006132>
btw, curious why we still have GLX instead of just relying on EGL?
mmu_man has joined #openscad
kintel has joined #openscad
<kintel>
pca006132 Not every system has EGL
<kintel>
..and especially GLEW doesn't work with EGL on most systems, and OpenCSG uses GLEW
<pca006132>
ah
<pca006132>
this is why I don't usually touch graphics :/
<pca006132>
wish wgpu can make these things simpler, iirc wgpu is cross platform?
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kintel>
pca006132 Heh, let's see who wins the native WebGPU API war. I haven't started looking at that yet; waiting for things to mature a bit first..
mmu_man has joined #openscad
<kintel>
..and Qt integration will be fun :/
<pca006132>
I wonder if it makes sense at some point to just ditch Qt...
<pca006132>
I feel like native GUI doesn't worth that much of trouble
<pca006132>
though I only have very limited GUI programming experience
<pca006132>
probably 6 years ago when I was writing simple C# programs
<kintel>
No great alternatives to Qt for native apps though. Something Electron-like could work, but there are probably enough missing features that it would be significant work to deal with that across platforms.
arebil has quit [Quit: arebil]
guso78k has joined #openscad
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<othx>
guso78k linked to YouTube video "A Tesseract overtaking me in time" => 1 IRC mentions
<guso78k>
it has 8 Faces and 16 Corners
pbsds has quit [Ping timeout: 264 seconds]
teepee_ has joined #openscad
pbsds has joined #openscad
teepee has quit [Ping timeout: 255 seconds]
teepee_ is now known as teepee
cart_ has quit [Quit: Konversation terminated!]
Guest63 has joined #openscad
Guest63 has left #openscad [#openscad]
science400 has joined #openscad
guso78k has quit [Quit: Client closed]
<science400>
Hi. I don't know the etiquette here, but I can't get OpenSCAD to run. I'm using a development snapshot and it crashes every time I open a file. Eventually I got it to load a new Untitled.scad and the window is completely blank, but I can click on the file menu and open open preferences etc. Then as soon as I open a file it just crashes with no
<science400>
error message.
<teepee>
which OS is it?
<science400>
Windows 10. I've tried on both my work computer and personal laptop with the exact same problems.
<teepee>
any graphics drivers installed?
<teepee>
maybe try on command line with: openscad.com --info
<science400>
On my work computer I updated the Nvidia drivers this morning working on the issue. My laptop has whatever integrated Intel drivers, but it said they were up to date.
<teepee>
mayybe I should make that cleanup process a bit nicer
<InPhase>
science400: Another thing to try then, is use that link teepee just gave, and grab a nightly release from a week or a month ago, and see if that fixes it. If you can figure out exactly where the line is between which it works and doesn't work, then it can probably be fixed rapidly.
<science400>
The stable buiild 2021.001 seems to work. I also tested the snapshot 2024.01.14
<science400>
That was the oldest Windows zip I could find unless I missed something.
<InPhase>
OpenSCAD-2024.02.20-x86-64-Installer.exe Like this, and on down.
<InPhase>
I bet it's a recent change, or else someone would have complained if it's affecting all Windows.
<teepee>
I think J24k15 usually runs a recent windows snapshot
<J24k15>
i do
<InPhase>
J24k15: Can you check 02-22's official build?
<J24k15>
02-19 works
<science400>
2024.02.22 is what I spent most of my time today trying to get working
<science400>
Same problem with 2024.02.20
<InPhase>
My suspicion is 02-20's VBO work.
<InPhase>
We just need science400 to conclude 02-19 works, or J24k15 to conclude 02-20 fails. :)
<InPhase>
science400: And if so, then you can just stick with 02-19 for a few days. It probably wouldn't take long to resolve if this is the issue.
<science400>
02-19 doesn't seem to be working either. I'm guessing the problem is on my side, but I have no idea what the problem would be.
<teepee>
did you reboot after installing GPU drivers?
<science400>
A couple times.
<InPhase>
science400: So your exact failure steps are: Create a blank Untitled.scad, then go to file, open and load that Untitled.scad, and it crashes?
<InPhase>
science400: Or are there other steps?
<InPhase>
science400: Are you putting something in the Untitled.scad? We need to make sure the same triggering conditions are used between systems.
guso78k has joined #openscad
<teepee>
the viewport going black usually means the OpenGL context creation did fail which then probably crashes on any attempt of displaying things
<science400>
Initially it would start with a splash screen with the create new file or open recent option. Trying to open any file from that would result in a crash.
<InPhase>
science400: Does the problem only happen with the splash screen? Or does it also happen from file/open?
<guso78k>
teepee do you believe its crashing from an assert or an nullptr ?
<J24k15>
InPhase 02-22 works fine
<teepee>
that should not be debug builds, so asserts should be disabled
<science400>
Then I ticked the box that says don't show again and the next time it opened up a window titled Untitled.scad. That window is completely blank white. But I can click on File->Save and I saved it as a test.scad. I was able to close and reopen that file.
<science400>
I then opened test.scad in a separate text editor and saved cube(10) and it immediately crashed the OpenSCAD window.
<science400>
The menu bar doesn'
<science400>
t even show up, but it is clickable and the preferences window can even open mostly normally.
<J24k15>
When opening the windows are white for some seconds but should be filled with color and code soon after
<science400>
Nope, nothing ever loads. But if I hover in the right place I get drag handles for the different sections that are supposed to be there.
<J24k15>
science400 can you try to rename openscad.exe to openscad1.exe and then click and try again?
<teepee>
oh, I remember that trick
<J24k15>
I had some strange experience that windows keeps information even if the process is killed ( but reboot should also help)
<science400>
That didn't seem to do anything.
<J24k15>
you can try to use the command line without the gui to see if the gui is what causes the problem
TheCoffeMaker has quit [Ping timeout: 264 seconds]
<science400>
That looks like it made an stl file
<J24k15>
so probably something with the gpu then
<J24k15>
and display related
<science400>
That seems to be it. But I'm not sure why it would be the same on my two different computers. Any suggestions on how to go about narrowing it down? Google hasn't been very helpful with this specific problem.
<guso78k>
are your computers up-to-date ? did you install all the updates which microsoft offers you ?
<science400>
As far as I can tell everything is updated.
science400 has quit [Quit: Connection closed]
<guso78k>
can you try to view your generated STL file in online via e.g. https://www.viewstl.com/ ?
<guso78k>
does this work ?
<J24k15>
probably something is installed on both computers that is causing it
<teepee>
ping pca006132 - gsoc seems to be confirmed now
<guso78k>
KiCad before OpenSCAD ?
<guso78k>
have to learn KiCad, Too :')
<teepee>
kicad is nice, and Aisler supports it natively, very useful
kintel has joined #openscad
<guso78k>
yeah, my collegue use it too for pcb design.
<kintel>
Windows: GL context creator: WGL (old)
<teepee>
is there a new one?
<kintel>
^this is because the new WGL class isn't yet enabled as I haven't been able to test it properly
<kintel>
It's fully implemented, someone just needs to be able to build under Windows and give it a spin :)
<guso78k>
tried to use the converter, but my collegues did not want to provide a sample :')
<teepee>
ah, it's working for other people, so it might still be as J24k15 suggested that there's some separate software messing things up, it's curious crashing on both intel and nvidia
<guso78k>
(KiCad)
<teepee>
of a kicad file?
<kintel>
My Windows installation can still not do a hardware offscreen buffer without renaming the executable to "offscreen.exe". Very weird!
<guso78k>
yeah, she only releases when she finally likes her design :')