Decided to switch from hexagonal tiles in my pressure thing to rectangular tiles.
They are much easier to manage.
Now, if anyone could help me with some mathsy stuff it would be great.
A cell has the following: x, y, pressure(from 0 to 1), resistance(from 0 to 1)
Those cells are placed in a grid and now there's a problem.
Every frame, each cell (starting from the most pressurized one to the least pressurized one) should propagate it's pressure to the neighboring cells by following these rules:
Pressure only spreads to neighbors that have lower pressure than the starting cell.
Propagation must equalize the pressure between the 9 tiles (middle and 8 neighbors) as best as it can in one frame.
Cell can't give more pressure than it has.
No pressure can be lost or gained.
There are also 2 things I need to work into the equation. Each cell needs to utilize it's resistance somehow (resistance to receiving pressure) and the diagonal neighbors need to use their resistance * sqrt(2) since they are farther away.
I have absolutely no idea how I would approach this problem.
Maybe define resistance as the most pressure it can receive from one cell in one frame?
That way walls can have resistance = 0 and no pressure would ever be given to them but I still have no idea how to figure out how much pressure a cell wants to give to each neighboring cell.
Never done lighting of any kind before in my life:
[img]http://i.imgur.com/uwhVa.png[/img]
Knocked that out in two minutes.
[editline]20th November 2011[/editline]
am i program king yet
[editline]20th November 2011[/editline]
[img]http://i.imgur.com/CvlH8.png[/img]
oh crumbs
I would love to develop a 3D version of Space Station 13.
[QUOTE=Mr.T;33355826]I would love to develop a 3D version of Space Station 13.[/QUOTE]
Do it then.
I don't know if you guys remember but a few weeks ago I was working on writing some device drivers for minix for one of my courses.
Well, now we've reached the second stage of that course and we have to write some sort of app using those drivers. I'm going to need sprites for mine so I decided to make a 8bpp BMP loader/drawer for vga mode 105h
Here's the result of many-a-hour headbutting the keyboard:
[img]http://i.imgur.com/qWDxv.png[/img]
I still have to fix the palette. The default one in minix's mode 105h only has 64 colors and doesn't match the one paint uses. Still, progress :D
[QUOTE=Darwin226;33355178]
Decided to switch from hexagonal tiles in my pressure thing to rectangular tiles.
They are much easier to manage.
Now, if anyone could help me with some mathsy stuff it would be great.
[/QUOTE]
I just skimmed your post and it looks like you're trying to simulate fluid with a grid.
I dont know if you've read this already but if you haven't i highly recommend it.
[URL="http://www.dgp.toronto.edu/people/stam/reality/Research/pdf/GDC03.pdf"] Article:[/URL]
You might find the answer to your problems in the article.
Imho,the eulerian method is alright when you have low resolution grids,however, the algorithm is way too slow if you want higher resolution smoke/liquid.
I made a smoke/fluid solver using this method a while back.
I didn't really like the results.
If i were to work on this again I'd probably use particles instead of a grid.
[video=youtube;YB3FnHEEO7s]http://www.youtube.com/watch?v=YB3FnHEEO7s[/video]
Is anyone still interested in OpenGL3+ stuff? Like a resource to work from or something.
[QUOTE=thomasfn;33356146]Is anyone still interested in OpenGL3+ stuff? Like a resource to work from or something.[/QUOTE]
Sure, what do you have in mind?
[QUOTE=thomasfn;33356146]Is anyone still interested in OpenGL3+ stuff? Like a resource to work from or something.[/QUOTE]
After being pointed to [URL="http://ogldev.atspace.co.uk/"]this site[/URL], I pretty much managed to combine the instructions there with the LWJGL's wiki's specific override instructions and am pretty confident up to tutorial 10 now (indexed draws).
While it's a good site, the writing can be a little confusing and it very much relies on you downloading the source to take a look rather than explaining everything new in each tutorial properly. I moved away from that site for a while and began reading the Red Book 7th Edition to fill the gaps that the site didn't fill in before I move onto anything new.
It's the first and only OpenGL3+ tutorial site I've found that's any good in the first place, and I can't slander it for what it [i]has[/i] taught me, but I definitely feel that there's room for a greater number of online resources.
Well I've made a low level library over OpenGL 3 for C++, which simplifies alot of nasty behind-the-scenes GL stuff you have to do, and lets you get stuck in with shaders and stuff right away. I figured people could actually use it as a library to start making OpenGL applications, or use the source code to learn how things work.
If there's lots of interest, I could tidy up (including comment) the source code and release it.
The other thing is, if there's still alot of interest, I might try and get open.gl off Overv and make it into a wiki.
[QUOTE=thomasfn;33356329]
The other thing is, if there's still alot of interest, I might try and get open.gl off Overv and make it into a wiki.[/QUOTE]
Just make sure you don't have Fallout: New Vegas.
[QUOTE=uitham;33346057]After seeing this, I suddenly want to start a collaboration project on git/svn with other facepunchers and then see the results through gource
[media]http://www.youtube.com/watch?v=NjUuAuBcoqs[/media]
Not shown in this video:
File names on the little nodes
Collaborator names[/QUOTE]
So umm..
Are we going to do this?
I have never been in a collaboration of more than 2 collaborators, and I would like to.
Working on my Fuck-Contest entry.
[t]http://i.imgur.com/ERFyQ.png[/t]
[quote]I'm a little teapot: scanlines make everything better[/quote]
I need roboty music..
I'll whip something up for you in FL studio for you in a second because I'm bored.
Update on my delphi game for school, ahah.
It only works within windows 7 -
running on xp:
[MEDIA]http://www.youtube.com/watch?v=HgAL78mi9_Y[/MEDIA]
running on w7
[MEDIA]http://www.youtube.com/watch?v=5DxEc4OT2G8[/MEDIA]
Made some progress that made me happy!
When you click on a DLC pack in the menu, it start downloading. When its done, it saves the zip file to the cache folder. Then, another thread is started to unpack the contents to the DLC folder. Everything works without corrupting anything.
W00t!
Next up is selecting the DLC pack...
[media]http://soundcloud.com/neos300/robotic[/media]
Approximate time to make: 1 minute
Download is on the soundcloud page.
Couldn't find my keyboard, if you need to make something better or want to change anything let me know.
[QUOTE=uitham;33356757]So umm..
Are we going to do this?
I have never been in a collaboration of more than 2 collaborators, and I would like to.[/QUOTE]
Only problem I can see is getting everyone to agree on a programming language, and what the project kind of project should be created in the first place.
I would join, but the only two languages I could collaborate with a project on is in Python or Java.
[QUOTE=Elegwa;33357470]Only problem I can see is getting everyone to agree on a programming language, and what the project kind of project should be created in the first place.
I would join, but the only two languages I could collaborate with a project on is in Python or Java.[/QUOTE]
I think the general consensus was to use C# (presumably VS) since most people could help with that
Maurice:
[media]http://soundcloud.com/hruhf/robot2[/media]
Not that good sorry, it's 2am
[QUOTE=Maurice;33357141]Working on my Fuck-Contest entry.
[t]http://i.imgur.com/ERFyQ.png[/t]
I need roboty music..[/QUOTE]
Wait. Will the background always be green when you're unblocked, or is it just referring to the example on the right? This needs clarification.
Hruhf is so helpful with the collsion helping friend that he is. My brain is no longer crying of 6 hours of trying to get it to work. Yey!
[url]http://dl.dropbox.com/u/38318788/FileWriter.exe[/url]
Simple little utility to assist me in writing binary files.
Use datatype:value to write stuff
Datatypes are:
byte
float
int
string (an int (the length) and then a char array)
[QUOTE=Dotmister;33357630]I think the general consensus was to use C# (presumably VS) since most people could help with that[/QUOTE]
Yeah, I figured that. Another programming language to list.
[img]http://puu.sh/90PS[/img]
Working on world generation.
[img]http://i.imgur.com/qkDJn.gif[/img]
[editline]20th November 2011[/editline]
FRAAAAAAAAAAAAAAAAPS
[QUOTE=Maurice;33357141]Working on my Fuck-Contest entry.
[t]http://i.imgur.com/ERFyQ.png[/t]
I need roboty music..[/QUOTE]
That concept seems eerily familiar
Considering throwing out my AI completely and making it online multiplayer instead. Tick for go ahead, cross for stupid idea.
[editline]20th November 2011[/editline]
Bear in mind I know nothing about game networking so this'll be a learning exercise.
[editline]20th November 2011[/editline]
ffs this is not helping
Loops are now compiling splendidly (both while and for loops). It is also possible to isolate your code with blocks (view code below). I also have a basic implementation of arrays done. It will probably be extended to support n-dimensional arrays.
[img_thumb]http://i.imgur.com/LPRHP.png[/img_thumb]
The code in the picture:
[code]function int[] main(bool returnArray)
{
int[] array = { 16, 2, 77, 40, 12071 };
for(int i = 0; i < 5; i++)
{
print(array[i]);
}
// Isolated block
{
int i = 0;
while(i < 5)
{
print(array[i]);
i++
}
}
if(returnArray)
{
return array;
}
else
{
return { 0 };
}
}[/code]
[QUOTE=Nigey Nige;33360536]Considering throwing out my AI completely and making it online multiplayer instead. Tick for go ahead, cross for stupid idea.
[editline]20th November 2011[/editline]
Bear in mind I know nothing about game networking so this'll be a learning exercise.[/QUOTE]
why do you make a poll for this, do whatever is more fun to you
also Matte
that is pretty sick, i always wanted to make a tiny scripting language and a parser but havnt done it yet
love your avatar too
Sorry, you need to Log In to post a reply to this thread.