« first day (1597 days earlier)      last day (3406 days later) » 

12:00 PM
@Jon Thanks for that article though it seems interesting
 
@Tyyppi_77 Those only allow me to edit/view the NBT
I can't use that in a program
 
user92578
see if some of those are open sourced and check out how they do it
 
user92578
also check out PyMCLevel, it handles the same stuff as you need to
 
user92578
that is definetely os
 
12:02 PM
Ok
 
Jon
reverse engineering for fun is always cool in my book
 
Jon
do you know what is one of the biggest sucks about vb.net?
no multi-line comment blocks
 
Just use this:
#if false

#endif
 
Jon
yeah but
that is just ugly
 
12:06 PM
meh
 
Jon
better off using your IDE and click the comment button
 
Ctrl K Ctrl C
 
Jon
yeah I know about the two hit CTRL
just as inconvenient as a click in the toolbar, lol
 
Not really.
If you're looking for something more convenient than keyboard shortcuts then you're expecting a bit much :P
 
Jon
voice commands
"Computer, comment out the code i'm thinking about"
 
12:09 PM
Good luck there.
 
Jon
i remember voice dictation became this huge thing in the 90s
but it was shit
you had to train it, and it still didn't work
 
user92578
do you guys use NSight?
 
user92578
it's giving me this in a log file: glTexParameterf (Zero texture object not supported -- encountered on target of GL_TEXTURE_2D)
 
Jon
sounds like a null texture is trying to be accessed
 
user92578
not that that is the only problem... :D
 
user92578
12:22 PM
 
Jon
ouf
looks like a closeup of a smurf
 
user92578
moved to VAO stuff from the glVertex stuff
 
user92578
so I kinda expected this to happen, as I was pretty much programming like "I have no idea what I'm doing" yesterday
 
Jon
gotta start somewhere
i'm programming web services for a project i never worked on
here guys, use my webservices, lol
its the new way now :)
they used to be passing XML to our webservices -- so now its gonna be objects
the old service, parses out XML can you believe that? lol
if they change anything in the XML it breaks the webservice
Think about this.
 
user92578
glTexParameterf (Zero texture object not supported -- encountered on target of GL_TEXTURE_2D)
                                                   glTexEnvf
 
user92578
12:31 PM
that's the complete Nsight log
 
Jon
might be an nsight bug
 
user92578
was actually my bug, i didnt bind the texture first
 
Jon
Do not use GL_TEXTURE_2D glTexParameteri/glTexParameterf with multisample textures
ah, ok, cool
 
user92578
now to the real problem... why is the rendering so weird
 
Jon
almost looks like the viewport is zoomed
 
user92578
12:35 PM
I need to open my laptop so that I can get my two main screens for code and then the laptop for the chat
 
user92578
too.... many... files...
 
user92578
i need a third screen.... but there's no room on my desk
 
Jon
Ideally, I'd hook up a 46inch screen above my two 23 inch monitors
 
user92578
the laptop is kinda like a third screen for me as I have my mouse and keyboard events sent to it
 
user92578
:D
 
Jon
12:37 PM
lol j/k
 
user92578
I can't find a GLSL syntax highlighter thingy for VS..?
 
Jon
did you install nsight for VS?
 
user92578
yeah
 
user92578
now visual studio thinks that my .fs (FragmentShader) file is a Visual F# file
 
@Tyyppi_77 from now on, use .frag instead of .fs
 
Jon
12:41 PM
gonna add a frag counter to my puzzle game.
it will always be 0
drive people crazy
Writing a Serializer, la la la
holy shit its still early, i need to slow down
almost blew right through this work
 
user92578
feeling pretty bad-ass
 
user92578
 
Jon
LOL, looks exactly like my setup right now
 
user92578
pic or it doesn't
 
Jon
12:55 PM
 
user92578
but this NSight, like, "let's do an OpenGL debug thingy!" - "Yeah totally, but let's not put any shader syntax things in it!"
 
Jon
i'm messy
 
user92578
screens connected to the laptop?
 
@Ali.S it's a derogatory term that I really just don't like hearing
 
Jon
no.. screen connected to another dev box
 
user92578
12:57 PM
ah, me too. My laptop only has firefox and ms office tough, so not a dev laptop
 
