Java-Gaming.org Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (570)
Games in Android Showcase (154)
games submitted by our members
Games in WIP (618)
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 ... 39
1  Java Game APIs & Engines / OpenGL Development / Re: Transform modelview matrix from y up to z up on: 2015-04-14 15:41:08
After trying things out for a bit I came to this solution for the problem. Maybe it'll help someone else as well Smiley

1  
2  
3  
4  
5  
Posef eyePose = or.getEyePose(eye.Eye);
Quatf orientation = eyePose.Orientation;
Matrix4f modelViewMatrix = new Matrix4f(orientation.inverted());
Vector3f forwardVector = new Vector3f(modelViewMatrix.M[2][0], -modelViewMatrix.M[2][2], -modelViewMatrix.M[2][1]);
Vector3f upVector = new Vector3f(-modelViewMatrix.M[1][0], modelViewMatrix.M[1][2], modelViewMatrix.M[1][1]);


Mike
2  Java Game APIs & Engines / OpenGL Development / Re: Transform modelview matrix from y up to z up on: 2015-04-14 13:52:26
Hi,

That rotate is what I performed but after that the forward vector didn't work as it should have. Maybe there is something else that is incorrect as well. I'll continue looking unless someone else has the absolute solution.

I always have the backup if it doesn't want to work Smiley

Thanks!

Mike
3  Java Game APIs & Engines / OpenGL Development / Transform modelview matrix from y up to z up on: 2015-04-14 12:22:50
Hi,

I'm probably missing something obvious or I'm just too tired to think at the moment, but what is the multiply matrix to make a modelview matrix with a 0,1,0 up vector into one with a 0,0,1 up vector?

Background: The Oculus Rift SDK returns a y+ modelview matrix and my game expects a z+ one and while I could calculate it myself based on the roll/pitch/jaw I'm lazy Smiley

Mike
4  Games Center / Featured Games / Re: State of Fortune on: 2015-04-07 18:41:37
Thanks for the feedback, I changed it to default to windowed mode just in case. It might be that your gfx card is reporting that it can handle a higher hz than your screen likes and I always grab the highest hz. I'll just change it so it doesn't go above the hz of your current desktop display mode just in case.

It's part of the next update (whenever that'll be Smiley). I'll write you a PM when it is live.

Mike
5  Games Center / Featured Games / Re: State of Fortune on: 2015-04-07 10:01:59
float(<simple boolean expression>) does not run as a branch:
1  
2  
float x = float(f < 1.0); //Not a branch
float y = float(f > 1.0 && f < 2.0); //BRANCH!

Right, then I removed some branches and changed some code unnecessarily Smiley I also applied conditional parsing to not run any unnecessary code based on the current graphical settings.

I used these examples (when_lt is broke though) to get a speed bump:
http://theorangeduck.com/page/avoiding-shader-conditionals

Mike
6  Games Center / Featured Games / Re: State of Fortune on: 2015-04-07 06:30:26
Hi,

I've had people use both Linux and Intel and both have worked separately. Input not supported sounds like it's not agreeing with the resolution that your driver is telling me that it's supporting. There is no error thrown, maybe you could try to change the resolutionH(eight) and W(idth) in the app data / State of Fortune / settings.dat file to one that you know is supported?

In other news. I've been busy with personal life stuff, but I'm almost done with an update that contains a rewrite of all the shaders to not have a single if/else/float(a==1) in them (which increased the fps with 10-40%), adding a notification bar with how long effects like bread is active and official support for the Oculus Rift.

Mike
7  Game Development / Newbie & Debugging Questions / Re: How to test a java game having a high-end PC on: 2015-02-17 14:47:26
I have a medium end computer for development, if I get hundreds of fps on that one then I hope it will work on low end computers too Smiley I use dynaTrace to profile the cpu/memory usage to try to get rid of potential bottlenecks on low end computers.

Mike
8  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-02-17 06:58:38
@Mike:
The number one rule of web design (and pretty much all digital content creation): Don't do something just because you can.

Parallax scrolling is the <marquee> of 2012-2015 Wink

- Jev

I couldn't, that's why I did it Smiley I think it'll look great with the additional menu to quickly go to a section. The good thing about the current layout is that the graphics get a very large attention on the page, which is the only thing the game has going for it at the moment.

I don't think we should put any more into this thread as it isn't about web design. Once I change it down the line I'll put in another "What I did today".

Mike

