• What are you working on? V7
    2,001 replies, posted
[QUOTE=Jallen;19994817]Does anyone know of a good, free terrain editor? All I want to be able to do is paint terrain (raise, lower, smooth, flatten etc) and paint my own textures onto it and for it to generate a heightmap and texture for me. In fact finding one is too much hassle, I'm just going to make the shape in blender and do some basic uv mapping on it. I'm not going to have any steep hills or anything.[/QUOTE] What about this? [url]http://nemesis.thewavelength.net/index.php?p=8[/url]
[QUOTE=ZomBuster;19995902]What about this? [url]http://nemesis.thewavelength.net/index.php?p=8[/url][/QUOTE] .map, perfect, I can compile it into a Q3 map :D Thanks :buddy: RAAAGEEE It doesn't have any sort of texture blending, you just have these steep square edges on your textures. That's not particularly useful... Does [B]anybody[/B] know of a terrain editing program which has blended textures which can export to a model format of some kind? Right now it looks like my only choice is to have mono-textured terrain which is really undesirable.
[QUOTE=Jallen;19995993].map, perfect, I can compile it into a Q3 map :D Thanks :buddy: RAAAGEEE It doesn't have any sort of texture blending, you just have these steep square edges on your textures. That's not particularly useful... Does [B]anybody[/B] know of a terrain editing program which has blended textures which can export to a model format of some kind? Right now it looks like my only choice is to have mono-textured terrain which is really undesirable.[/QUOTE] I'm pretty sure [url=http://www.webalice.it/bancala/files_easygen.htm]easygen[/url] works for this. It's what I used when I used to map for Jedi Academy (which is Q3 based).
Use a modelling program, Blender, Maya, Max. Just an FYI you can use the model painting and mesh sculpting tools to make terrain really easily in blender, and most likely the others as well. Just bake the result into a texture.
So I finished the code to get historical stock prices, but I also need to be able to get current stock prices. I think I could get it from the source of the stock page on google finance, but the problem is that 1) I can't really say for sure that it's format won't going to suddenly change one day (can I?), and 2) it doesn't feel right, trying to mine a single value out of some gigantic fancy html file, just seems like there should be a better way. Does anyone know of a simpler, more concrete way to get current stock prices?
[QUOTE=Jallen;19995993].map, perfect, I can compile it into a Q3 map :D Thanks :buddy: RAAAGEEE It doesn't have any sort of texture blending, you just have these steep square edges on your textures. That's not particularly useful... Does [B]anybody[/B] know of a terrain editing program which has blended textures which can export to a model format of some kind? Right now it looks like my only choice is to have mono-textured terrain which is really undesirable.[/QUOTE] I might be way off, but I believe [URL="http://www.planetside.co.uk/content/view/16/28/"]terragen[/URL] along with a [URL="http://www.planetside.co.uk/terragen/resources.shtml"]plugin[/URL] might do it for you. [B]Edit[/B] [QUOTE=ryandaniels;20000486]So I finished the code to get historical stock prices, but I also need to be able to get current stock prices. I think I could get it from the source of the stock page on google finance, but the problem is that 1) I can't really say for sure that it's format won't going to suddenly change one day (can I?), and 2) it doesn't feel right, trying to mine a single value out of some gigantic fancy html file, just seems like there should be a better way. Does anyone know of a simpler, more concrete way to get current stock prices?[/QUOTE] This might do it for you: [URL="http://code.google.com/apis/finance/docs/finance-gadgets.html"]http://code.google.com/apis/finance/docs/finance-gadgets.html[/URL]
So, my old "random path generator" is now generating trees! Still ugly as hell, and I can still make them a little more random! [img]http://www.cubeupload.com/files/51f400treeee.png[/img] [img]http://www.cubeupload.com/files/f33000treee2.png[/img]
I challenge you to a tree-off!
[QUOTE=Dr Magnusson;20001328]I challenge you to a tree-off![/QUOTE] Yours is much nicer than mine, thats for sure! I'm happy with mine so far, considering i've never made anything constructive before!
Added some collision. (The video quality fuck up the textures...) [MEDIA]http://www.youtube.com/watch?v=grLusydaFe8 [/MEDIA] I will improve it a little and after that I need to add some gravity :)
How do you guys do multiple collisions, do you just have a list of every collidable and for loop to see if the player/object is colliding with any of the objects?
using a 2d array. [code] int map[7][7] = { 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1}; [/code] check if you interact with a cordinate with the value 0, when you will move, else, do nothing... for basic and buggy collision. [url]http://pastebin.com/f312e7799[/url]
[QUOTE=NorthernGate;20002226]How do you guys do multiple collisions, do you just have a list of every collidable and for loop to see if the player/object is colliding with any of the objects?[/QUOTE] I took examples from XNA's ... example platformer and changed it to suit my needs. And yeah, rocked an array ...Probably wouldn't work without XNA though
[QUOTE=NorthernGate;20002226]How do you guys do multiple collisions, do you just have a list of every collidable and for loop to see if the player/object is colliding with any of the objects?[/QUOTE] Right now I do the second method. But I only check stuff that is on screen, so first I determine if an object is on screen, if so I put it into a list which get's checked against the players position. Like that I don't have to rely on a tile based map implementation, meaning that I can put every object where I like it to be.
Prettied up my ugly tree generator! [img]http://www.cubeupload.com/files/a400newtree.png[/img] [img]http://www.cubeupload.com/files/9e4600newtree2.png[/img]
Well, right now I'm trying to get some stuff with jQuery working so I can do something similar to what Garry's done with the "More" link up the top, that pops up a box with some links. So, being the good little coder I am, I've copied all of Garry's code. It should all be working, but it isn't, I can't figure out why, and it's really beginning to piss me off. The fact that chrome doesn't reload javascript files even when you CTRL+F5 doesn't really help, given the .js file is pretty much the ONLY thing I'm modifying. [editline]09:41PM[/editline] Specifically, the box isn't opening at the right location. I'm using the same mouse tracking system as Garry (obviously), but it never changes and the box will always just appear at 0,0 and not at wherever my mouse has currently moved to. I'm not sure why this is, given it works here and not for me, despite it being exactly what the jQuery wiki says I should be using. [editline]09:54PM[/editline] Well, it seems to be working with the version I copy and paste off here (1.2.6) but not the one off the website (1.4.1). So, unless they broke it I guess their wiki page is just out of date. [editline]10:01PM[/editline] Argh what the fuck, jQuery? It's working now, though for what reason I don't know. I blame Chrome's JS caching.
Use the web forum for web stuff.
Went in today to fix up my code, came back with more problems. [code] resizing window moves it maximizing the window changes the borders and moves the window to top-left of screen investigate strange dotted lines keyboard input create log window remove window decorations + taskbar in fullscreen restrict cursor to boundaries in fullscreen right now it outputs GrabNotViewable[/code]
DNS Flusher [cpp]#include <stdio.h> int main() { char answer; ask: printf("This will reset your connection and flush your DNS cache. Continue?\n[Y or N])? "); scanf("%c",&answer); if (answer =='y' && answer == 'Y') { goto exec; } else if (answer == 'n' && answer == 'N') { return(0); } else if (answer != 'y' && answer != 'Y' && answer != 'n' && answer != 'N') { goto error; } error: printf("You must answer [Y or N]\n"); goto ask; exec: system("path = c:\\windows\\system32"); system("ipconfig/release"); system("ipconfig/flushdns"); system("ipconfig/renew"); return(0); } [/cpp]
[QUOTE=ProboardslolV2;20005642]DNS Flusher [cpp]#include <stdio.h> int main() { char answer; ask: printf("This will reset your connection and flush your DNS cache. Continue?\n[Y or N])? "); scanf("%c",&answer); if (answer =='y' && answer == 'Y') { goto exec; } else if (answer == 'n' && answer == 'N') { return(0); } else if (answer != 'y' && answer != 'Y' && answer != 'n' && answer != 'N') { goto error; } error: printf("You must answer [Y or N]\n"); goto ask; exec: system("path = c:\\windows\\system32"); system("ipconfig/release"); system("ipconfig/flushdns"); system("ipconfig/renew"); return(0); } [/cpp][/QUOTE] Nice, cheap C code that uses label only to make system calls.
but my windows isn't installed on C: !
[QUOTE=ProboardslolV2;20005642]DNS Flusher [cpp]#include <stdio.h> int main() { char answer; ask: printf("This will reset your connection and flush your DNS cache. Continue?\n[Y or N])? "); scanf("%c",&answer); if (answer =='y' && answer == 'Y') { goto exec; } else if (answer == 'n' && answer == 'N') { return(0); } else if (answer != 'y' && answer != 'Y' && answer != 'n' && answer != 'N') { goto error; } error: printf("You must answer [Y or N]\n"); goto ask; exec: system("path = c:\\windows\\system32"); system("ipconfig/release"); system("ipconfig/flushdns"); system("ipconfig/renew"); return(0); } [/cpp][/QUOTE] A fine example of a c program that would have been better to do in batch. £100 says that you wrote this in batch first then 'ported' it to c. What is the file size like after being compiled? My guess it that it will have a larger file size than the batch script.
[QUOTE=BAZ;20003946]Prettied up my ugly tree generator! [img]http://www.cubeupload.com/files/a400newtree.png[/img] [img]http://www.cubeupload.com/files/9e4600newtree2.png[/img][/QUOTE] You could try to draw spheres with the diameter of the branch inbetween two to close the gap there. That would make it even prettier :)
[QUOTE=ProboardslolV2;20005642]DNS Flusher[/QUOTE] Please look up [url=http://en.wikipedia.org/wiki/Environment_variable]Environmental Variables[/url]. You want the %SystemRoot% one. [i][b]Never[/i][/b] assume that Windows is installed to the C: drive.
[QUOTE=ProboardslolV2;20005642]DNS Flusher [cpp]//code[/cpp][/QUOTE] You should never use goto if you don't absolutely have to (=never) and the last else if could be replaced by a simple else.
[QUOTE=s0ul0r;20006260]You could try to draw spheres with the diameter of the branch inbetween two to close the gap there. That would make it even prettier :)[/QUOTE] Good idea, That's a really simple addition ;D
[QUOTE=BAZ;20006571]Good idea, That's a really simple addition ;D[/QUOTE] Jup, and how about some more complexity and leaves? :D
[QUOTE=Robber;20006521]You should never use goto if you don't absolutely have to (=never). The last else if could be replaced by a simple else.[/QUOTE] But i luurrrrvvvv my goto's, they're so pretty :3 [editline]05:33PM[/editline] [QUOTE=Mattz333;20005815]A fine example of a c program that would have been better to do in batch. [b]£100[/b] says that you wrote this in batch first then 'ported' it to c. What is the file size like after being compiled? My guess it that it will have a larger file size than the batch script.[/QUOTE] 1. I'm writing it for a learning experience. I suck at programming and I know it, I just love C with a dying passion so i went with the more redundant option 2. Sorry, I only take 'Murican money, comrade.
[QUOTE=ProboardslolV2;20006793]Sorry, I only take 'Murican money, comrade.[/QUOTE] British money is worth more.
[QUOTE=Robber;20006521]You should never use goto if you don't absolutely have to (=never). The last else if could be replaced by a simple else.[/QUOTE] oh don't start this again :v:
Sorry, you need to Log In to post a reply to this thread.