Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - doub

91
Tools of the trade / Re: 3D Gerber Viewer
I'd be happy to support your input device, but without access to it it's very difficult (I'd be happy to be sponsored with one :D). I tried downloading the SDK but it seems to be requiring human validation so it could take a while.

Most of the input code is in Lua, so you can give it a try youself if it uses standard Windows input messaging.
92
Tools of the trade / Re: 3D Gerber Viewer
@matseng: I'm glad that it finally works. Unfortunately the performance is something more difficult to diagnose. One thing you can try is edit the lua/5.2/grbv/boards.lua and look for two 4096, and replace them with a smaller power of two, like 1024 or 512. This will reduce video memory usage and may avoid some memory thrashing.

@stryker: The application should properly detect outline information and cut the board accordingly. If it's not, it's because my heuristics are incomplete. Can you please send me your board files? If you don't want them public send them by email directly to me (see the webpage for address).
93
Tools of the trade / Re: 3D Gerber Viewer
@systemstech: There's a bug giving that error that I just fixed (in next version), but it likely happens because you tried to load an empty board (ie. it didn't recognize any file extension, or all recognized files are empty). Can you tell me if it works with one of the demo boards (double-click grbv.exe and press F6)?

@Sleepwalker3: Apparently your drivers don't support OpenGL 3.x, which is required for this tool. After a quick Internet search, it seems your hardware is capable of it, but you need to update your drivers.
94
Tools of the trade / Re: 3D Gerber Viewer
I just uploaded a new version that fixes a rendering bug that appeared as noise all over the window on Intel and AMD hardware. I also made some minor modifications that should help the program run on older/weaker hardware with no support for multisampling (which include for example some integrated GPU in modern Intel CPUs).
95
Tools of the trade / Re: 3D Gerber Viewer
I've just released a new version, tagged 20130819T0027. There are only minor fixes, but it will show the actual release names (date-based) on the screenshots and (that's new) in the error popup title bar. So just pressing Ctrl-C and pasting the text here or in an email will include the version information (and CPU architecture).

@matseng: I had another user reporting the exact same problem as yours, I exchanged a few emails with him, and this version includes fixes that solve that problem. However he then has a rendering bug, which you may also get. Unfortunately if you do, I have almost no mean of debugging it since OpenGL reports that everything is fine.
96
Tools of the trade / Re: 3D Gerber Viewer
I'm currently moving, and my desktop PC is still in a box, so I cannot do much at the moment.

@matseng: This is a surprising error. I'll see what I can do. Did you copy any .conf file you had in the previous version to this one?

@ferdinandk: Can you run the grbv.com version from a command line, and copy and paste the console output (it should tell me what kind of GPU you have)? In addition to that can you tell me what CPU you have, and how much CPU RAM and GPU RAM you have?
97
Tools of the trade / Re: 3D Gerber Viewer
I have a similar GPU on my laptop, I tried a couple time to port the renderer so that it runs there, but there is so much missing that I gave up (twice).

Can you create a display.conf file with:
Code: [Select]
display_stats = true
wait for the graph to loop and discard loading spikes, and then take a screenshot?

Then create a render.conf file with
Code: [Select]
vsync = true
restart, wait for another graph loop, and take a second screenshot.
98
Tools of the trade / Re: 3D Gerber Viewer
@matseng: Your Gerber files work just fine here, so it's probably a problem related to OpenGL hardware and drivers capabilities. I've just uploaded a new version (tagged 20130811T2036) which adds a check just before the error you get, and which may give me a more relevant feedback. Unfortunately I don't understand what the problem is yet, so I don't know what to fix.

@ferdinandk: GLSL 1.2 comes with OpenGL 2.1, which is rather old and lacks many feature that I may have used (sometimes inadvertently). Targeting such a platform would require extensive changes, and may be easier to do with a separate renderer. I don't have time for that at the moment, but it's all in Lua if someone is willing to give it a try. The two main pieces are the Gerber files rasterization (in boards.lua) and the rendering loop (in display.lua). These two files could be rewritten using only OpenGL 2.x APIs and GLSL 1.2 shaders. I can give a lot of explanations and some help if needed.

As for the slowness on your desktop PC, can you be more precise? Is the loading too long? Is the framerate low once loaded? Is the mouse manipulation of the board unresponsive?
100
Tools of the trade / Re: 3D Gerber Viewer
@matseng: Can you give me a link to the Gerber files that are not working? It can be in private if you prefer (you have my email address). The bottom flickering may be cause by some invalid out of bounds video memory access, but I've never seen that.

@john932: Can you copy and paste the error you get? Press Ctrl-C when the error popup is active, and then press Ctrl-V while writing a message on the forum (ideally within code tags).
101
Tools of the trade / Re: 3D Gerber Viewer
@matseng: I just got a breakthrough in my understanding of the problem. Can you modify the line of display.lua that reads:
Code: [Select]
if glsl_version < 1.4 then
and replace the 1.4 with 1.5?
102
Tools of the trade / Re: 3D Gerber Viewer
@all: The version number is actually a date and time in the form yyyymmddThhmm. At the moment it's OK to use only the last 4 digits, but as I build more versions it might get confusing so please report the whole tag.

@matseng: Can you create a file named display.conf in the tool directory, and write the following line in it?
Code: [Select]
cast_shadows = false
I added some detection code, but it seems it's not enough. Tell me if it works like that, and please report the console output next time so I can see what previse OpenGL version you have. I'm targeting 3.x to reach a wide audience, so you don't need to upgrade your drivers.

@veryevil: Thanks for the report, I'll study that further. It's a bit surprising, but I have an idea where to look at.

@Sleepwalker3: Thanks for giving me your time, especially if you don't plan to use it (but I'm sure once you see it working it'll win your heart :D). Can you try to create a file named grbv.conf in the tool directory, and write the following line in it?
Code: [Select]
translucent = false
Alternatively try the version I released this afternoon, which fixes this problem (ie. turn off translucency automatically when it's not available).

I'll look into how to display the version number, but note that to save time, instead of taking screenshots, when the error popup is displayed you can simply press Ctrl-C to copy the text into the clipboard and then paste it on the forum (this is a "hidden" Windows feature that works in many popup dialogs in various apps).
103
Tools of the trade / Re: 3D Gerber Viewer
@veryevil: I just uploaded a new version (tagged 20130808T0401) that should fix that very same issue on ATI/AMD hardware, so hopefully it will also fix it on your Intel hardware.
104
Tools of the trade / Re: 3D Gerber Viewer
@Sleepwalker3: I fixed that particular error (the first screenshot). Assuming the second screenshot pops up just after the first (or behind), the version tagged 20130807T1521 should get you further.

@veryevil: I'm a bit disappointed the display.conf workaround doesn't work, but I have another user in exactly the same situation as you. I have to study further the possible causes of the error, I'm out of ideas right now.
105
Tools of the trade / Re: 3D Gerber Viewer
@Stuff4Pi: I think this is a bug in the GLSL compiler of your OpenGL driver. Can you look at the file "Gerber Viewershadersentity_textured.glsl" in a text editor (Notepad for example), locate the following line:
Code: [Select]
	vec4 color = HasColorTexture ? texture(ColorTexture, ex_Color.xy) : vec4(ex_Color, 1);
and replace it with:
Code: [Select]
	vec4 color;
if (HasColorTexture)
color = texture(ColorTexture, ex_Color.xy);
else
vec4(ex_Color, 1);

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01622447040session_write_close ( )...(null):0
20.01652578664ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01652579440Database_MySQL->query( ).../DatabaseHandler.php:119
40.05862718200Database_MySQL->error( ).../Db-mysql.class.php:273