Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (404)
games submitted by our members
Games in WIP (289)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2 3 ... 244
1  Java Game APIs & Engines / OpenGL Development / Re: Multiple shader passes LWJGL on: 2013-05-15 15:45:12
Noo, calculating texture coordinates every pixel is expensive.

This is false, at least for AMD hardware.

Please remember that this was a performance trick in the context of mobile GPUs, as described in the link posted earlier in this thread:
Quote
Texture Lookups
● Don’t perform texture lookups in the pixel shader!
   ● Let the “pre-shader” queue them up ahead of time
   ● I.e. avoid dependent texture lookups
● Don’t manipulate texture coordinate with math
  ● Move all math to vertex shader and pass down
● Don't use .zw components for texture coordinates
   ● Will be handled as a dependent texture lookup
   ● Only use .xy and pass other data in .zw
2  Discussions / General Discussions / Re: OpenGL and OS X on: 2013-05-14 18:55:01
By the time you release your game, OpenGL 3.3+ may very well be properly supported - or, even outdated Pointing
3  Game Development / Newbie & Debugging Questions / Re: Will I get the exact amount of memory usage? on: 2013-05-13 22:45:14
Overhead wasn't my actual concern, it is the triple nested loop's performance.
You asked what the overhead was, then I told you what it was and you said that it was terrible, and now you say it's not about memory overhead...

Anyway, triple nested loops are not somehow much slower than a single loop. Benchmark your code if you notice it's slow, don't make too many assumptions, especially if you're new to it all.

Also I see he just mixed y and z, so it's fine
That's not the bug, Z values leak into his Y value.
4  Game Development / Newbie & Debugging Questions / Re: Will I get the exact amount of memory usage? on: 2013-05-13 22:26:52
That sounds terrible
230K of memory overhead is perfectly fine. Imagine loading a 1024*1024 image, it will take 4MB of memory. We have gigabytes of RAM... is 230K really terrible??

The bonus you have when using a char[][][] is that it does bounds checking for you. If you'd just use Danny02's code, and you'd feed in x=-1, y=-2, z=5, there wouldn't be an error thrown, it would just result into unexpected behavior. So apart from the 1D<->3D convertion, you have to do your own bounds checking for x,y,z values.

Bounds checking and index calculations are all trivial, we say, but for a newbie, it's highly error prone, given that Danny02 got it wrong too (returned Y axis value is wrongly calculated), and I'd say one is better off with char[][][], and swallow that 230K overhead.
5  Game Development / Newbie & Debugging Questions / Re: Will I get the exact amount of memory usage? on: 2013-05-13 18:23:12
Every object has memory overhead:
   You have 128*128 char[] objects
   You have 128 char[][] objects
   You have 1 char[][][] object

That makes 16,513 objects - arrays even, each roughly adding 12 or 16 bytes, which means it uses ~230K more memory than you expected.
6  Discussions / General Discussions / Re: I cant modify my posts! on: 2013-05-12 09:19:08
Earlier I configured SMF to make editing posts impossible after 180 days, as some members try to hide the mess they create by altering pretty much all their posts. As that happened three times recently, I added that restriction.
Then I realized I could create similar but better functionality by writing a cronjob that locked topics, which looked at the latest post in a thread. Needless to say I forgot to disable that SMF feature...
7  Game Development / Networking & Multiplayer / Re: Connect Java App to a Wordpress MYSQL Database on: 2013-05-11 16:07:53
What makes you think WordPress returns statuscode 403?
8  Game Development / Networking & Multiplayer / Re: Connect Java App to a Wordpress MYSQL Database on: 2013-05-11 13:23:09
Never ever expose your database to the outside world.

Query WordPress itself, over HTTP. If you want to use a specialized solution, write a JSON API, but I can't stress enough that a database must be only reachable by a serverside application, where business logic defines the used queries; never execute queries received from a client.
9  Discussions / General Discussions / Re: I cant modify my posts! on: 2013-05-11 11:24:46
Problem solved Pointing
10  Discussions / General Discussions / Re: I cant modify my posts! on: 2013-05-11 11:18:26
Hm... the topic is not locked in the first place, so I'm not sure what's going wrong here.
11  Discussions / General Discussions / Re: I cant modify my posts! on: 2013-05-11 11:13:33
That's already supposed to happen. persecutioncomplex
12  Discussions / General Discussions / Re: I cant modify my posts! on: 2013-05-11 10:56:46
Your topic was idle for 180 days, so it was locked. I'll add WIP to the boards that won't be locked automatically.
13  Discussions / General Discussions / Re: Registration Activation Quiz on: 2013-05-10 15:02:44
Quote
and it seems we have the luxury to reject people we deem not having the right mindset to join the community, without feeling adverse effects.
How do you know you're not feeling adverse effects? How could such effects manifest?
I deliberately said that I wasn't feeling adverse affects. How I know that for a fact? Well, because I'm not feeling it. It's indeed all about perception.