user92578
and it has a 13'' screen so it's like really small
 
Jon
do you like my ghetto mouse pad?
 
user92578
I can't see it very well
 
Me before my third monitor (bottom right is a wacom tablet)
 
Jon
12:58 PM
lol @SpartanDonut
 
user92578
that's really cool @SpartanDonut
 
Jon
i have a shit bamboo
 
user92578
I think I might get myself one too
 
Jon
Yeah.. i want a rift first
so many things I need to buy, lol
 
user92578
:D
 
user92578
1:01 PM
A bug in VS: if a VS window is inactive, but still visible, you get hover effects on menus, but you can't activate the menus before you click in the code editor thus giving the window focus
 
user92578
1:12 PM
I learnt that atleast my textures seem to be upside down:
 
user92578
 
Jon
if your projection is inverted
getting closer looks good
 
user92578
getting closer... was doing vector * matrix in the shader instead of the supposed matrix * vector
 
Jon
cool
 
Jon
1:37 PM
wrote my serializer
wrote my webservice skeleton... wrote my model draft
wrote my web test
running this now -- at this rate i'll be done by noon
 
yay?
 
Jon
hell yeah
 
2:18 PM
@Tyyppi_77 Hi
 
user92578
for some reason the texture coordinates are not ever in the correct order the first time
 
There he is
 
user92578
@7Blue_Beast7 Hey
 
@Tyyppi_77 Hows your game been going?
 
user92578
finished it as a prototype like a month ago
 
Jon
2:19 PM
supernova apparently
 
nice.
 
Hey @SpartanDonut
 
user92578
now I'm working on turning the code of it into a framework for me
 
Blue!
 
Jon
you gonna share it?
 
user92578
2:20 PM
that has OpenGL rendering so that I can create amazing shader effects
 
Jon
or keep it all to yourself?
 
user92578
Not sure yet
 
How are you doing bro?
 
@Tyyppi_77 So I set a course for my self
 
user92578
What did you choose?
 
Jon
2:20 PM
I was thinking about releasing my 2d tile engine
 
@Blue Keeping busy. Check it out - intellisenseless.com/Media/Games/TwinStickTest/index.html
 
Im headed for Quantum Nanobiology and Game Development (For creating a company).
 
Jon
its a lot of work for me to do it, so its on a backburner
 
I'll be able to handle with Reality and Virtual Reality
 
Jon
today?
 
2:22 PM
My dad is suprised I said that
 
@Jon Hm?
 
user92578
So I need to be able to render like general boxes and stuff in OpenGL, so I guess I need to make a separate shader for rendering geometry like that? I need atleast a box with just an outline and then a filled box too
 
@Blue what are the hot new features?
 
@Tyyppi_77 So you are still working on the game right?
 
user92578
2:24 PM
Not really
 
@SpartanDonut it works.
 
Jon
ok, how do i get more winter jam hats?>
 
That's what :P
 
user92578
I'll probably do a full game like it one day, but now it's just a really bad prototype
 
@Blue haha. I presume it works with Ultra now despite what the home page says?
 
2:25 PM
So what are you working on now?
 
oh my goodness I forgot that with my new found 2k rep I don't need approvals for edits :D
 
user92578
As I said, I'm turning the GunHero code base into a C++-framework for more rapid development for me in the future. Currently I'm working on implementing my own OpenGL rendering instead of the bad SDL rendering
 
Jon
I think that is a pretty good path
Just promise me you end up making a game with it
 
user92578
I promise
 
user92578
I just need an idea for a game
 
2:32 PM
@SpartanDonut yes.
 
Nice
 
@Tyyppi_77 Sadly, I am still using blender for school projects :C
 
user92578
Is there something wrong in using Blender for games in your opinion?
 
No, but it would be dumb idea to have my employees in a game company using it
 
Jon
i think its fine if you are good at it for prototyping
how do you release a blender game?
 
2:36 PM
Use the Game Dev Release Addon
 
Jon
what does that do?
 
They are linking to the web so you can save the game and then send it where you want it
I don't know if they'll let you be super specific on where you send your game to but it allows other user to play it.
 
Jon
how do they play it?
do they need to install a blender player?
 