EDIT: I added the navigation as suggested. As it was only a few minutes of work I thought it was silly not to do it Smiley
9  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-02-16 23:30:29
Maybe a "floating control panel" on the right side and the images in the background (~as slideshow?)
@Mike you should add a automatic waypointed scroll system like on the Moto G webpage

Thanks for the ideas! I'll look into changing it again somewhere down the road, most likely based on your ideas. For now I got it working in IE9 and will go back to programming on the game itself Smiley

Mike
10  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-02-16 23:04:10
To be honest, I am not sure about the new website.
"I want all the options without scrolling"
And at least for me the images are jiggling around while I scroll.

Apparently the pictures don't even show up in IE9. I'll have a look for another library I guess. Sad

I could add some buttons on top to jump to the forum/download/credits section. Seeing as I don't have much text on the page I mainly wanted a website that points out the graphical quality, and the previous site didn't do that Smiley

Mike
11  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-02-16 22:48:25
Made a new website for State of Fortune (same url as before: http://stateoffortune.com/). Was mainly to try out parallax scrolling and having much larger pictures without having to click on small thumbnails. The picture quality isn't great in jpeg, but the size difference is huge, which is nice for mobile devices so I'll stick with jpeg over png for now Smiley

Mike
12  Discussions / General Discussions / Re: Future career in programming and school suggestions? on: 2015-02-16 09:59:35
It's definitely my choice to go to MIT, it's been a dream of mine for as long as I can remember.

In that case, go for it Smiley


Mike
13  Discussions / General Discussions / Re: What's your day job? on: 2015-02-15 22:11:21
I work as a delivery architect in the application performance management sector. It involves a lot of customer facing activities as well as application troubleshooting/monitoring and SLA/KPI automation.

Been doing it for 6 years now and the nicest parts about it is the diversity of different customer environments which keeps me up to date with new technologies, the good salary and the satisfaction of helping people out in their daily jobs.
14  Discussions / General Discussions / Re: Future career in programming and school suggestions? on: 2015-02-15 22:03:19
Make sure that you study hard because you want to go to the top universities, and not because your parents want you to. I had good grades and went to a good university mainly because it was expected of me. Long story short: I grew more and more bored, dropped out after the first year, moved to another country and jumped around at a few low paying jobs until I came to where I've worked for the past 9 years.

Spending years on something that you don't want to do is a great shortcut to boredom and depression. On the other hand, if you want to go to MIT, try to get your motivation up and just do it. Try to envision what you think that your life will be if you do go and what it'll be like if you don't.

Mike
15  Discussions / General Discussions / Re: New feature: mentions in posts on: 2015-02-06 12:39:57
What happens when I mention myself, @princec?

You get a community that looks weirdly at you for talking to yourself in written form... Smiley

Mike
16  Discussions / General Discussions / Re: New feature: mentions in posts on: 2015-02-05 22:47:30
Also with a dot like mike.emery

Well, they aren't active on the forum anymore so let's just call it a hidden feature Smiley

Mike
17  Discussions / General Discussions / Re: New feature: mentions in posts on: 2015-02-05 22:22:54
One more thing, every quote of someone with a username that starts with "Mike" is now showing up as my latest mentions. At the moment I don't think there are too many of them active, but maybe that will mess it up for someone else's name as well.

Mike
18  Discussions / General Discussions / Re: New feature: mentions in posts on: 2015-02-05 21:40:11
Really nice feature. I usually read most posts, but now I won't miss all the times that I'm being back talked in some obscure thread Smiley

I was notified by the way so I think you missed something Pointing

Mike
19  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-02-04 23:09:09
Today I realized what a difference good looking clouds and normal mapping on the ground can do for the graphics! Smiley

(Click for full size)


Mike
20  Discussions / General Discussions / Re: New feature: appreciation results in post medals on: 2015-02-04 15:54:39
Oh, I'm Spiffy, how would one become Bitwise? Smiley

Mike
21  Games Center / Featured Games / Re: State of Fortune on: 2015-02-02 20:46:01
After Mr. Agent helped out with the fps drop due to AA he also gave me some hints on how to add AA to transparent objects like the trees and the grain without sorting them. I am now using GL_SAMPLE_ALPHA_TO_COVERAGE, which gives a much calmer look. Here are two new screenshots while using that technique.

As always, click for a larger version Smiley




Mike
22  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-01-31 22:33:03
First I think I only one, who put the monitor on the stand(books, etc ^^)
But now when I see same like 10 times from different ppl I think its normal XD

It's all about ergonomics Smiley

https://www.youtube.com/watch?v=CqOheOnMLe4#t=53

Mike
23  Discussions / Miscellaneous Topics / Re: Laptop hardware on: 2015-01-30 16:24:41
I just got a new gaming laptop for the missus. After looking for quite some time I ended up choosing between the MSI and the Asus Republic of Gamers. I ended up buying the Asus one (http://www.newegg.com/Product/Product.aspx?Item=N82E16834231631) after having heard a lot of bad things about the heat, noise and general lack of quality of the MSI laptops. Asus was a bit more expensive (or with a bit lesser hardware) but so far it runs fine Smiley

Mike
24  Game Development / Newbie & Debugging Questions / Re: Access violation with glDrawArrays on: 2015-01-28 15:15:02
Decrease the size of the triangles with a lot and see what happens Smiley

Mike
25  Game Development / Newbie & Debugging Questions / Re: Access violation with glDrawArrays on: 2015-01-28 15:02:00
EDIT2: The fullscreen quad thing seems to be a major FPS killer, why is this the case?

http://en.wikipedia.org/wiki/Fillrate Read it and weep Smiley

Mike
26  Games Center / Featured Games / Re: [Android] Crazy Shooter - Shoot'em up & Pixel art on: 2015-01-27 13:57:08
Err... You are aware that you have pretty much plagiarized from puppygames with the man in the corner... right?
While there are similarities I wouldn't say it is enough to be plagiarized.

*Off topic: is Riven still with puppygames? Was that even a thing or am I slightly delirious?
Nope, but he was working for them in the past indeed. Smiley

It's borderline fraudulent to use this really nice artwork to draw people into your game with the promise of quality that you obviously cannot deliver yourself.
If it indeed is straight away copied then Oasix should keep the game for himself until he can switch out the graphics for something he created himself. I don't mind copying things off the internet if it is a game that you're playing with a friend, but if you publish it on several forums you should make sure that all the art is either under a free to use license or owned by yourself.

Also, this game doesn't belong in featured games (you shouldn't create games in this section, you can create it in the showcase section and then a moderator will move it to featured if it is good enough).

Mike
27  Discussions / General Discussions / Re: Old Forum Stuff on: 2015-01-26 14:57:51
This topic was discussed a couple of years back as well Smiley
http://www.java-gaming.org/index.php?topic=28710.0

Mike
28  Discussions / General Discussions / Re: RESOLVED: am thinking of getting this PC, for both gaming and developing on: 2015-01-22 15:16:47
Also, the CPU came with a fan, so the separate fan I purchased is going back.

Seperate fans have the plus point of being quieter and allowing you to overclock the cpu more. But if that isn't a requirement then you should indeed return it.

High on the agenda--figuring out how to kill all the ads that are popping up on the new browser.

Adblock plus Smiley
29  Games Center / Featured Games / Re: State of Fortune on: 2015-01-19 23:41:48
Have a well deserved medal! As it looks now the rendering time on my (non-game) laptop with all the effects on max has decreased with 70-80%.

I'm still finishing it up but will have the new version up and running later this week. Smiley

Mike
30  Game Development / Newbie & Debugging Questions / Re: Texture always facing the camera on: 2015-01-19 15:54:24
Config.getRenderDistance() in the code above is the far perspective. You can just try out values that works out well for you.

The up and the right vector is calculated as such (you won't have the crossproduct and such functions but you can find that very easily by googling).
        Point3DFloat normalizedLookVector =
            normalizeVector(new Point3DFloat(Camera.getPosition().getX() - Camera.getLookingAt().getX(), Camera.getPosition().getY()
                - Camera.getLookingAt().getY(), Camera.getPosition().getZ() - Camera.getLookingAt().getZ()));
        rightVector.setLocation(crossProduct(upVector, normalizedLookVector));
        normalizeVector(rightVector);
        upVector.setLocation(crossProduct(rightVector, normalizedLookVector));
        normalizeVector(upVector);

Good luck!

Mike
Pages: [1] 2 3 ... 39
 
Riven (23 views)
2015-04-16 10:48:47

Duke0200 (36 views)
2015-04-16 01:59:01

Fairy Tailz (27 views)
2015-04-14 20:13:12

Riven (29 views)
2015-04-12 21:36:37

bus hotdog (46 views)
2015-04-10 02:39:32

CopyableCougar4 (48 views)
2015-04-10 00:51:04

BurntPizza (48 views)
2015-04-06 22:06:58

ags1 (51 views)
2015-04-02 10:58:48

Riven (49 views)
2015-04-01 18:27:05

ags1 (66 views)
2015-03-31 10:55:12
How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27
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!