Switch to DuckDuckGo Search
   October 20, 2016  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | >

Toggle Join/Part | bottom
[00:01:44] *** Kotcrab <Kotcrab!uid51771@gateway/web/irccloud.com/x-waouzytqgtlyjjsq> has quit IRC (Quit: Connection closed for inactivity)
[00:02:25] *** Keniyal_ <Keniyal_!~Keniyal@unaffiliated/keniyal> has joined #libgdx
[00:06:18] *** Keniyal <Keniyal!~Keniyal@unaffiliated/keniyal> has quit IRC (Ping timeout: 250 seconds)
[00:21:08] *** kjempff <kjempff!~kvirc@0133501203.0.fullrate.ninja> has quit IRC (Read error: Connection reset by peer)
[00:33:13] *** intrigus <intrigus!uid114902@gateway/web/irccloud.com/x-ryjxpnpadhjyejcw> has quit IRC (Quit: Connection closed for inactivity)
[00:36:34] *** LyronDev <LyronDev!86933fb8@gateway/web/freenode/ip.134.147.63.184> has quit IRC (Quit: Page closed)
[00:37:04] *** Biliogadafr <Biliogadafr!~PIN@nat-minsk-pool-46-53-202-183.telecom.by> has quit IRC (Ping timeout: 250 seconds)
[00:40:17] <dnyy> how can i mix 2 colors? i tried add/sub/mul but too dumb to figure those out it seems
[00:40:41] <Tomski> mix in what way?
[00:41:51] <dnyy> so blue and white would be a light blue, red and blue make purple, etc
[00:41:54] <TEttinger> if you want a color that's interpolated between two colors, consider lerp
[00:42:04] <TEttinger> I believe there's a method on Color
[00:42:27] <TEttinger> it takes a float as well for how much to "lean" toward one color or the other
[00:42:29] *** log` <log`!~louie@unaffiliated/log/x-9960987> has joined #libgdx
[00:43:21] <TEttinger> with mul, blue and white would be blue (the same as the first), since mul is a simple shade that can't get brighter
[00:43:29] <TEttinger> lerp should get it right
[00:44:44] <TEttinger> https://github.com/libgdx/libgdx/blob/master/gdx/src/com/badlogic/gdx/graphics/Color.java#L254-L281
[00:45:44] *** laubed <laubed!~Thunderbi@p200300566D71070014F28029703B104E.dip0.t-ipconnect.de> has quit IRC (Quit: laubed)
[00:48:14] <dnyy> so Color.BLUE.lerp(Color.WHITE, .5f) should make a light blue?
[00:48:22] <Tomski> Dont do that
[00:48:26] <Tomski> colors are mutable
[00:48:29] <dnyy> well not doing that specifically
[00:48:34] <dnyy> in real code doing cpy() first
[00:49:01] <dnyy> https://gist.github.com/anonymous/fb5fbf4f5f06e8292aaa317df7db41d1
[00:49:05] <dnyy> is what i'm doing
[00:49:48] <Tomski> 0, 0, 1, 1 lerp to 1, 1, 1, 1 by 0.5 alpa. So you'd end up with 0.5, 0.5, 1, 1
[00:51:32] <TEttinger> that sounds good
[00:51:40] <TEttinger> that would be a light blue
[00:52:12] <dnyy> hm well spriteColor.cpy().lerp(cellColor, .5f) doesn't work but cellColor.cpy().lerp(spriteColor, .5f) does
[00:52:37] <Tomski> more lilac than light blue
[00:52:56] <TEttinger> I would consider not copying there, in that code
[00:53:27] <TEttinger> if you copy when you assign the color (as in, don't assign Color.BLUE, but a unique copy), you can edit it without creating intermediate colors
[00:53:47] <TEttinger> (edit the copy i mean, directly on the sprite)
[00:54:27] <dnyy> not sure what you mean?
[00:56:13] <dnyy> also results kinda good https://imgur.com/a/090hi
[00:56:26] <TEttinger> https://gist.github.com/tommyettinger/23c64dc6277af328cb4c95a47082e779
[00:56:30] <dnyy> maybe should just mix the water color w/ white instead of w/ the color of the sprite, since brown + blue ain't exactly nice looking
[00:56:38] <dnyy> also oooh, gotcha thanks
[00:56:49] <diphtherial> dnyy: heh, that looks cool
[00:57:04] <TEttinger> I do love text-based game stuff
[00:57:10] <dnyy> ty, was hoping mixing colors would make it easier to see (originally i just made the entity the color of the water)
[00:57:20] <dnyy> but if the entity is brown, it doesn't really make it any easier to see at all lol
[00:58:08] <TEttinger> I'm not totally sure what's being tinted there, but it looks good
[00:58:26] <dnyy> yea hard to see in gif
[00:58:30] <TEttinger> how'd you make the gif?
[00:58:34] <TEttinger> it looks rather sharp
[00:58:37] <dnyy> i throw a brown arrow into the water so it should tint the same color as the water
[00:58:44] <dnyy> http://www.cockos.com/licecap/
[00:59:10] <TEttinger> I didn't actually se the arrow at first
[00:59:32] <dnyy> yea throw tween si pretty fast, kinda hard to see if only throwing 2 spaces away haha
[01:00:55] *** jeffol <jeffol!~jeffol@65.158.118.6> has quit IRC (Quit: Leaving...)
[01:01:28] <dnyy> https://imgur.com/a/fhWCs better gif maybe
[01:02:32] <TEttinger> I feel like the tween should be slower, but I realize that's a little tricky when limited to exact grid cells
[01:03:01] <dnyy> yea kinda a balance mostly cause the game pauses while the tweens happen
[01:03:04] <dnyy> so too slow and would get annoying
[01:08:16] *** jwinterm <jwinterm!~quassel@c-67-187-195-65.hsd1.ca.comcast.net> has quit IRC (Ping timeout: 260 seconds)
[01:08:55] *** Neomex <Neomex!~Neomex@dua237.neoplus.adsl.tpnet.pl> has quit IRC (Quit: Leaving)
[01:09:36] *** Dig <Dig!~Dig@103.242.25.144> has quit IRC (Quit: Leaving)
[01:09:43] *** icomputo <icomputo!~saku@148.227.223.248> has quit IRC (Quit: icomputo.com)
[01:10:49] *** Dig <Dig!~Dig@103.242.25.144> has joined #libgdx
[01:22:37] <diphtherial> this might be a dumb question, but there isn't a version of Vector2 that returns new vectors with each operation rather than doing it in-place, is there?
[01:22:47] <diphtherial> i suppose it'd be a gc nightmare
[01:23:02] <diphtherial> (also, cpy() before the series of operations works as well)
[01:26:30] <dnyy> i just use cpy, but i kno fuk all of performance lol
[01:28:42] <TEttinger> maybe using pools would make sense there, diphtherial
[01:29:11] <diphtherial> TEttinger: agreed; i should probably just write a class that manipulates vectors and uses a pool underneath
[01:29:26] <diphtherial> i'd mostly like it for the clarity of not peppering my code with spurious allocations
[01:32:22] *** hextileX <hextileX!~Thunderbi@xdsl-213-196-232-162.netcologne.de> has joined #libgdx
[01:33:42] <mobidevelop> Then you just need to pepper your code with spurious releases back to the pool
[01:34:55] *** hextileX <hextileX!~Thunderbi@xdsl-213-196-232-162.netcologne.de> has quit IRC (Client Quit)
[01:42:24] *** jwinterm <jwinterm!~quassel@c-67-187-195-65.hsd1.ca.comcast.net> has joined #libgdx
[01:43:45] *** howitdo <howitdo!~howitdo@unaffiliated/howitdo> has quit IRC (Quit: I Bomanos)
[01:44:23] <diphtherial> mobidevelop: perhaps if you had some math-heavy section of code you'd begin() it, do your expensive allocations, then end() and have them all returned, i don't know
[01:45:10] <diphtherial> er, math, not "expensive allocations"; i don't know where that came from
[01:47:29] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has joined #libgdx
[01:47:29] <mobidevelop> Seems legit
[01:48:51] *** howitdo <howitdo!~howitdo@unaffiliated/howitdo> has joined #libgdx
[01:48:52] <diphtherial> :)
[02:10:22] *** Loraunt <Loraunt!~Loraunt@ip70-178-10-112.ks.ks.cox.net> has joined #libgdx
[02:11:41] *** atrus6 <atrus6!~Thunderbi@72.241.82.247> has joined #libgdx
[02:26:29] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has quit IRC (Remote host closed the connection)
[02:52:30] *** FrottyZ <FrottyZ!~FrottyZao@ip-178-200-234-13.hsi07.unitymediagroup.de> has quit IRC (Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)
[03:08:00] *** guardianL_ <guardianL_!~guardian@120.29.5.222> has joined #libgdx
[03:17:56] *** guardianL <guardianL!~guardian@pa49-197-187-49.pa.qld.optusnet.com.au> has joined #libgdx
[03:22:07] *** guardianL_ <guardianL_!~guardian@120.29.5.222> has quit IRC (Ping timeout: 256 seconds)
[03:28:48] *** atrus6 <atrus6!~Thunderbi@72.241.82.247> has quit IRC (Ping timeout: 256 seconds)
[03:34:16] *** Isogash2 <Isogash2!~Isogash@87.127.112.116> has joined #libgdx
[03:36:13] *** darkamikaze <darkamikaze!~darkamika@cpe-76-169-176-20.socal.res.rr.com> has joined #libgdx
[03:36:37] *** crazy_im1 <crazy_im1!~mj@a89-182-40-135.net-htp.de> has joined #libgdx
[03:36:39] *** LiquidNitrogen <LiquidNitrogen!~quassel@122-56-198-92.mobile.spark.co.nz> has joined #libgdx
[03:38:12] *** Isogash3 <Isogash3!~Isogash@87.127.112.116> has quit IRC (Ping timeout: 244 seconds)
[03:39:56] *** crazy_imp <crazy_imp!~mj@unaffiliated/crazy-imp/x-8704303> has quit IRC (Ping timeout: 250 seconds)
[03:43:48] *** isdera <isdera!~isdera@cpe-74-78-187-102.maine.res.rr.com> has quit IRC (Ping timeout: 268 seconds)
[03:47:49] *** Isogash2 <Isogash2!~Isogash@87.127.112.116> has quit IRC (Quit: Leaving)
[04:03:11] *** solarlune <solarlune!~solarlune@2606:6000:6507:3900:4ecc:6aff:fe03:da25> has quit IRC (Quit: Leaving)
[04:15:33] <TEttinger> hey LiquidNitrogen
[04:15:42] <TEttinger> how's your city game going?
[04:17:13] <LiquidNitrogen> im not really doing any coding lately
[04:18:36] <TEttinger> http://i.imgur.com/QnyjcAv.png
[04:18:37] <TEttinger> I am
[04:19:30] <LiquidNitrogen> awesome :D
[04:19:48] <TEttinger> how's your forest fortress coming?
[04:20:10] <TEttinger> "it was stolen by elves, I'm prepping a raid to get it back"
[04:20:56] <LiquidNitrogen> im cutting down trees and burning all the shit up so theres space for my sister to put a house over the other side
[04:21:15] <TEttinger> woah!
[04:21:15] <TEttinger> nice
[04:21:26] <TEttinger> housespace!
[04:21:40] <TEttinger> it is a lovely view
[04:22:09] <TEttinger> probably be hard pressed to find a better one in any nation not currently at war with itself or neighbors
[04:22:17] <LiquidNitrogen> lol
[04:22:46] <TEttinger> new zealand has no land borders, so there IS that
[04:23:11] <TEttinger> do you consider any polynesian nations as neighbors to NZ?
[04:23:35] <LiquidNitrogen> not really.. theyre all quite some distance away
[04:24:26] <LiquidNitrogen> a couple of them are nz territory though i think
[04:25:21] <LiquidNitrogen> but certainly not in the way that a country with land borders would consider nearby areas neighbours
[04:25:21] <TEttinger> and you're sooooo close to Australia :P
[04:25:38] <TEttinger> it's like a 5 hour flight or something?
[04:26:08] <LiquidNitrogen> might be less than that, not sure really
[04:27:13] <TEttinger> ah, 4 hours
[04:27:24] <TEttinger> http://www.travelmath.com/flying-time/from/Melbourne,+Australia/to/Wellington,+New+Zealand
[04:27:30] <LiquidNitrogen> looks like aus is slightly closer than any of the pacific islands are
[04:27:32] <TEttinger> probably could pick a closer australian city
[04:29:57] <TEttinger> 1490 km apparently http://www.answers.com/Q/What_is_the_minimum_distance_to_New_Zealand_from_Australia
[04:30:39] <LiquidNitrogen> thats about how far i walk every day
[04:32:38] <TEttinger> auckland to macquarie is 617 km though
[04:33:45] <LiquidNitrogen> wow, are you sure? my wall map must be terribly distorted
[04:34:12] <LiquidNitrogen> that doesnt really sound right
[04:34:30] <LiquidNitrogen> nz is way more than 600km long
[04:35:51] <TEttinger> they're distant islands aren't they?
[04:35:55] <TEttinger> it's 383 miles
[04:36:03] <TEttinger> no way you walk that many miles
[04:36:11] <TEttinger> (distant from mainland)
[04:36:19] <LiquidNitrogen> theyre halfway to antarctica
[04:36:33] <TEttinger> there you go
[04:36:38] <TEttinger> earth is a sphere
[04:36:49] <TEttinger> each latitude line is that much smaller
[04:37:03] <TEttinger> maps are usually rectangles, stretching the poles
[04:37:30] <LiquidNitrogen> russia looks pretty stretched
[04:37:40] <TEttinger> it is pretty huge
[04:38:01] <LiquidNitrogen> surely not bigger than all of africa tho
[04:38:12] <TEttinger> it definitely could be
[04:38:24] <TEttinger> smaller population than bangladesh though
[04:38:32] <TEttinger> find bangladesh on the map...
[04:38:35] <TEttinger> find russia...
[04:39:10] <LiquidNitrogen> i gotta go out, bbl
[04:39:11] <TEttinger> http://mapfight.appspot.com/ru-vs-bd/russia-bangladesh-size-comparison
[04:39:48] <TEttinger> apparently russia is just over half the size of africa http://mapfight.appspot.com/ru-vs-africa/russia-africa-size-comparison
[04:39:50] <TEttinger> later
[04:40:32] <LiquidNitrogen> thats still quite a big area!
[04:40:36] *** LiquidNitrogen <LiquidNitrogen!~quassel@122-56-198-92.mobile.spark.co.nz> has quit IRC (Remote host closed the connection)
[04:40:39] *** dhk <dhk!~dhk@138.59.24.18> has quit IRC (Read error: Connection reset by peer)
[04:41:51] *** dhk <dhk!~dhk@138.59.24.18> has joined #libgdx
[04:54:40] *** Keniyal_ <Keniyal_!~Keniyal@unaffiliated/keniyal> has quit IRC (Remote host closed the connection)
[04:59:34] *** isdera <isdera!~isdera@cpe-74-78-187-102.maine.res.rr.com> has joined #libgdx
[05:12:34] *** Sadale <Sadale!~Sadale@unaffiliated/sadale> has joined #libgdx
[05:21:01] *** Loraunt <Loraunt!~Loraunt@ip70-178-10-112.ks.ks.cox.net> has quit IRC (Ping timeout: 244 seconds)
[05:30:26] *** lukass_ <lukass_!~lukass@p5087C924.dip0.t-ipconnect.de> has joined #libgdx
[05:33:35] *** lukass <lukass!~lukass@p5087C1F1.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 256 seconds)
[05:36:18] *** Kuvis <Kuvis!~owner@line-5467.dyn.kponet.fi> has joined #libgdx
[05:40:57] *** Dig <Dig!~Dig@103.242.25.144> has quit IRC (Quit: Leaving)
[06:04:10] *** barodapride <barodapride!~barodapri@c-98-240-156-69.hsd1.mn.comcast.net> has joined #libgdx
[06:21:40] *** isdera <isdera!~isdera@cpe-74-78-187-102.maine.res.rr.com> has quit IRC (Ping timeout: 268 seconds)
[06:25:50] *** guardianL <guardianL!~guardian@pa49-197-187-49.pa.qld.optusnet.com.au> has quit IRC ()
[06:30:39] *** barodapride <barodapride!~barodapri@c-98-240-156-69.hsd1.mn.comcast.net> has quit IRC (Quit: Leaving)
[06:37:25] *** Kuvis <Kuvis!~owner@line-5467.dyn.kponet.fi> has quit IRC (Remote host closed the connection)
[06:39:53] *** Guest73969 <Guest73969!~mlatu@unaffiliated/icedp> has quit IRC (Quit: _)
[07:27:16] *** Raziel <Raziel!~Raziel@unaffiliated/raziel> has joined #libgdx
[07:44:56] *** jwinterm <jwinterm!~quassel@c-67-187-195-65.hsd1.ca.comcast.net> has quit IRC (Ping timeout: 256 seconds)
[07:59:18] *** vincent_c <vincent_c!~bip@vcheng.org> has quit IRC (Quit: Coyote finally caught me)
[07:59:50] *** vincent_c <vincent_c!~bip@vcheng.org> has joined #libgdx
[08:21:32] *** darkamikaze <darkamikaze!~darkamika@cpe-76-169-176-20.socal.res.rr.com> has quit IRC (Read error: Connection reset by peer)
[08:26:23] *** solarlune <solarlune!~solarlune@2606:6000:6507:3900:4ecc:6aff:fe03:da25> has joined #libgdx
[08:31:31] *** mk1 <mk1!c291ebf8@gateway/web/cgi-irc/kiwiirc.com/ip.194.145.235.248> has joined #libgdx
[08:32:46] *** Sadale <Sadale!~Sadale@unaffiliated/sadale> has quit IRC (Remote host closed the connection)
[08:49:33] *** Shockah|Work <Shockah|Work!~Shockah@185.28.17.74> has joined #libgdx
[08:59:36] *** realitix <realitix!~Thunderbi@92.103.166.6> has joined #libgdx
[09:07:19] *** mk1 <mk1!c291ebf8@gateway/web/cgi-irc/kiwiirc.com/ip.194.145.235.248> has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
[09:08:49] *** Quallenmann <Quallenmann!~quallenma@nat2-145.fh-giessen.de> has joined #libgdx
[09:15:56] *** dhk <dhk!~dhk@138.59.24.18> has quit IRC (Ping timeout: 260 seconds)
[09:17:22] *** NooBxGockeL <NooBxGockeL!~NooBxGock@p200300802D2E130048AFE6CCD1CDBCDF.dip0.t-ipconnect.de> has joined #libgdx
[09:23:32] *** mk1 <mk1!c291ebf8@gateway/web/cgi-irc/kiwiirc.com/ip.194.145.235.248> has joined #libgdx
[09:38:25] *** Neomex <Neomex!~Neomex@dub107.neoplus.adsl.tpnet.pl> has joined #libgdx
[09:46:19] *** [AD]Turbo <[AD]Turbo!~ADTurbo@host242-241-dynamic.56-79-r.retail.telecomitalia.it> has joined #libgdx
[09:46:45] <[AD]Turbo> hi there
[09:49:17] *** solarlune <solarlune!~solarlune@2606:6000:6507:3900:4ecc:6aff:fe03:da25> has quit IRC (Quit: Leaving)
[09:49:32] *** deniska_ <deniska_!~denis@unaffiliated/deniska> has joined #libgdx
[09:51:23] *** monsieur_h1 <monsieur_h1!~Thunderbi@194.125-14-84.ripe.coltfrance.com> has joined #libgdx
[09:52:08] <monsieur_h> hi [AD]Turbo
[09:52:23] <monsieur_h> What are you working on at the moment ?
[09:52:26] *** deniska <deniska!~denis@unaffiliated/deniska> has quit IRC (Ping timeout: 250 seconds)
[09:54:24] *** smelC <smelC!~churlin@gateway.provenrun.com> has joined #libgdx
[09:55:23] *** deniska_ <deniska_!~denis@unaffiliated/deniska> has quit IRC (Ping timeout: 256 seconds)
[09:56:19] *** mk1 <mk1!c291ebf8@gateway/web/cgi-irc/kiwiirc.com/ip.194.145.235.248> has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
[09:57:16] *** deniska <deniska!~denis@unaffiliated/deniska> has joined #libgdx
[09:58:12] *** davimore_ <davimore_!~davimore@46.227.67.83> has joined #libgdx
[09:59:53] *** davimore__ <davimore__!~davimore@46.227.67.83> has joined #libgdx
[10:01:06] *** davimore <davimore!~davimore@253-148-045-062.dynamic.caiway.nl> has quit IRC (Ping timeout: 250 seconds)
[10:02:03] *** Biliogadafr <Biliogadafr!~PIN@nat-minsk-pool-46-53-202-183.telecom.by> has joined #libgdx
[10:02:45] *** smelC <smelC!~churlin@gateway.provenrun.com> has quit IRC (Ping timeout: 256 seconds)
[10:03:00] *** davimore_ <davimore_!~davimore@46.227.67.83> has quit IRC (Ping timeout: 260 seconds)
[10:03:09] *** smelC <smelC!~churlin@gateway.provenrun.com> has joined #libgdx
[10:27:24] *** deniska_ <deniska_!~denis@unaffiliated/deniska> has joined #libgdx
[10:28:21] *** NooBxGockeL <NooBxGockeL!~NooBxGock@p200300802D2E130048AFE6CCD1CDBCDF.dip0.t-ipconnect.de> has quit IRC (Remote host closed the connection)
[10:30:38] *** deniska <deniska!~denis@unaffiliated/deniska> has quit IRC (Ping timeout: 252 seconds)
[10:34:13] *** Serpent7776 <Serpent7776!~Serpent77@90-156-68-175.internetia.net.pl> has joined #libgdx
[10:38:27] *** Larry1123 <Larry1123!Larry1123@irc.larry1123.net> has quit IRC (Ping timeout: 256 seconds)
[10:39:06] *** deniska_ <deniska_!~denis@unaffiliated/deniska> has quit IRC (Ping timeout: 252 seconds)
[10:41:13] *** deniska <deniska!~denis@unaffiliated/deniska> has joined #libgdx
[10:42:19] *** Larry1123 <Larry1123!Larry1123@irc.larry1123.net> has joined #libgdx
[10:54:59] *** guardianA <guardianA!~guardianA@58-7-194-122.dyn.iinet.net.au> has joined #libgdx
[11:15:22] *** Newbee <Newbee!2be65a51@gateway/web/freenode/ip.43.230.90.81> has joined #libgdx
[11:15:34] <Newbee> anyone on?
[11:16:47] <Newbee> I just have a question: is it possible to use java code call object-c function without covert Object-C code to java?
[11:18:21] <Newbee> We are just making a decision which gl engine(Unity or libGDX)should choose for our work.
[11:18:28] <Newbee> Many thanks.
[11:20:50] *** FrottyZ <FrottyZ!~FrottyZao@ip-178-200-234-13.hsi07.unitymediagroup.de> has joined #libgdx
[11:21:37] <Newbee> Is there any advices?
[11:21:51] *** Quallenmann <Quallenmann!~quallenma@nat2-145.fh-giessen.de> has left #libgdx
[11:22:05] *** mk1 <mk1!c291ebf8@gateway/web/cgi-irc/kiwiirc.com/ip.194.145.235.248> has joined #libgdx
[11:42:58] *** monsieur_h2 <monsieur_h2!~Thunderbi@194.125-14-84.ripe.coltfrance.com> has joined #libgdx
[11:44:40] *** monsieur_h <monsieur_h!~Thunderbi@194.125-14-84.ripe.coltfrance.com> has quit IRC (Ping timeout: 250 seconds)
[11:44:40] *** monsieur_h2 is now known as monsieur_h
[11:55:51] *** crazy_im1 <crazy_im1!~mj@a89-182-40-135.net-htp.de> has quit IRC (Quit: Reconnecting)
[11:55:57] *** crazy_imp <crazy_imp!~mj@unaffiliated/crazy-imp/x-8704303> has joined #libgdx
[11:58:21] <Ashiren> though time
[12:12:39] <monsieur_h> Ashiren: ?
[12:16:01] <Ashiren> nobody's here to answer newbie's question ~
[12:17:08] <mk1> if you don't ask you won't get an answer
[12:19:31] <Ashiren> its not for meh
[12:23:21] <TEttinger> Newbee: MOE and RoboVM both have ways to call Obj-C as I understand it
[12:23:44] <TEttinger> it's the only way they can call iOS libraries for things like ad display, so it can be done
[12:24:20] <TEttinger> there are some pre-made wrappers for existing obj-c libraries, but some may be out of date or not updated for the recent robovm changes
[12:24:49] <TEttinger> Newbee: Unity is very very different from libgdx in style and development approach
[12:29:13] *** guardianA <guardianA!~guardianA@58-7-194-122.dyn.iinet.net.au> has quit IRC (Ping timeout: 245 seconds)
[12:31:07] *** Shockah|Work <Shockah|Work!~Shockah@185.28.17.74> has quit IRC (Quit: This computer has gone to sleep)
[12:33:30] *** TEttinger <TEttinger!~notostrac@76-217-24-171.lightspeed.irvnca.sbcglobal.net> has quit IRC (Ping timeout: 252 seconds)
[12:35:02] *** mk1 is now known as mk1_lunch
[12:36:26] *** Newbee <Newbee!2be65a51@gateway/web/freenode/ip.43.230.90.81> has quit IRC (Ping timeout: 260 seconds)
[12:38:40] *** Shockah|Work <Shockah|Work!~Shockah@185.28.17.74> has joined #libgdx
[12:50:19] *** LyronDev <LyronDev!86937556@gateway/web/freenode/ip.134.147.117.86> has joined #libgdx
[12:53:20] *** wulax <wulax!~wulax@c-94-255-235-218.cust.bredband2.com> has quit IRC (Ping timeout: 260 seconds)
[13:04:21] *** mobidevelop <mobidevelop!~nexsoftwa@2607:fb90:2288:7cff:c0b6:d821:3802:650> has quit IRC (Remote host closed the connection)
[13:09:15] *** Sadale <Sadale!~Sadale@unaffiliated/sadale> has joined #libgdx
[13:13:24] *** monsieur_h1 <monsieur_h1!~Thunderbi@194.125-14-84.ripe.coltfrance.com> has quit IRC (Ping timeout: 260 seconds)
[13:26:38] *** mk1_lunch is now known as mk1
[13:31:15] *** log` <log`!~louie@unaffiliated/log/x-9960987> has quit IRC (Ping timeout: 252 seconds)
[13:37:39] *** dhk <dhk!~dhk@138.59.24.18> has joined #libgdx
[13:41:19] *** mobidevelop <mobidevelop!~nexsoftwa@2607:fb90:2288:7cff:c0b6:d821:3802:650> has joined #libgdx
[13:41:19] *** ChanServ sets mode: +o mobidevelop
[13:43:42] *** dhk <dhk!~dhk@138.59.24.18> has quit IRC (Quit: Leaving)
[13:47:40] *** dhk <dhk!~dhk@138.59.24.18> has joined #libgdx
[13:52:27] *** grim001 <grim001!~grim001@ip24-253-45-21.lv.lv.cox.net> has quit IRC (Read error: Connection reset by peer)
[14:03:40] *** BCX <BCX!d91fcd02@gateway/web/freenode/ip.217.31.205.2> has joined #libgdx
[14:10:52] <BCX> Did anyone experienced Music/Sound not playing in their android game ? It happens randomly in our game and we have no idea why :/
[14:11:22] <BCX> It works fine on other platforms tho
[14:12:14] <Tomski> If you have ran out of simultaneous sounds, if you try to play a sound before its fully loaded
[14:12:25] <Tomski> And android audio being terrible
[14:14:00] <BCX> There shouldnt be more than 2 simultaneous sounds playing at the same time.
[14:14:29] <BCX> I mean they are not playing, its still possible theyre somewhere else, doing nothing, blocking some stuff, breaking our game and laughing at us :/
[14:22:10] <BCX> It happens for music aswell which is weird because music is loading as its playing if i understand that correctly
[14:23:19] <Tomski> You aren't loading them directly before playing are you?
[14:24:11] <BCX> Nah, its more like if Gdx.app.newMusic(...) is not null, play it.
[14:24:24] <BCX> audio
[14:24:25] <BCX> not app
[14:24:30] <Tomski> When?
[14:24:41] <Tomski> You should load them before hand
[14:26:24] <BCX> We are not loading em, I thought you need to load sounds before playing em, not music.
[14:26:41] <BCX> Its really like Gdx.audio.newMusic(...).play();
[14:26:51] <BCX> atleast for the first time, then we cache it and use that instance instead :)
[14:27:12] <Tomski> Yeah, dont play after a call to load
[14:27:29] <Tomski> There isn't a gaurentee that they are loaded at that point in time
[14:27:56] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has joined #libgdx
[14:28:21] <BCX> Yea i see, is there any way to find out if they are loaded or blocking load method ?
[14:28:28] <Tomski> no
[14:29:39] <BCX> Oh okey, Ill try to load 'em when screen loads.. waay before playing em :) Thanks for the help
[14:32:18] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has quit IRC (Ping timeout: 244 seconds)
[14:38:27] *** davimore_ <davimore_!~davimore@46.227.67.83> has joined #libgdx
[14:41:36] *** davimore__ <davimore__!~davimore@46.227.67.83> has quit IRC (Ping timeout: 260 seconds)
[14:41:55] *** Isogash <Isogash!~Isogash@87.127.112.116> has joined #libgdx
[14:56:45] *** LyronDev <LyronDev!86937556@gateway/web/freenode/ip.134.147.117.86> has quit IRC (Quit: Page closed)
[14:59:44] *** guardianA <guardianA!~guardianA@58-7-202-119.dyn.iinet.net.au> has joined #libgdx
[15:04:19] *** Ghandhikus <Ghandhikus!~Ghandhiku@host-92-1-230-204.as43234.net> has joined #libgdx
[15:04:40] <Ghandhikus> hey how do i get translation out of spritebatch? this code returns 0,0,0 Vector3 offset = batch.getTransformMatrix().getTranslation(new Vector3());
[15:06:22] <Ghandhikus> i am sure that i do translate it before with this camera.translate(offset.x, offset.y); camera.update(); batch.setProjectionMatrix(camera.combined);
[15:06:25] *** atrus6 <atrus6!~Thunderbi@72.241.82.247> has joined #libgdx
[15:07:59] *** BCX <BCX!d91fcd02@gateway/web/freenode/ip.217.31.205.2> has quit IRC (Quit: Page closed)
[15:10:35] <mobidevelop> You are setting the projection matrix, why would you try to get a value from a different matrix?
[15:11:26] <Ghandhikus> same with getProjectionMatrix
[15:12:00] <Ghandhikus> the only difference between them is that z is -1.0 on projection
[15:12:49] *** jwinterm <jwinterm!~quassel@c-67-187-195-65.hsd1.ca.comcast.net> has joined #libgdx
[15:18:54] <Ghandhikus> i am using OrthographicCamera if that makes any difference
[15:20:55] *** ariejan <ariejan!~ariejan@81.20.68.181> has joined #libgdx
[15:20:56] *** ariejan <ariejan!~ariejan@81.20.68.181> has quit IRC (Client Quit)
[15:21:46] *** isdera <isdera!~isdera@cpe-74-78-187-102.maine.res.rr.com> has joined #libgdx
[15:23:35] <Ghandhikus> yep it doesnt work and i dont get what i do wrong http://pastebin.com/rxbwUER6
[15:24:12] <Tomski> getTranslation isnt a valid method for a projection matrix
[15:24:36] <Ghandhikus> so how should i get offset out of this?
[15:25:30] <Tomski> You dont
[15:25:35] <Ghandhikus> i see
[15:25:41] <Tomski> If you really want to you can deconstruct the combined projection matrix with a bit of effort
[15:25:47] <Tomski> but its not really something you should be doing
[15:25:58] <Tomski> You know the offset before hand, so why are you trying to get it from the project matrix
[15:26:35] <diphtherial> agreed, constructing matrices is cheap, but storing data in them is error-prone and inverting them can be tricky
[15:26:56] *** Kotcrab <Kotcrab!uid51771@gateway/web/irccloud.com/x-haxowjtkdnbaaydh> has joined #libgdx
[15:27:08] <Ghandhikus> i will just pass it with object that contains all the data
[15:27:13] <diphtherial> endlessly applying transformations is also error-prone, e.g. rotations often end up producing 'gimbal lock'
[15:27:16] <Ghandhikus> the offset i mean
[15:30:21] <Ghandhikus> thanks for help
[15:34:22] *** realitix <realitix!~Thunderbi@92.103.166.6> has quit IRC (Remote host closed the connection)
[15:47:40] *** Ghandhikus <Ghandhikus!~Ghandhiku@host-92-1-230-204.as43234.net> has quit IRC (Remote host closed the connection)
[15:55:17] *** rgr <rgr!~user@p20030086AB0F06237EDD90FFFE49493A.dip0.t-ipconnect.de> has joined #libgdx
[15:57:27] *** X-Ray-Jin <X-Ray-Jin!~X-Ray-Jin@dslb-088-071-010-020.088.071.pools.vodafone-ip.de> has joined #libgdx
[16:08:28] *** davimore__ <davimore__!~davimore@46.227.67.83> has joined #libgdx
[16:10:51] *** davimore <davimore!~davimore@46.227.67.83> has joined #libgdx
[16:11:20] *** davimore_ <davimore_!~davimore@46.227.67.83> has quit IRC (Ping timeout: 250 seconds)
[16:13:04] *** davimore__ <davimore__!~davimore@46.227.67.83> has quit IRC (Ping timeout: 250 seconds)
[16:16:18] *** jeffol <jeffol!~jeffol@65.158.118.6> has joined #libgdx
[16:22:24] *** rottz <rottz!~rottz@189.29.180.75> has joined #libgdx
[16:22:30] *** rottz <rottz!~rottz@189.29.180.75> has quit IRC (Client Quit)
[16:26:04] *** thedanisaur <thedanisaur!~thedanisa@70.103.41.34> has joined #libgdx
[16:29:13] *** Kuvis <Kuvis!~owner@line-5467.dyn.kponet.fi> has joined #libgdx
[16:37:27] *** rubenwardy <rubenwardy!~rubenward@unaffiliated/rubenwardy> has joined #libgdx
[16:42:54] *** Xoppa <Xoppa!~Xoppa@54689556.cm-12-1c.dynamic.ziggo.nl> has joined #libgdx
[16:42:54] *** ChanServ sets mode: +o Xoppa
[16:44:30] *** isdera <isdera!~isdera@cpe-74-78-187-102.maine.res.rr.com> has quit IRC (Ping timeout: 268 seconds)
[16:46:28] *** davimore_ <davimore_!~davimore@46.227.67.83> has joined #libgdx
[16:49:02] *** davimore <davimore!~davimore@46.227.67.83> has quit IRC (Ping timeout: 250 seconds)
[16:58:59] *** log` <log`!~louie@0189800268.0.fullrate.ninja> has joined #libgdx
[16:58:59] *** log` <log`!~louie@0189800268.0.fullrate.ninja> has quit IRC (Changing host)
[16:58:59] *** log` <log`!~louie@unaffiliated/log/x-9960987> has joined #libgdx
[16:59:45] *** thedanisaur <thedanisaur!~thedanisa@70.103.41.34> has quit IRC (Read error: Connection reset by peer)
[16:59:48] *** rubenwardy <rubenwardy!~rubenward@unaffiliated/rubenwardy> has quit IRC (Ping timeout: 260 seconds)
[17:03:19] *** CaptainLex <CaptainLex!~CaptainLe@12.104.244.5> has joined #libgdx
[17:05:54] *** Shockah|Work <Shockah|Work!~Shockah@185.28.17.74> has quit IRC (Quit: Leaving)
[17:16:55] *** mk1 <mk1!c291ebf8@gateway/web/cgi-irc/kiwiirc.com/ip.194.145.235.248> has quit IRC (Quit: Leaving)
[17:21:26] *** Oebele <Oebele!~quassel@143.177.58.202> has joined #libgdx
[17:28:57] *** rubenwardy <rubenwardy!~rubenward@unaffiliated/rubenwardy> has joined #libgdx
[17:33:25] *** dhk <dhk!~dhk@138.59.24.18> has quit IRC (Ping timeout: 265 seconds)
[17:43:52] *** Shockah <Shockah!~Shockah@aub101.neoplus.adsl.tpnet.pl> has joined #libgdx
[17:51:36] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has joined #libgdx
[17:54:51] *** rubenwardy <rubenwardy!~rubenward@unaffiliated/rubenwardy> has quit IRC (Remote host closed the connection)
[18:05:24] *** [AD]Turbo <[AD]Turbo!~ADTurbo@host242-241-dynamic.56-79-r.retail.telecomitalia.it> has quit IRC ()
[18:19:28] *** davimore__ <davimore__!~davimore@46.227.67.83> has joined #libgdx
[18:22:13] *** davimore_ <davimore_!~davimore@46.227.67.83> has quit IRC (Ping timeout: 244 seconds)
[18:25:05] *** Serpent7776 <Serpent7776!~Serpent77@90-156-68-175.internetia.net.pl> has quit IRC (Quit: Leaving)
[18:25:35] *** Tzeentch-cultist <Tzeentch-cultist!~tzeen-cul@82-181-134-148.bb.dnainternet.fi> has joined #libgdx
[18:34:37] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has quit IRC (Remote host closed the connection)
[18:44:30] *** LyronDev <LyronDev!869343e1@gateway/web/freenode/ip.134.147.67.225> has joined #libgdx
[18:50:51] *** Sadale <Sadale!~Sadale@unaffiliated/sadale> has quit IRC (Quit: Ĝis revido)
[19:01:44] *** NooBxGockeL <NooBxGockeL!~NooBxGock@p200300802D2E130089F0B3A84E0272D3.dip0.t-ipconnect.de> has joined #libgdx
[19:24:53] *** intrigus <intrigus!uid114902@gateway/web/irccloud.com/x-svkeibrzwwyenyma> has joined #libgdx
[19:30:37] *** kjempff <kjempff!~kvirc@0133501203.0.fullrate.ninja> has joined #libgdx
[19:35:14] *** davimore <davimore!~davimore@46.227.67.83> has joined #libgdx
[19:36:35] *** davimore__ <davimore__!~davimore@46.227.67.83> has quit IRC (Ping timeout: 252 seconds)
[19:39:07] <cackling_ladies> is there a feature complete library to import skeletal animation from flash to libgdx with the result of not having to embed flash player or adobe air?
[19:40:24] *** mxttie <mxttie!~mattie@d51a46969.access.telenet.be> has joined #libgdx
[19:41:57] *** wulax <wulax!~wulax@c-94-255-235-218.cust.bredband2.com> has joined #libgdx
[19:54:02] *** davimore_ <davimore_!~davimore@46.227.67.83> has joined #libgdx
[19:56:43] *** Betalord <Betalord!bce68946@gateway/web/freenode/ip.188.230.137.70> has joined #libgdx
[19:56:54] <Betalord> hi
[19:57:14] *** Joozey <Joozey!~Joozey@ip5452bbda.speed.planet.nl> has joined #libgdx
[19:57:45] *** davimore <davimore!~davimore@46.227.67.83> has quit IRC (Ping timeout: 256 seconds)
[19:58:17] <Betalord> is there a way to turn on "smoothing" for StretchViewport? The thing is when it stretches everything, everything becomes pixelated (as aspected), but I would like to smooth the pixels (like GL_LINEAR for textures). How do I do that?
[19:58:50] <Betalord> or, for that matter, how do I do that for entire screen in general (even when not using stretched viewport)?
[19:59:21] <Tomski> Thats not a property of a viewport but the textures themselves
[19:59:25] <Betalord> and the other question, related to this one, is: how to smooth lines, circles and other stuff drawn with ShapeRenderer?
[20:00:19] <Betalord> Tomski: exactly. I used that as an example. What I would like to achieve is similar effect for the entire screen (and not a particular texture).
[20:00:48] <Tomski> Thats not how filtering works
[20:02:21] *** ficolas <ficolas!5d7295f1@gateway/web/freenode/ip.93.114.149.241> has joined #libgdx
[20:03:16] <Tomski> Do you have an example of what you trying to avoid?
[20:03:22] *** NooBxGockeL <NooBxGockeL!~NooBxGock@p200300802D2E130089F0B3A84E0272D3.dip0.t-ipconnect.de> has quit IRC (Remote host closed the connection)
[20:03:23] *** guardianA <guardianA!~guardianA@58-7-202-119.dyn.iinet.net.au> has quit IRC (Ping timeout: 245 seconds)
[20:03:27] <Betalord> Tomski: if you imagine entire screen as a texture that you stretch (StretchViewport does that), then it is exactly like this that the filtering works
[20:03:44] <Tomski> No it doesnt
[20:03:55] <Betalord> Tomski: am not trying to avoid anything... I would like to smooth up edges, like I said.
[20:05:12] <Tomski> Stretch viewport handles how a viewport resizes based on the screen resolution
[20:06:14] <Tomski> As I said, perhaps provide an example if what your issue is
[20:06:57] <Tomski> If you are talking about aliasing you can use anti aliasing techniques, and the inbuilt MSAA
[20:07:13] <Betalord> yes, I'm talking about anti-aliasing... exactly
[20:13:43] <Betalord> when I was still using raw lwjgl, I used GL11.glEnable(GL11.GL_POLYGON_SMOOTH) and GL_LINE_SMOOTH and GL_POINT_SMOOTH ... not sure how to do that in libgdx without actually calling this low level calls?
[20:15:11] <Tomski> Use msaa
[20:15:28] <Tomski> Configurable in the ApplicationConfiguration
[20:17:37] <cackling_ladies> samples right?
[20:18:10] *** smelC <smelC!~churlin@gateway.provenrun.com> has quit IRC (Quit: www.schplaf.org/hgames/)
[20:18:23] <Betalord> config.samples=2 you mean?
[20:18:48] <Betalord> that is, LwjglApplicationConfiguration.samples=2 (or 4 or whatever)
[20:19:51] <Betalord> yeah, that's one thing, what about those GL_LINE_SMOOTH and polygon smooth?
[20:21:31] *** laubed <laubed!~Thunderbi@p57A94756.dip0.t-ipconnect.de> has joined #libgdx
[20:23:35] <Tomski> its redundant
[20:23:42] *** Freiza <Freiza!~Freiza@117.205.145.160> has joined #libgdx
[20:24:38] *** lukass_ <lukass_!~lukass@p5087C924.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 245 seconds)
[20:27:25] *** lukass <lukass!~lukass@p5087C924.dip0.t-ipconnect.de> has joined #libgdx
[21:05:38] *** davimore_ <davimore_!~davimore@46.227.67.83> has quit IRC (Ping timeout: 256 seconds)
[21:14:00] *** icomputo <icomputo!~saku@148.227.223.248> has joined #libgdx
[21:16:44] *** Kuvis <Kuvis!~owner@line-5467.dyn.kponet.fi> has quit IRC (Remote host closed the connection)
[21:33:02] *** Keniyal <Keniyal!~Keniyal@unaffiliated/keniyal> has joined #libgdx
[21:36:02] *** jonfloren <jonfloren!519b291b@gateway/web/freenode/ip.81.155.41.27> has joined #libgdx
[21:36:08] <jonfloren> Hola... can anyone help me? :)
[21:38:24] <Ashiren> can we?
[21:38:33] <jonfloren> I mean I'll just type it up anyways, but I'm making an isometric 3D game. I've got an ortho camera, and I've got a player which is a Sprite mapped on one face of a Box with like 0.1f depth
[21:38:35] <jonfloren> Ah
[21:38:52] <jonfloren> Then I've got some floor which is a bunch of box/model things, and I'm trying to move it accross the floor
[21:39:18] *** phibedy <phibedy!~phibedy@ip5f5ac603.dynamic.kabel-deutschland.de> has joined #libgdx
[21:39:20] <jonfloren> but the direction it goes isn't really how I thought it should be, it kinda follows parallel to the edge of the map, rather than left/right how you'd want it to go
[21:39:56] *** Freiza <Freiza!~Freiza@117.205.145.160> has quit IRC (Quit: Leaving)
[21:40:39] <jonfloren> Like I want it to go like this: http://i.imgur.com/Hn8vTvm.png
[21:41:08] <jonfloren> But it ends up more like this: http://i.imgur.com/0u8W7Yj.png
[21:41:10] <Xoppa> how is your camera setup?
[21:41:29] <jonfloren> So it's an ortho camera set at (300, 300, 300) to look at (0, 0, 0)
[21:41:31] *** karab44 <karab44!~karab44@unaffiliated/karab44> has joined #libgdx
[21:41:33] <jonfloren> far is 1000f, and that's about it
[21:41:47] <jonfloren> Wait it's actually at (300, 360, 360) my bad
[21:41:47] <Xoppa> very unlikely
[21:42:13] <jonfloren> I'm kinda new to 3D so I'm programming it like a 2D game.. so I think it's my movement code
[21:42:17] <Xoppa> pastebin your sscce.org
[21:42:29] <jonfloren> Which is basically W => vel = Vector(0, 0, -1)
[21:42:45] <jonfloren> Aye ok
[21:44:27] <jonfloren> http://pastebin.com/raw/gSTvx71T
[21:44:28] <jonfloren> Bam
[21:44:48] <Xoppa> click on the link and try again: sscce.org
[21:45:05] *** davimore <davimore!~davimore@46.227.67.83> has joined #libgdx
[21:45:25] <jonfloren> I mean I'm not quite sure how you would make the problem self contained
[21:45:34] <jonfloren> That'd be a pretty long snippet
[21:45:38] <Betalord> a quick question: I'm trying to do some custom drawing using opengl in libgdx, and figured I should use ImmediateModeRenderer. Now my question is this: I am already using ShapeRenderer, will the two interfer? Can I use them both?
[21:45:59] <Xoppa> if that link didnt help you enough, then try this link: https://github.com/libgdx/libgdx/wiki/Getting-Help make sure to read it entirely
[21:46:30] <Xoppa> Betalord, why?
[21:46:44] <jonfloren> That's a bit better, ta Xoppa
[21:47:01] <Xoppa> what does ImmediateModeRenderer offer you that ShapeRenderer doesnt Betalord?
[21:47:18] <Betalord> Xoppa: don't know, perhaps each renderer sets up some stuff like blending on/off and other things and they may duplicate these calls or even contradict one another... I don't know, no idea how's implemented. That's why I'm asking
[21:47:45] <Xoppa> no, i am asking why you want to use them both Betalord?
[21:48:15] <Betalord> Xoppa: I am trying to implement my own circle rendering and some other drawing routines. I figured I would use ImmediateModeRenderer, but hey, I don't know - if you can suggest me something else, please do!
[21:48:35] <Xoppa> why did you figure that?
[21:48:52] <Xoppa> what the reasoning behind that?
[21:49:14] <Betalord> and I was thinking about using them both because I would like to use some drawing routines implemented in ShapeRenderer, others I want to implement myself
[21:49:27] <Betalord> the reasoning is this: http://gamedev.stackexchange.com/questions/27651/erasing-part-of-lines-in-libgdx-with-immediatemoderenderer
[21:49:55] <Betalord> I obviously can't call those low level gl calls using ShapeRenderer, now can I?
[21:50:12] <Xoppa> which low level gl calls?
[21:50:30] <Betalord> begin(matrix, GL10.GL_LINES);
[21:50:37] <Betalord> vertex(x0, y0, 0);
[21:50:38] <Betalord> etc.
[21:50:42] <Xoppa> eeeewww
[21:50:55] <Xoppa> no, that are NOT low level gl calls
[21:50:56] <[twisti]> GL10 ?
[21:50:59] <Tomski> lol
[21:51:48] <Xoppa> perhaps step back a bit and try to explain what you really want to do Betalord
[21:52:33] <Betalord> ok, this is the line routine I would like to write using libgdx: http://pastebin.com/Jdfuxuww
[21:52:55] <Xoppa> why?
[21:54:03] <Betalord> what kind of question is that? I need it, because I need to draw GL_LINE_LOOP which I need in my custom circle drawing routine, which I want to use because it gives me more control over how to draw circles... I can do much more optimized drawing of circles than ShapeRenderer, together with smoothing and so on
[21:54:23] <Betalord> I am testing out different algorithms for drawing circles.
[21:54:37] <Betalord> I just want more control over things
[21:54:58] <Xoppa> ok, you might want to take another step back
[21:55:20] <Xoppa> somehow you got the impression that using a line loop is a good way to render a circle?
[21:55:26] <Xoppa> why do you think that?
[21:55:53] <jonfloren> Eh I mean it doesn't really answer his question, he just wants to try algorithms in the quickest/dirtiest way possible I presume. As far as I know they dont interefere as long as you begin/end your batch calls accordingly.
[21:56:34] <Betalord> Xoppa: please... I just need to access GL calls and do some custom stuff.
[21:56:53] <Betalord> Xoppa: It doesn't matter why I need line loops, I just do
[21:56:54] <Xoppa> no, jonfloren, he is just posting old and obsolete code and tries to adopt it to a modern graphics pipeline, which is an obvious mistake
[21:57:00] <jonfloren> ^^ Maybe it's a deprecated API from like the 90s, but if it gets the job done it works
[21:57:03] *** karab44 <karab44!~karab44@unaffiliated/karab44> has quit IRC ()
[21:57:20] <Xoppa> libgdx does not support opengl es 1.x anymore, not should you
[21:57:29] <Xoppa> *not=nor
[21:57:40] <Tomski> If you want to create crisp line/shape rendering you shouldnt be using primitve rendering at all
[21:57:49] <Betalord> ok let me rephrase the question: how do I get to call GL calls in libgdx? Is ImmediateModeRenderer the answer, or should I use something else?
[21:58:13] <Xoppa> you get access to all opengl es 2.0 calls using Gdx.gl.xxxx Betalord
[21:58:28] <[twisti]> Betalord: a long time ago i got code for this circle drawing code from someone here: http://i.imgur.com/NlXxg8f.png
[21:58:40] <[twisti]> its a custom shader, if you want it, let me know and ill dig it up
[21:59:06] <Betalord> twisti: not that looks nice! Sure, if you can find it, I'm all for it :)
[21:59:10] <Betalord> not=now
[21:59:12] <Xoppa> ImmediateModeRenderer is certainly not a class that gives you ¨more control over things¨
[22:00:31] <[twisti]> Betalord: can you view https://bitbucket.org/Twisti/tdtest04/src/89504ab3781cd067f960ae279b1be44e85725154/tdtest04/core/src/main/java/com/boringville/td/tdtest04/core/tools/GeometryDrawer.java?at=master&fileviewer=file-view-default ?
[22:00:57] <Betalord> Xoppa: em, no, Gdx.gl doesn't have glBegin etc., which I need
[22:01:30] <Betalord> twisti: I get an error
[22:01:38] <[twisti]> then let me pastebin it
[22:02:35] <[twisti]> this is the java code, which relies on two shader files: http://pastebin.com/v8bXPAyP
[22:03:31] *** Xoppa_ <Xoppa_!~Xoppa@54689556.cm-12-1c.dynamic.ziggo.nl> has joined #libgdx
[22:03:31] *** ChanServ sets mode: +o Xoppa_
[22:03:34] <[twisti]> this is circle.vert http://pastebin.com/azamKJ8z and this is circle.frag http://pastebin.com/nL6vAe5P
[22:03:35] <Tomski> All that fixed pipeline stuff is dead, and shouldnt be used
[22:06:04] <Xoppa_> Betalord, glBegin is not supported anymore for quite some time now. it simply isnt part of opengl anymore. The source where you got those snippets is outdated.
[22:06:36] *** Xoppa <Xoppa!~Xoppa@54689556.cm-12-1c.dynamic.ziggo.nl> has quit IRC (Ping timeout: 252 seconds)
[22:06:47] *** Xoppa_ is now known as Xoppa
[22:08:19] <Betalord> Xoppa: ah ok, didn't know about that. I was thinking that for prototyping it would still be fine
[22:08:53] <Xoppa> no it isn´t, which is why i asked what you really want to do, so we can help you do that, Betalord
[22:11:04] <Betalord> very well, I'll try to port twisti's code to my project right now. Seems complicated using shaders and all (haven't done that before), but I'll try
[22:11:48] <Xoppa> if its just prototyping then you might not have to use shaders, but that depends on what you actually want to achieve
[22:14:45] *** jonfloren <jonfloren!519b291b@gateway/web/freenode/ip.81.155.41.27> has quit IRC (Quit: Page closed)
[22:21:52] *** karab44 <karab44!~karab44@unaffiliated/karab44> has joined #libgdx
[22:23:25] <Betalord> [twisti]: wow, that's a pretty nice circle! It works like a charm. Thanks! :)
[22:26:52] <[twisti]> i thought so too, like i said, its not mine, got it from someone else here, sadly dont remember who
[22:28:25] <Betalord> now what I'd need is a similar routine that draws a filled circle. Any idea on how to modify that shader to achieve it?
[22:29:00] <[twisti]> well, it already fills the circle with a thin layer of red, shouldnt be hard to adjust so its more filled
[22:29:38] *** davimore_ <davimore_!~davimore@46.227.67.83> has joined #libgdx
[22:32:17] *** davimore <davimore!~davimore@46.227.67.83> has quit IRC (Ping timeout: 244 seconds)
[22:34:14] <Betalord> problem solved, that last line of shader (0.88) tell about the "filled" color. Perfect!
[22:39:29] <Betalord> btw, does anyone else have this GeometryDrawer that twisti posted? I'd be needing more shapes (polygons, elipses, etc.)
[22:39:52] *** phibedy <phibedy!~phibedy@ip5f5ac603.dynamic.kabel-deutschland.de> has quit IRC (Ping timeout: 250 seconds)
[22:42:02] <[twisti]> i know i got it from here and it had a bunch more shapes, maybe someone has it in an old log ?
[22:45:45] <intrigus> Happy echelog-searching
[22:48:10] *** davimore__ <davimore__!~davimore@253-148-045-062.dynamic.caiway.nl> has joined #libgdx
[22:49:20] *** laubed <laubed!~Thunderbi@p57A94756.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 244 seconds)
[22:50:52] *** davimore_ <davimore_!~davimore@46.227.67.83> has quit IRC (Ping timeout: 250 seconds)
[22:52:19] *** TEttinger <TEttinger!~notostrac@76-217-24-171.lightspeed.irvnca.sbcglobal.net> has joined #libgdx
[22:54:07] *** Oebele <Oebele!~quassel@143.177.58.202> has quit IRC (Read error: Connection reset by peer)
[23:00:37] <Betalord> found it! But the link is long dead... it was ParkourGrip
[23:09:48] *** karab44 <karab44!~karab44@unaffiliated/karab44> has quit IRC ()
[23:11:35] *** Matseman- <Matseman-!~Matsemann@vps.matsemann.com> has quit IRC (Quit: Ops)
[23:12:52] *** Matsemann <Matsemann!~Matsemann@vps.matsemann.com> has joined #libgdx
[23:14:33] *** Neomex <Neomex!~Neomex@dub107.neoplus.adsl.tpnet.pl> has quit IRC (Quit: Leaving)
[23:31:55] *** guardianA <guardianA!~guardianA@58-7-202-119.dyn.iinet.net.au> has joined #libgdx
[23:32:13] *** rgruber_ <rgruber_!~rgruber@cpc12-nmal18-2-0-cust864.croy.cable.virginm.net> has joined #libgdx
[23:33:59] *** Shockah <Shockah!~Shockah@aub101.neoplus.adsl.tpnet.pl> has quit IRC (Quit: Leaving)
[23:34:12] *** rgruber <rgruber!~rgruber@cpc12-nmal18-2-0-cust864.croy.cable.virginm.net> has quit IRC (Ping timeout: 252 seconds)
[23:43:36] <cackling_ladies> I'm trying to import flash skeletal animation to libgdx. It seems that the general agreed approach is flash -> json -> libgdx. Actual usage is something like flash -> flump ( to convert to json) -> flumpGdx(to make that json usable in libgdx) -> libgdx
[23:43:53] <cackling_ladies> is that flumpgdx any good or are there any other recommendation?
[23:46:56] <Xoppa> whats a flash skeletal animation?
[23:51:34] *** matthewt <matthewt!matthew@namibia.aviation.fi> has quit IRC (Quit: leaving)
[23:54:43] *** laubed <laubed!~Thunderbi@p57A94756.dip0.t-ipconnect.de> has joined #libgdx
top

   October 20, 2016  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | >