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 ... 5 6 [7] 8 9 10
 on: 2017-11-16 19:15:09 
Started by cygnus - Last post by cygnus
Yep, you're right. I'll make the edits! I aim for the next part to be halfway finished by today.

 on: 2017-11-16 16:34:22 
Started by princec - Last post by Riven
Thanks! That will keep me excited to do, it was boring a bit to stare at the screen doing nothing while the migration is done. Currently for 11513 users, it is taking me ~12 minutes to do the port, that is with the reduced data which excludes people who have never logged in after activating their accounts and also non-activated accounts.

Typically data-migration is fastest if you let the database do the bulk of the work:

SELECT ... some data-transformations in the select-statement
  INTO dst_table
  FROM src_table
  JOIN ... potentially some more JOINs to be able to properly fill dst_table

Migrating 11K users should take a split second, with this approach.

 on: 2017-11-16 15:43:08 
Started by Zeldar - Last post by h.pernpeintner
what is the purpose of const when you've got val? Or does const mean "immutable"?

Const indicates a compiletime constanct. For example you could share a String between annotations, which isn't possible in Java. Shamelessly taken from the Kotlin docs:
const val SUBSYSTEM_DEPRECATED: String = "This subsystem is deprecated"

@Deprecated(SUBSYSTEM_DEPRECATED) fun foo() { ... }

To prevent the next question Smiley : Const is a soft keyword that has a meaning in a context. It can't stand alone and isn't a reserved keyword in that meaning.

 on: 2017-11-16 15:25:02 
Started by Zeldar - Last post by h.pernpeintner
Anyway, what I'm getting at with all of this is will Kotlin allow me to design my applications the way I want, or does it push you to use certain patterns/approaches/mindsets?

As princecc said, it's mostly about the framework and API you are using, how you have to do the architecture of your application. There are some limiations/common workarounds for problems other platforms don't suffer that are related to the JVM, but I won't emphasize this too much now.

As for your question: Yes, you are totally free, within the bounds of Kotlin of course. Since Kotlin is a objectfunctional language at its core, you have the well-known foundation of object orientation. Additionally, there are first class functions and a strong std lib for functional stuff. If you want to design your application in a very pure functional way, than there might be better alternatives out there. Even if you always want to use the most complex programming patterns to solve every problem with absolute perfection...than maybe the whole JVM is not your best choice. If you only talk about web frameworks, with Kotlin you can pretty much use everything Java can use, so you have concepts like function as a server, servlet apis, spring for good old mvc applications, Sinatra-like web frameworks...and Kotlin is very useful for DSL stuff, if you would want to be that flexible.

 on: 2017-11-16 14:58:48 
Started by N_I_C_S - Last post by N_I_C_S
Great !
I think i finally got it Roll Eyes : if you write decal parts in a separate buffer, it must be to manage the normals (which can't be read and updated).
To solve this i have already a feature : my gbuffer contains also a "flat tris normals" buffer (i did that to have clean cascaded shadow maps with normal bias...), which could be read instead of the regular normals one. Theorically it should end up the same than your solution.

 on: 2017-11-16 14:52:56 
Started by Zeldar - Last post by princec
That's nothing really to do with the language or even platform at all, but all about what APIs you're using.

Cas Smiley

 on: 2017-11-16 14:45:20 
Started by Zeldar - Last post by phunni
How flexible is Kotlin in terms of coding styles/approaches etc.?  What I mean is - is there any pressure to design your code in a particular way?

One of the things I found most vexing about .Net was that it forced me to take a particular approach to the flow of my application.  For example, if I were writing a web application, in Java I tended to make one page submit to a second page to process the data and render a response.  .Net pushed very hard to get me to make pages submit to themselves. I think it may have been possible to get it to work the way I wanted to, but it wasn't easy.  There was an attribute you could set that was supposed to do it, but the framework was so wired to work in a particular way that changing that attribute wasn't enough.

Anyway, what I'm getting at with all of this is will Kotlin allow me to design my applications the way I want, or does it push you to use certain patterns/approaches/mindsets?

 on: 2017-11-16 14:32:34 
Started by N_I_C_S - Last post by orange451
That's what I ended up doing in my engine Smiley
Decals can modify the diffuse, normals, and specular.

 on: 2017-11-16 13:52:15 
Started by N_I_C_S - Last post by N_I_C_S
Oh thank you very much !

Yes actually i met this damned fbo read/write issue a couple of times !
And i think that's what happened to my gbuffer : to write correctly on the "diffuse" fbo, i need to read the "normals" fbo.
But to write on this diffuse attachment i binded all my gbuffer for draw, including the normals attachment, which surely caused this read/write problem in this normals fbo.

That leads me to realize another issue : if we want the decal to also update normals, specular, gloss, etc... it must take 2 passes : one for the blended diffuse and one, with raw replacement, for the other channels...

 on: 2017-11-16 13:29:53 
Started by Zeldar - Last post by princec
Yes, String? is shorthand for String | Null.

The devil is in the details but I think Ceylon is currently still the design winner.

Cas Smiley

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

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

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

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

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

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

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

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

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

theagentd (1376 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 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‑
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!