• What Are You Working On? V13
    5,003 replies, posted
[QUOTE=bromvlieg;25856372]float var = float.Parse(string);[/QUOTE] You might want to add System.Globalization.CultureInfo.InvariantCulture as the second argument since on some systems the dot is the decimal separator, while on others it's a comma. System.Globalization.CultureInfo.InvariantCulture makes it use the dot.
[QUOTE=Tobba;25856371]Who sliced breen in half [img_thumb]http://dl.dropbox.com/u/4838268/fuuu.png[/img_thumb] I've been trying to fix that for an hour now I no longer like binary formats[/QUOTE] Bet the jews did this
[QUOTE=Richy19;25856563]Bet the jews did this[/QUOTE] More likely Efex. That fag.
[QUOTE=TheBoff;25856734]More likely Efex. That fag.[/QUOTE] This one? [img]http://dl.dropbox.com/u/4838268/efeX.png[/img]
I just tried to print my minecraft chunk data to the console and it sort of freezes up and makes beeping noises, anyone know why this is happening?
[QUOTE=RyanDv3;25857437]I just tried to print my minecraft chunk data to the console and it sort of freezes up and makes beeping noises, anyone know why this is happening?[/QUOTE] You're printing the actual char data rather than the characters they represent (you can use printf control characters to ring the system bell). This can be achived in the same way in Unix-like systems by 'cat'ing a binary file.
Why would you want to print all that data to the console anyway?
[QUOTE=layla;25857945]Why would you want to print all that data to the console anyway?[/QUOTE] Debugging, data scavenging, research.
[QUOTE=RyanDv3;25857437]I just tried to print my minecraft chunk data to the console and it sort of freezes up and makes beeping noises, anyone know why this is happening?[/QUOTE] Minecraft uses a binary format, and everytime the console encounters a byte with the value of 7 (the [url=http://en.wikipedia.org/wiki/Bell_character]ASCII BEL char[/url]), it rings your system bell.
[QUOTE=Jookia;25858028]Debugging, data scavenging, research.[/QUOTE] Whats wrong with dumping it to a file??
[QUOTE=Chandler;25852339]Don't know if someone has pestered you with the question yet, but... open source? :v:[/QUOTE] Naw, im trying to inplant lua however, so you can use that to make your own gates Also gana try to make a fuse of multible gates, so you can place 50 gates, connect em, select a permenent input/output, and then fuse it inside one chip, reduces the size of the circuite quite much....
[QUOTE=layla;25857945]Why would you want to print all that data to the console anyway?[/QUOTE] Was just a whim I had after I got chunk loading working; I was asking because I wanted to know, not because it was a mandatory bug fix. [editline]4th November 2010[/editline] [QUOTE=Siemens;25858071]Minecraft uses a binary format, and everytime the console encounters a byte with the value of 7 (the [url=http://en.wikipedia.org/wiki/Bell_character]ASCII BEL char[/url]), it rings your system bell.[/QUOTE] So it beeped everytime it hit bedrock... heheh cool [editline]4th November 2010[/editline] [IMG]http://i429.photobucket.com/albums/qq12/the1trueryandaniels/chunxporter_pic_console.png[/IMG] wooo
Can't really tell by the image but I got basic ray and sphere collision detection and response working. [img]https://dl.dropbox.com/u/99765/r5345.png[/img]
i was wondering, would anyone be interested in a facepunch democompo?
[QUOTE=deloc;25863927]i was wondering, would anyone be interested in a facepunch democompo?[/QUOTE] For sure
Progress! [IMG]http://i429.photobucket.com/albums/qq12/the1trueryandaniels/0001-9.png[/IMG] (I'm making a exporter for minecraft maps. using wavefront obj currently) (render is from blender) [editline]5th November 2010[/editline] [IMG]http://i429.photobucket.com/albums/qq12/the1trueryandaniels/0001-10.png[/IMG] simple fix yay
[QUOTE=RyanDv3;25867074]Progress! [img_thumb]http://i429.photobucket.com/albums/qq12/the1trueryandaniels/0001-9.png[/img_thumb] (I'm making a exporter for minecraft maps. using wavefront obj currently) (render is from blender) [editline]5th November 2010[/editline] [img_thumb]http://i429.photobucket.com/albums/qq12/the1trueryandaniels/0001-10.png[/img_thumb] simple fix yay[/QUOTE] Surely that's going to produce ridiculously large files for anything more than a tiny map?
I can get blender to run choppily but good enough with 500,000 faces, so 500,000/ 3 mandatory faces per cube= ~150,000 cubes. Divide that by my estimation of 350 surface cubes per chunk, and you're looking at 400-450 chunks. Not too bad, I don't think. Just had a thought: what if I modified minecraft to use my software+ some renderer to take screenshots? Shouldn't be too difficult to intercept a keypress...
[QUOTE=Jallen;25868011]Surely that's going to produce ridiculously large files for anything more than a tiny map?[/QUOTE] I don't know much about the Minecraft map format, but I assume half of its size is from block metadata, as well as entities, and stored voxel chunks. If all Ryan is doing is rendering the vertices, then it could have the potential to be much smaller :buddy:
[QUOTE=Chandler;25868246]I don't know much about the Minecraft map format, but I assume half of its size is from block metadata, as well as entities, and stored voxel chunks. If all Ryan is doing is rendering the vertices, then it could have the potential to be much smaller :buddy:[/QUOTE] My point [I]is[/I] the number of vertecies. If your map is 1000x1000 and you only do the top layer of cubes then you have 1,000,000 cubes which is 12,000,000 triangles.
After a certain distance you could blend blocks together. 2x2 blocks would create 2 triangles, same with 4x4, 8x8 16x16 ... Mipmapping(kinda) so to speak.
@Ryan: You should consider just storing the position of each block and then using hardware accelerated instancing to render it from one mesh. That way each block only needs one Vector3 rather than 4 vertices and 6 indices. Obviously this depends upon what it's going to be used for though.
Instancing with just a cube? I'm not sure if that will benefit performance.
Fucking hell, now that I'm in the first semester in uni, we started scheme... to learn programming... I think I will have a phobia of parentheses... -.-
[QUOTE=Overv;25869939]Instancing with just a cube? I'm not sure if that will benefit performance.[/QUOTE] There are two benefits: 1) Storage - Instead of storing a cube's vertices and indices for every cube, you only store it once and then store just the position of each cube. 2) Rendering - By using batching, you can draw the entire world with a single draw call rather than having to use a draw call for each cube. This keeps the GPU busy rendering and the CPU idle rather than having the GPU idle waiting for instructions and the CPU busy trying to tell it what to render. The is one of few ideal candidates for instancing as every instance is very similar. (I.e. Only the position changes, along with maybe a texture ID at a later date. (Just an extra integer per instance.))
[QUOTE=s0ul0r;25870293]Fucking hell, now that I'm in the first semester in uni, we started scheme... to learn programming... I think I will have a phobia of parentheses... -.-[/QUOTE] I wish my university started with Scheme. C++/Java introduction courses are fairly boring. Looks like I get to do some more interesting stuff next year though.
related (this is me yesterday) [media]http://i.imgur.com/7Kohi.png[/media]
[QUOTE=NovembrDobby;25871140]related (this is me yesterday) [media]http://i.imgur.com/7Kohi.png[/media][/QUOTE] Hate to write about what i am going ot do ! :(
[QUOTE=s0ul0r;25870293]Fucking hell, now that I'm in the first semester in uni, we started scheme... to learn programming... I think I will have a phobia of parentheses... -.-[/QUOTE] [url=http://www.joelonsoftware.com/articles/ThePerilsofJavaSchools.html]According to Spolsky, you're actually fairly lucky.[/url] And Lisp is awesome. Never underestimate the power of Lisp.
Might learn some lisp, what do people think of it?
Sorry, you need to Log In to post a reply to this thread.