Quote
Yadda yadda yadda
I'm out! I've got more money to make for Cas.
14  Discussions / Business and Project Discussions / Re: The nightmare of taxes, and what can I do about it on: 2013-05-10 14:43:01
The wikipedia article is wrong.

These reports don't quite agree:



I'm sorry, but I'm taking those reports more serious than the statements of your friend...
Quote
Yesterday I asked a friend of mine about the taxes. He has no idea how does it all works, but he sad in Hungary 60% gone with taxes.
15  Discussions / General Discussions / Re: Registration Activation Quiz on: 2013-05-10 14:17:36
People will only very rarely admit they did not like something (anything!) once they are part of a group where this something is a prerequisite of some sort.
It's kinda paints a grim picture if you believe that people sending me PMs about how they enjoyed the activation quiz are merely doing that due to social pressure to fit in. That was my point after all: unprovoked positive feedback. That's a totally different thing than a mildly positive response on an inquiry.



Quote
If I ignore complaints, I'd come across as
...someone who quotes with "tactically adjusted" context? xD You do still remember, that that wasn't something I called you (but an example taken from a random older post on the topic, from someone else, who also only used it as an example), right?
Heh, you can't distance yourself from such remarks that easily. It's a common tactic, often seen in interviews / in journalism: you have this opinion of somebody but for the sake of having an informed discussion, you know it's not prudent to call it in their face, but make up an fictional group, and taking fictional quotes from them, to smoothen the conversation accompanied with a subtle bit of backstabbing.



From your average televised interview, this is the underlying question:
Quote
It seems from the lack of compassion for the people that suffer from your fraud that you are a psychopath. Are you?
The question that is asked by the interviewer:
Quote
Some people say that your lack of compassion for the people that suffer from your fraud, shows that you are a psychopath, what would you say to these people?
It's a dirty little trick, and very hard to counter, without elaborately explaining what is happening, as if you'd simply recognize this trick and refuse to answer, it comes across as you can't take criticism.



Just as easily, I can make up this fictional group of people that agree with me, disagree with you, and take quotations like:
Quote
people complaining endlessly about things that are merely inconveniences for the greater good are total douchebags
and then 'remind you', that when you quote my fictional quote, that these are not my words. Surely, logically this is defendable, but socially not so much.




Don't get me wrong, it's still all just an ad-hoc educated guess and I could be totally misjudging the sum of all "effects" in any single situation. But usually I'm not too far off... most of the time.
You're practising theory, I'm dealing with reality. Observational evidence shows that my solution to the problem is effective, and it seems we have the luxury to reject people we deem not having the right mindset to join the community, without feeling adverse effects.




I hope this thread is useful in a way, like making people look for that new [ignore] feature I added recently.
16  Discussions / Business and Project Discussions / Re: The nightmare of taxes, and what can I do about it on: 2013-05-10 12:26:43
If the government takes 60% and steam 30% then we wont have anything left. It's just ridicilous don't you think?

As explained earlier, and unfortunately blatantly ignored... it's simply not how it works... and if you'd rather go to jail than to pay taxes, there's not much reasoning left to do here... enjoy your ruined life, I guess, while everybody else seems to cope just fine, even when having to pay these taxes.



Or go to Germany and let it be a free game before we reach the 10000€
Your math is scary. How would you ever make 10K if you make it free before you reach that amount?
17  Discussions / Business and Project Discussions / Re: The nightmare of taxes, and what can I do about it on: 2013-05-10 12:16:08
Cero, you're derailing this topic for no apparent reason.
It seems you misinterpreted Oskuro's first post.
18  Discussions / General Discussions / Re: Registration Activation Quiz on: 2013-05-10 11:54:41
I agree though, this thread is not really productive Smiley

If I ignore complaints, I'd come across as an
elitist d*ck

