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 2 3 [4] 5 6 ... 10
 31 
 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.

 32 
 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...

 33 
 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

 34 
 on: 2017-11-16 13:10:27 
Started by Zeldar - Last post by h.pernpeintner
If you ask the Scala guys, Optional is the only answer to nullability, if you ask C++ guys they start explaining you the differences between references and pointers, if you ask Ceylon people, they start talking about how great union types are....

The point is: Union and intersection types may be an elegant construct, that Kotlin lacks. Some claim that - like strucutral typing - the chance is high that this feature harms your codebase, because you lose track of your class hierarchy over time (of course, only the others do ...). Fixing an existing, crappy API from someone else is very nice with this feature though, that's probably the reason why TypeScript has it Tongue I don't know in which situations Ceylon's solution would be better than Kotlin's, but when writing extension functions, it's very convenient to be able to type Type?.bla() instead of something like (NULL|Type).bla(). Can anyone tell what Ceylon code looks like from Java when union types are used? I doubt it will say Object, but does it search for the most specific common superclass of all types?

EDIT: Or can you use String? as a shortcut for NULL|String literally everywhere in Ceylon?
EDIT2: AFAIK Ceylon makes heavy use of their own metafile-based implementation of reified generics, for example to make variance with this type system usable. I guess that this is pretty imperformant, so one of my first questions would be if using nullable type in Ceylon harms performance.

 35 
 on: 2017-11-16 12:56:17 
Started by Zeldar - Last post by elect
In Kotlin you may actually simulate union by custom setter and getter

 36 
 on: 2017-11-16 12:53:29 
Started by Zeldar - Last post by Spasi
That article doesn't say anything about how Ceylon's null handling is better, in practice. It's implemented with union types, which Kotlin does not support. What does that get me?

 37 
 on: 2017-11-16 12:46:42 
Started by BurntPizza - Last post by princec
The way Azul's Zing VM handles all this is quite remarkably sensible... start here https://www.azul.com/products/zing/pgc/

Cas Smiley

 38 
 on: 2017-11-16 12:41:30 
Started by BurntPizza - Last post by Riven
.. and optimisations by the JIT. You can have multiple (inlined) implementations of 1 callsite at a time, which all store these references in different registers, or (differently laid out) stack memory.

 39 
 on: 2017-11-16 12:40:14 
Started by Zeldar - Last post by princec
https://blog.jooq.org/2016/03/15/ceylon-might-just-be-the-only-language-that-got-nulls-right/

Cas Smiley

 40 
 on: 2017-11-16 12:39:34 
Started by Zeldar - Last post by princec
Sounds like there's a correlation between people liking/disliking Kotlin and choice of favorite IDE.
See also: the suspicious schism that exists between Java and C# amongst Visual Studio programmers.

Cas Smiley

Pages: 1 2 3 [4] 5 6 ... 10
 
Ecumene (110 views)
2017-09-30 02:57:34

theagentd (136 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 (240 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 (1569 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!