Nope
It'll be like any other downloadable game
With in-game instructions to.
Sadly, they haven't planned on implementing it in blender yet but you can instal the add-on to blender
 
Jon
so what is it pc only?
 
2:41 PM
PC and Mac
For Science i get to design a Future car and write down the actual designs and stuff for next semester
However there is a class for Hgih School that offers you to create stuff with CAD
 
user92578
Slowly getting closer:
 
user92578
 
user92578
I added this really simple but really usefull feature: you can edit shaders run-time and just press f5 in-game to reload the shaders
 
@Joe did you ever come up with a solution to this problem? gamedev.stackexchange.com/questions/83617/…
 
Joe
2:57 PM
^ I was actually drawing my joysticks with main camera on right on the gui i never had that issue
 
user92578
...and closer:
 
user92578
 
@Joe I mean this sounds like the same issue you had with the inventory
At least as far as what I reproduced of that issue (WASD interfered with input events which would be the same as joystick)
 
Joe
@SpartanDonut OO Inventory
submit an answer lets see if that does the trick for him
its similar but i dont know if its perfectly relevant
 
3:12 PM
Well it was asked in September so who knows if he'll even read it
 
Joe
good call on the relevance though
 
But I give you a vote and that makes the question answered by our standards
 
Joe
hey im always happy to put in an answer if I can honestly say I grasp whats going on
but im still pretty green, to unity dev at least
 
Hey guys I have a little question. I have a shader with 3 mat4 uniform objects.
But only one I can get through glGetUniformLocation. Names are correct, I checked thousand times.
Why is that so?
uniform mat4 u_WVPMatrix;
uniform mat4 u_WMatrix;
matrixTransform = glGetUniformLocation(program, "u_matT");
WVPMatrixUniform = glGetUniformLocation(program, "u_WVPMatrix");
worldMatrixUniform = glGetUniformLocation(program, "u_WMatrix");
 
user92578
what's the error? or are the locations same?
 
3:24 PM
only WVP is loaded. UWMatrix equals -1.
What do you mean locations?
 
user92578
the locations glGetUnformLocation returns
 
WVPMatrixUniform = glGetUniformLocation(program, "u_WVPMatrix"); return 1, but worldMatrixUniform = glGetUniformLocation(program, "u_WMatrix"); returns -1.
I expect worldMatrixUniform = glGetUniformLocation(program, "u_WMatrix") to return 1
u_WMatrix present in shader as uniform mat4
@Tyyppi_77 any ideas?
 
user92578
like they should be different
 
user92578
but the data is not getting passed around?
 
user92578
the order of uniforms in a shader file doesn't mean the location of it
 
3:32 PM
@JesusChrist :O you're back
I've been waiting 2014 years for you :3
 
don't you mean 1981 years?
 
@Hippalectryon yes, I'm here
 
Uh true
 
:)
 
@Tyyppi_77 I mean why it returns -1 when uniform is present in the shader file?
-1 means that it is not present
but it's present. what'a helll
 
3:33 PM
@JesusChrist Hi
 
@Hippalectryon Do you want me to cure all of your diseases? Maybe some relatives you want to resurrect?
@7Blue_Beast7 Hi
 
Just some wine please.
 