Emo
19  Discussions / General Discussions / Re: Registration Activation Quiz on: 2013-05-10 09:57:04
Quote
people that come through, are usually amused by the quiz. Surely this is a biased selection, but it's not all the doom and gloom you portray it to be.
The selection isn't only biased - it's strongly systematically confounded. To stay with my theme of inadequate analogies: "It's like making a telephone survey to ask people whether they like participating in telephone surveys. Wow, almost everyone loves it!".
That's where your reasoning is flawed. It should be: "Wow, almost everybody participates!" If you'd ask people whether they truly liked it, you'd get different numbers as most people are polite not to hang up immediately once they realize it's a survey. If you'd record people making positive statements during the survey, regarding said survey without being asked on the matter, the numbers would be even lower, and merely biased, as opposed to 'strongly systematically confounded'.
20  Discussions / Business and Project Discussions / Re: The nightmare of taxes, and what can I do about it on: 2013-05-10 09:36:10
Welcome to the real world.

Steam does not avoid tax for you. In fact, they take a large chuck of the money you make themselves, effectively adding yet another tax.
 
Keep in mind that for income tax, you pay tax over the profit, not the revenue. So saying you'll be paying 60% over the retail price is just wrong.

Also, the tax percentage goes up with your profit: it doesn't start at 60%.
   You pay a% tax over profit under X.
   You pay b% tax over profit between X and Y.
   You pay c% tax over profit between Y and Z.
   You pay d% tax over profit above Z.

In The Netherlands, the max percentage (over the high end of your profit) you pay is about 50%. Then you have all kinds of deductions, first and foremost costs, but also business related deductions, which either are a percentage or an absolute amount of money.

To give you an indication, although we have this ~50% tax in my country, I barely paid any tax last year, without resorting to shady tactics. persecutioncomplex
21  Discussions / General Discussions / Re: Registration Activation Quiz on: 2013-05-10 00:00:32
People usually don't feel like a community they don't really know or are a part of (yet) have the right to make them "jump trough hoops".
This is not "laziness", it's just basic human psychology. You would be surprised how much effort people usually put into avoiding doing ...
Yes (except many of those will just leave).

Taking your own impression and/or reasoning and projecting it on the general population to make a point... From what I hear, both in this thread and in my PMs, is that the people that come through, are usually amused by the quiz. Surely this is a biased selection, but it's not all the doom and gloom you portray it to be.

On a side note: do you complain at websites using ReCaptcha? The only reason you accept those monstrosities is that you're conditioned to use them. They offer a horrible user experience to the target audience and let a steadily increasing amount of fancy pants bots through. If you think that the quiz is worse than a re-captcha, we'll have to agree to disagree and leave it at that.



I would suggest to put a somewhat more detailed explanation like in this post here above the quiz.
Given your apparent extensive background in social behavior (and odd analogies), this seems out of place. Let's add a poor analogy to the bunch and say that one day I don't want red haired tall girls in my office, so on the door, I'll put up an elaborate text describing how red haired tall girls are denied access because they are morally impure, smelly and generally misinformed. Guess who will be trying to get in no matter what and ruin the place, stealing my sticky notes.... pissed off red haired tall girls! Why? Because I was more or less taunting them.

I'm not going to taunt human spammers, by describing how much trouble they caused and which measures we put in place to keep them out, how they worked around it and how we countered their tactics. It will give them an incentive to prove me wrong, either by compiling the code snippet, or being a tad more nasty, like attacking the server which a script kiddie could do by accidently pressing a button. These are not nice people, and generally best ignored, not taunted and not even mentioned explicitly, they'll just see a simple page, think 'holy cow!' and close the browser tab. Just the way I like it.


Given that my PHP skills do not allow me to show the 'so sorry' paragraph only to non-spammers, I'm forced to show everybody the same page, which given the reasons posted above, is rather terse.
22  Discussions / General Discussions / Re: Registration Activation Quiz on: 2013-05-09 15:38:57
putting a more detailed explanation on the quiz-site
The quiz already explains this is an anti-spammer measure. What would you suggest? Forcing you to read a paragraph explaining how sorry we are for making you fill out a quiz, oh, and having to read that paragraph? Adding more text to it doesn't solve anything and will most likely annoy people. In the end they have to fill out that form anyway, so we can just as well be as brief as possible in the accompanying text.


