Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (741)
Games in Android Showcase (225)
games submitted by our members
Games in WIP (823)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 6 7 [8] 9 10
 71 
 on: 2017-11-15 02:42:21 
Started by princec - Last post by SHC
That was my thinking when I started inspecting the data, to load as many tables as possible into MySQL and go from there. The tools I have for inspection are not so hot: e.g., Notepad/Wordpad! Advice on a better way to inspect the dump would be appreciated.

For this large data, phpMyAdmin and other web based tools will trigger a post error, you need to work from the command line. After you create the database, do this from cmd:

1  
2  
3  
4  
$ mysql -uuname -p
Enter password: *****
mysql> use dbname
mysql> source path/to/dumpFile.sql

That will do the trick of importing. It took me 30 seconds for that to complete.

 72 
 on: 2017-11-14 23:04:30 
Started by BurntPizza - Last post by KaiHH
About to finish Tutorial 5 using the "Edge-Avoiding À-Trous Wavelet Filter". On the way to a real-time, game-ready path tracer! Smiley
The following images show a scene with the current tutorial state of the path tracer:

Unfiltered (1 sample per pixel):


Filtered (1 sample per pixel):


Ground truth (1000 samples per pixel):


The downside of that edge-avoiding filter is that it requires per-scene tweaking of the various weighting parameters involved. I'm pretty sure the authors spent a whole lot of time to find the right weight coefficients for the still images shown in their paper.

EDIT: Tutorial 5 (more like a demo really than a "tutorial") is in: https://github.com/LWJGL/lwjgl3-demos/tree/master/src/org/lwjgl/demo/opengl/raytracing/tutorial

 73 
 on: 2017-11-14 21:58:06 
Started by LoneMensch - Last post by nsigma
the path will resolve to the path where the JAR exists

Yes, but this bit is incorrect.  It will resolve to where you launch the JAR from (ie. if from terminal the pwd, not necessarily where the JAR is).  Add in the possibility of users setting up symlinks, etc. and relying on the relative path can be a bad idea.  See this old message with a bash launcher script that works around this issue (from the Linux / OSX NetBeans launcher) http://www.java-gaming.org/topics/cannot-run-a-program-by-clicking-on-its-icon-whereas-it-works-in-command-line/36811/msg/350522/view.html#msg350522


Or, as mentioned above, in your Java code you can use
1  
URL jarLocation = MyClass.class.getProtectionDomain().getCodeSource().getLocation();

see https://stackoverflow.com/questions/320542/how-to-get-the-path-of-a-running-jar-file

 74 
 on: 2017-11-14 21:31:48 
Started by LoneMensch - Last post by LoneMensch
Yes, thank you both; I understand. If you want to access resources that are inside the JAR, they must exist inside the classpath and are accessible using a class loader. You can perform a conditional test to determine whether to use the class loader or access using a relative path. If you try to access internal files using a relative path, the path will resolve to the path where the JAR exists, to inside the JAR, so it's only good for external resources. It's clear now.  Smiley

 75 
 on: 2017-11-14 17:46:07 
Started by princec - Last post by philfrei
Quote
I got the dump imported into MySQL.

That was my thinking when I started inspecting the data, to load as many tables as possible into MySQL and go from there. The tools I have for inspection are not so hot: e.g., Notepad/Wordpad! Advice on a better way to inspect the dump would be appreciated.

Quote
After spending two hours to understand the tables and relations, wrote a script to migrate the categories and boards. The current output is like this:

Is this the view from within Flarum? (Is there a consensus that Flarum is a good target? Or a good intermediate step to something else?)

Looks good! I can see that the GUI should work well on small display screens.

The only thing I'm wondering about is the sub-categories at the bottom and how they relate to larger blocks.

I did peruse the dump file a bit, but was slow on the trigger to download MySQL, and haven't downloaded Flarum yet either. I'll do so, if we are going in this direction.

 76 
 on: 2017-11-14 17:03:51 
Started by N_I_C_S - Last post by orange451
Oops, I hadn't seen your reply. I will test it out when I get home later today.

The main cause of the problem on my NVidia card is (how TheAgentD put it to me) due to the tile-based rasterization. Leads to faster graphics drawing, but can create some more graphical headaches if you don't follow graphics programming rules strictly.

To better clarify what I wrote before. If I bind a texture for a shader, sample from that texture, and also write to that texture (at the same time), it can lead to the tiling issue (on certain drivers (newer ones) on certain NVidia cards (newer ones)).

[EDIT]
Just tried the new demo. The tiling issue is fixed Smiley

 77 
 on: 2017-11-14 16:04:10 
Started by princec - Last post by SHC
After spending two hours to understand the tables and relations, wrote a script to migrate the categories and boards. The current output is like this:



The script also maintains the order of the categories and the boards inside them.

 78 
 on: 2017-11-14 12:20:25 
Started by BurntPizza - Last post by Mac70
Working WebKit based web browser in LWJGL 3:


Click to Play


It still requires lots of work, but is very convenient to use (using JavaFX built-in WebEngine and no external libraries at all). The biggest and pretty much the only problem for now is that texture of rendered page is transferred from CPU to GPU on every frame, some kind of streaming should remove most of that overhead.

 79 
 on: 2017-11-14 10:51:24 
Started by SteveSmith - Last post by SteveSmith
Thanks for all the replies.  As suggested by philfrei and KevinWorkMAN, I've decided that since I don't need to see the new values ~50 times a second, I'll just update the text every second or so.  I don't know why i didn't think of that before (as is always the case!).

 80 
 on: 2017-11-14 09:48:10 
Started by LoneMensch - Last post by h.pernpeintner
Yes, I assumed that this is the problem, because it always is, when people try to include ressources into their artifact Smiley In the link I posted is an example how you can make a distinction between "run from the ide" and "run from production-single-artifact-build". Basically it's a configuration based switch that switches between file system loading and the getClass().getResource() idea nsigma mentioned already.

Pages: 1 ... 6 7 [8] 9 10
 
Ecumene (108 views)
2017-09-30 02:57:34

theagentd (135 views)
2017-09-26 18:23:31

cybrmynd (245 views)
2017-08-02 12:28:51

cybrmynd (240 views)
2017-08-02 12:19:43

cybrmynd (238 views)
2017-08-02 12:18:09

Sralse (254 views)
2017-07-25 17:13:48

Archive (864 views)
2017-04-27 17:45:51

buddyBro (1008 views)
2017-04-05 03:38:00

CopyableCougar4 (1568 views)
2017-03-24 15:39:42

theagentd (1373 views)
2017-03-24 15:32:08
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!