Anyhow. I'm using python 2.7.X to run this program https://raw.githubusercontent.com/weeble/clockworkcodex_minemap/master/minecraft_mapping.py but I get the following error : `File "C:\Users\Hippa\Dropbox\MC to RBX\mcToLua.py", line 36, in arrange_8bit
return numpy.fromstring(data,dtype='u1').reshape((16,16,128))
TypeError: argument 1 must be string or read-only buffer, not bytearray`
How do I fix that ?
@JesusChrist If you could cure that program >.>
 
@Hippalectryon pass a string or read-olny buffer?
 
@JesusChrist You like music?
 
3:35 PM
*string
@7Blue_Beast7 Yes
 
press the up arrow to edit
 
@JesusChrist Thats a nice but rare seen online
 
@7Blue_Beast7 Who, me?
 
@JesusChrist Yeah
 
@7Blue_Beast7 Yep, I do rarely went up here.
 
3:36 PM
@JesusChrist I'm not too sure, the program (not by me) uses some nbt module I have never used before. I haven't found anyone else with the same problem on that program on google.
 
@Hippalectryon well, you simply have a type error, it's not really that hard to fix it, I think. just give it what it wants.
 
@JesusChrist That's easy to say :/ I don't know how to give the right type without breaking the program
 
@Hippalectryon simply convert it. Write a function that converts given type to required. And pass the result of that function to your problem place.
 
:O
I didn't edit anything and it seems to work now
wut
 
3:43 PM
@JesusChrist You do miracles
 
@Hippalectryon I'm Jeezus, after all
 
Hmm nope.avi
It's still not working after all :/ I'll convert
How do I convert bytearrays to string ? (I did search google, didn't find a relevant answer)
I doubt str(bytearray here) will work
 
probably involves encoding
like UTF8 type shit
 
@Hippalectryon I can tell that solution exists.
 
@JesusChrist You sound like a mathematician
 
3:48 PM
@Hippalectryon b"abcde".decode("utf-8")
 
I know that's the result n1 on google
But I'm not sure if that will work
 
Try it?
 
Let me look at numpy.fromstring
numpy.fromstring(string, dtype=float, count=-1, sep='')
A new 1-D array initialized from raw binary or text data in a string.
Then why doesn't it accept bytearrays :c
Logicz
 
am i the only one who reads "numpy" like "lumpy" rather than "num pie"?
 
Probably :3
 
3:50 PM
:D
 
Nope. I did the same thing
 
I didn't know what it was for a long time
till I noticed it was always in connection with python math questions
 
Jon
numptin.sumptin
 
how in the hell one can debug open gl?
 
@JesusChrist One does not simply...
 
Jon
3:51 PM
isn't the second coming of christ suppose to trigger the apocalypse?
 
@Hippalectryon because a byte array is not raw binary data or text data in a string
 
pocky lips if you believe Mad Max 3.
 
> in a string
 
kids ruined that movie >:(
same for Jurassic Park >:(
 
Jon
he wasn't even mad
should of been called "Survivalist Max"
 
3:52 PM
But using the code below raises other errors in the code, so I doubt that's how I'm supposed to do it
newDat=data.decode("utf-8")
return numpy.fromstring(newDat,dtype='u1').reshape((16,16,128))
 
Um.... what? @Almo
 
he was "angry" not "crazy"
 
Jon
i'd be angry too if people kept trying to eat me
 
so Mad as in I'm really mad at you!!
 
@MLM you okay?
@Jon you make me angry when you say that
 
Jon
3:54 PM
however is angrier wins
 
@Hippalectryon often times one error will mask other problems
 
@Jon Whoever*
 
Jon
whomever
 
ugh.....
 
@SpartanDonut I still don't know what to do though :/
 
3:55 PM
@Jon whatever
 
You solved one problem. Move onto the next one. That's what
 
UnicodeDecodeError: 'utf8' codec can't decode byte 0xdd in position 0: invalid continuation byte
newDat=data.decode("utf-8")
 
I'm going to guess and say your byte array is either not a string or not utf-8 encoded
 
level = nbtfile['Level']
skylight = arrange_4bit(level['SkyLight'].value)
^ that's what is being sent
 
well I'm finding very little / no documentation on the arrange_4bit function
but I think I found the sample you're using :P
 
3:59 PM
@SpartanDonut I put the pastebin before
That's the exact file I'm using, with added at the end :
volume_factory = VolumeFactory()
region_volume = volume_factory.load_region(
		'map/r.0.0.mcr')
map_rgb_array = numpy.zeros((512,512,3), dtype="u8")
map_rgb_array[:,:,0] = region_volume.blocks[:,:,70]
minecraft_map = make_surface(map_rgb_array)
 
ok
Any clue what the actual value of level['SkyLight'] is?
 
It's a bytearray
It contains the map skylight's data
 
i'd like to shoot the next writer who says "blah blah, wait for it, blah blah"
 
Jon
seems like a reasonable goal to have
 
4:20 PM
pointers in a nutshell: "A good thought-picture: Values are like Stuff. Variables are like boxes that you can put Stuff in. Pointers are like index cards on which the physical location of boxes are written - note that the index cards are a kind of Stuff, and could also be put in boxes."
 
user92578
4:33 PM
what's the correct order for matrix multiplication with a translation, a viewport and a resolution matrix?
 
@Tyyppi_77 do you mean model, view and projection matrices?
 
user92578
I don't really have those
 
@Tyyppi_77 MVP = model * view * projection.
view matrix = inverse (rotationZ * rotationX * rotationY * translation)
 
user92578
I have a matrix with the offsetting of the rendering process. Then I have a matrix with orthographics projection, and then I have a matrix with the correct scaling factor for resolution
 
what's the scaling matrix for? you have some weird device coordinates?
 
user92578
4:38 PM
everything that is drawn is scaled by 3, but that will probably change
 
the orthographic projection should convert the coordinates to -1 -> 1 range, which is device coordinates range
 
user92578
that is to achieve correctly sized tiles
 
you are probably doing it wrong then, zooming the whole screen in so that it's three times larger
you should instead scale up the objects with the model matrix
 
user92578
ah, okay
 
the offsetting matrix sounds like model matrix, just add a scale to it and you're done
 
user92578
4:41 PM
an uniform model matrix won't be good for batching that will come next, or will it?
 
by uniform do you mean a model matrix that's equal to all other model matrices or a matrix put in to a uniform in shader
 
user92578
matrix put to a uniform in shader
 
user92578
but I guess that is nothing to worry about right now
 
user92578
projection would be the orthographic matrix, and model the object's matrix. could the scaling go to the view matrix or what would that be used for?
 
view matrix is usually the camera
@Tyyppi_77 batching is something that groups similar objects together so that minimal amount of GL state switching is required to draw every object on screen, like objects with same texture and same shader
 
4:52 PM
I love my hat.
 
and you can happily use uniforms to give the shader the model matrices when batching
 
hat i used last year was the cop hat for raising flags
 
it's only after you start drawing a lot of similar objects, like 10k or so, you will need something more optimized
 
btw I came to understand why i never get my second uniform. It's because it was optimized away by the shader compiler.
 
user92578
strange
 
4:58 PM
yeah they get optimized out if the end result will not affect the output of the shader
 
it was gonna affect the varying variable, that was supposed to be used in a fragment shader, but fragment shader was never supposed to use it. So it was optimized away.
varying vec4 v_fragCoord it was called.
shader compiler is damn good at optimizing.
 
lol I wrote a funny sentence there, I ment that if the uniform does not affect the end result of the shader it will be optimized out
thanks for the star so I read it again
 
5:22 PM
@Almo I actually think this might have been how it was explained to me (or very similar anyway) when I was taught pointers. As a result I feel I don't struggle too much with the concept. Implementation and syntax is another story though :P
 
user92578
any ideas why it takes 3-8 seconds on startup to actually launch the program when I use the default visual studio debug mode
 
user92578
it goes down to 1-2 if I start without debugging
 
If it was .NET I'd say attaching to the process and loading symbols takes time
Not sure how it works with C++
 
user4704
Same thing.
 
user4704
More or less.
 
user92578
5:24 PM
how could I speed it up?
 
user4704
The debugger has to attach and do stuff, talk with the hosting process, et cetera.
 
And perhaps not just loading symbols but building symbols
 
user4704
Oh dear.
 
user4704
The pictures from the Christmas party have arrived.
 
5:43 PM
@AttackingHobo oh wow (the projector)
 
6:20 PM
@SpartanDonut haha yeah syntax
 
The more I think about C++ the more I feel VB had some good ideas :P
 
:D
 
Joe
6:48 PM
I have earned the secret hat fascinating?... what did I do to earn such a hat...
 
its a secret
 
Joe
im going to assume someone asked me "Joe, what are the best things in life?" and I responded exactly like Arnold in Conan
 
139
A: Winter Bash 2014 Secret Hats

Mr. Shiny and New 安宇I've unlocked Chameleon - for joining a site for editing your profile, including linking a new site to your account Fascinating - for upvoting an accepted answer with at least 5 votes already Fascinating, Ma'am - for upvoting a highly-voted question (at least 25 votes already) Eureka - I sus...

 
Joe
well thats a bummer
 

« first day (1597 days earlier)      last day (3406 days later) »