I can see why you might be having a hard time understanding what sort of impression and feelings an "outsider" might get when he first sees that, because you are not part of that out-group ...
Yeah, I'm simple like that. Isn't it sad. But what ya gonna do. Emo


As much as I love to see the gloves come off, you haven't convinced me. Whether I throw a paragraph at people telling me how sorry I am to make them jump to hoops, there will always be people thinking we are
being elitist d*cks
and write a new reply in this thread.


Just imagine some stranger spontaneously would try to make you do some (little, easy but unexpected) thing you didn't think was necessary - wouldn't that make you angry and possibly prone to misjudgement?
If I approached that stranger and that person provides a service I'm interested in, and has a vested interest in keeping that service high quality by making me do something easy, I would consider it.


So far I haven't seen a solution that both keeps the spammers away and involves less hoop jumping.
23  Discussions / General Discussions / Re: Registration Activation Quiz on: 2013-05-09 13:42:26
People usually don't feel like a community they don't really know or are a part of (yet) have the right to make them "jump trough hoops". I had to fight with myself for 5 minutes over whether I could accept being made to jump or not and in the end what made the decision was that I really wanted to complain about the "registration quiz" xD

Spending 5 minutes 'fighting' to decide whether to jump through hoops, sounds awfully long. Longer in fact, than to actually jump through these hoops Smiley If JGO is unworthy of jumping through hoops for, that's perfectly fine.

We have between 5 and 10 successful activations per day, and we can barely cope with the influx of cube-enthusiast newbies already. Every once in a while we find somebody complaining. I guess you can't please everybody - the activation quiz is meant to be humorous to the target audience and a royal pain in the ass for everybody else.

If a programmer can't be arsed to run a snippet of code, it's telling... and we're probably better off not having those lazy bums on the forum. persecutioncomplex Smiley


I spent long enough on the activation quiz. I'm not going to poke holes in it to make the one-time activation easier for average Joe wielding his tablet, never booting up his desktop anymore. I like to think JGO is among very few open forums on the internet that don't need moderators cleaning up after spammers. The quiz does its job remarkably well, at the expense of this topic needing occasional TLC when people feel mistreated, patronized and/or otherwise offended by an entrance exam.
24  Discussions / General Discussions / Re: New feature: necro thwarter on: 2013-05-07 16:52:48
Could you please add a Warning message explaining why the topic is closed?
There. Done.
25  Discussions / General Discussions / Re: New feature: necro thwarter on: 2013-05-07 16:38:15
You agree with me 99% of necros are inappropriate, right?
26  Discussions / General Discussions / Re: New feature: necro thwarter on: 2013-05-07 16:36:27
PM me when you want to revive it.
27  Discussions / General Discussions / Re: New feature: necro thwarter on: 2013-05-07 16:34:43
Good point. I excluded Showcase, Featured and Wiki (as if! Grin) from the boards to freeze.
28  Discussions / General Discussions / New feature: necro thwarter on: 2013-05-07 15:46:28
Some members seem to be rather fond of necroing threads. The message that is shown after hitting 'post', informing the poster that the thread is severly outdated, doesn't deter these people.

In all these years, I can't recall a reply that actually was worth such a revival. Typically people use the search function of the site and just plonk whatever they are working on at the end of whatever topic they stumbled upon, forcing everybody to plow through outdated messages.

Therefore, I proudly present the feature everybody has been waiting for...

  • topics are frozen after 180 days of inactivity


Hurray!
29  Discussions / General Discussions / Re: Why don't many of you use JMonkey Engine? on: 2013-05-06 12:30:00
Who put this thread in the chitchat board? Clueless
30  Games Center / Showcase / Re: Fallen Outside on: 2013-05-03 09:15:46
No.

Now back on topic please.
Pages: [1] 2 3 ... 244
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (34 views)
2013-05-17 21:29:12

alaslipknot (42 views)
2013-05-16 21:24:48

gouessej (72 views)
2013-05-16 00:53:38

gouessej (71 views)
2013-05-16 00:17:58

theagentd (79 views)
2013-05-15 15:01:13

theagentd (74 views)
2013-05-15 15:00:54

StreetDoggy (116 views)
2013-05-14 15:56:26

kutucuk (139 views)
2013-05-12 17:10:36

kutucuk (140 views)
2013-05-12 15:36:09

UnluckyDevil (148 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.222 seconds with 20 queries.