[QUOTE=Icedshot;30904042]More mandelbrot goodness, managed to work back the set gradient-colouring into the multithreaded version
Quoted for ridiculous size[/QUOTE]
That is so god damn pretty
Anyone know something similar to XNA that works on all platforms?
[img]http://i.imgur.com/yms3k.png[/img]
Woo. Nothing special. Stretchable images are fun to play with!
[QUOTE=theJohn;30904488]Anyone know something similar to XNA that works on all platforms?[/QUOTE]
If by all platforms you mean all computer platforms (windows, mac, linux) then SFML is what you want
[QUOTE=Dragonblz;30904389]That is so god damn pretty[/QUOTE]
[quote][IMG]http://dl.dropbox.com/u/9317774/32.png[/IMG][/quote]
[quote][IMG]http://dl.dropbox.com/u/9317774/36.png[/IMG][/quote]
[quote][IMG]http://dl.dropbox.com/u/9317774/40.png[/IMG][/quote]
[QUOTE=Richy19;30904579]If by all platforms you mean all computer platforms (windows, mac, linux) then SFML is what you want[/QUOTE]
Of course, if you mean to use C# and be multiplatform it gets complicated.
C++ w/SFML and C++ w/Polycode are both good choices.
[editline]4th July 2011[/editline]
I also got the console working alongside the main Polycode window again, this time without windows specific headers! Yippee! :3
Did some more work on my infrasound concept and developed a small sample with it.
Anybody who has ever seen The Shining knows about those damn high pitch noises. Well I mixed one of those with infrasound and the outcome was so good it was weird. You see, the infrasound created the uneasy feeling and general mind fuck feeling; however, the High Pitch Tone (Around 3300Hz) Created the strange tension.
Having a picture of a corridor slowly fading to a picture of (what I consider) a reasonably eerie face seems to work so unbelievably well. There are still a few tweaks that need doing, but I'll hit them with a bigger wrench tomorrow.
Eerie Face
[img]http://4.bp.blogspot.com/_M2Dk52gK-Rc/TBJkZsV1DoI/AAAAAAAAAD8/TIauLbWFlXc/s400/carnival+of+souls.jpg[/img]
It isn't a straight fade either. It sort of fades a little to reveal the man at about 40% transparency then starts to fade back in until you can't see the man. Then with around 5 seconds left the man fades into complete view and we totally lose the corridor. It also has a recording of "Alone" By Edgar Allen Poe which has a slight echo and is played once the face fully appears.
Are you testing your scary atmosphere on anyone but yourself?
I think people might perceive it differently.
[QUOTE=Dryvnt;30904973]Are you testing your scary atmosphere on anyone but yourself?
I think people might perceive it differently.[/QUOTE]
It will be tested on other people soon, but like I said. Still needs a little tweaking before I want to release it. A little audio engineering is needed, and the timing is ever so slightly off.
I've published a revised chapter index on [url=http://open.gl]open.gl[/url].
[QUOTE=theJohn;30904488]Anyone know something similar to XNA that works on all platforms?[/QUOTE]
You should ask on the mono forum. I imagine most of the wrappers use pinvoke or C++.net which are not portable.
These 2 work with mono though.
[url]http://code.google.com/p/monoxna/[/url]
[url]http://www.opentk.com/[/url]
[QUOTE=Overv;30904999]I've published a revised chapter index on [url=http://open.gl]open.gl[/url].[/QUOTE]
Looks sweet, can't wait to start learning OpenGL alla Overv.
[QUOTE=Overv;30904999]I've published a revised chapter index on [url=http://open.gl]open.gl[/url].[/QUOTE]
That looks awesome! Can't wait for this.
[QUOTE=Overv;30904999]I've published a revised chapter index on [url=http://open.gl]open.gl[/url].[/QUOTE]
Bookmark'd
[QUOTE=Overv;30904999]I've published a revised chapter index on [url=http://open.gl]open.gl[/url].[/QUOTE]
I really like the design. Reminds me a bit of MetroUI. (With the white icons and whatnot.)
[QUOTE=Overv;30904999]I've published a revised chapter index on [url=http://open.gl]open.gl[/url].[/QUOTE]
I dig it. Just make sure the highlighting isn't horrible. :v:
[QUOTE=Overv;30904999]I've published a revised chapter index on [url=http://open.gl]open.gl[/url].[/QUOTE]
I can't wait. Will you have detailed step by step instructions on how to get opengl, where to put the dlls and shit? When I tried using it the installation instructions said a lot of stuff should have been there and it wasn't etc.
Working on learning how to use TinyXML, turns out it's built into polycode.
TCP progress!
[img]http://gyazo.com/7a3d48fcbdf6b22a9636e65e8d5bc7a9.png[/img]
-Client connects
-Client sends packet requesting a client ID
-Server sends back the ID
-Client sends a packet sending the ID and the ID + 1
-Server send back packet with the ID the client sent + 2.
IT WORKS!
And I added custom packets to my game:
[code]
network.addHook(1234, function(arg1, arg2, arg3)
local temp = loadstring(arg1)
temp()
end)
[/code]
Oh and I know how insecure this is but still.
Since I do not want to finish that there, I also have all there functions on the client
[code]
helpers.convertTable : (List<String> List) Converts a C# list into a lua table
network.addHook : (Int32 id, LuaFunction func) Adds a hook for a custom network message
network.sendCustom : (Int32 id, String content) Sends a lua message to the server
ui.setNormalColor : (Int32 r, Int32 g, Int32 b) Sets the color of normal messages
ui.setErrorColor : (Int32 r, Int32 g, Int32 b) Sets the color of error messages
ui.setEntryColor : (Int32 r, Int32 g, Int32 b) Sets the color of entry
ui.setOldEntryColor : (Int32 r, Int32 g, Int32 b) Sets the color of old entry
ui.setBackground : (Int32 r, Int32 g, Int32 b) Sets the color of the background
ui.setNetwork : (Int32 r, Int32 g, Int32 b) Sets the color of a network message
ui.setWindow : (Int32 r, Int32 g, Int32 b, Int32 a) Sets the background for windows
game.initWorld : () Loads the world
game.downloadMap : () Makes a request to the server to download the world, it will show after
csharp.compileCode : (String code, String entry) Compiles a code from a string of csharp code
csharp.invokeFunction : (LuaCSharpBinding binding, String args) Invokes a csharp function
database.set : (String table, String key, String value) Sets a key in the database
database.get : (String table, String key) Gets a key in the database
database.add : (String table, String value) Add a key to the database using a auto generated number index
database.getAll : (String table) Sends all keys in a database table
print : (Object obj) Prints any object using it's C# tostring method
printc : (Object obj, Int32 r, Int32 g, Int32 b) Same as the print function but allows you to pass the color
help : (String str) Lists help for one single function passed as a string
exit : () Exits the Game
toggle : () Toggles the console to be mini sized or full sized
file.read : (String filename) Reads all text from a text file
file.write : (String filename, String data) Writes the speciyed text to a text file
file.getLuaFiles : (String dir) Gets all lua files stored in a directory
file.reloadLib : () Reloads the bacic lua libary stored in the "lib" dir
entity.create : (String name) Creates a new Entity
entity.spawn : (String name, Int32 x, Int32 y) Spawns a created entity at a location, you can do this more then once
entity.move : (String name, Int32 amount) Moves a entity in a pre specifyed direction
entity.turn : (String name) Turns a entity by a angle in degrees
entity.tint : (String name, Int32 r, Int32 g, Int32 b) Sets a tint for a Entity to a certain colour
entity.texture : (String name, String texture) Textures a Entity to a Skin
entity.pulse : (String id) Returns the Private IDS for all entity in a radius
entity.getAll : () Returns all Public ID's
entity.owner : (String id) Makes you the owner for a target entity
luahelp.listAll : () Lists all luahelp entrys, kinda useless unless you have a massive screen
luahelp.exportDatabase : () Exports the entire database
luahelp.list : (Int32 page) Lists a single page of the database, much more useful
luahelp.add : (String name, String description) Adds a item to the database via lua, good for lua libarys
luahelp.search : (String term) Searchs the database for a term
message.post : (String subject, String content) Posts a Message to the Server
message.read : (String subject) Gets a Message from the server using a subject
message.getAll : () Gets all Message Subjects on the Server
net.connect : (String nick, String host) Connects to a running server
net.say : (String str) Sends Global Chat
net.sayPrivate : (String player, String str) Sends a private message to the target player
net.test : () Tests the network connection to the server
net.disconnect : () Disconnects from the server
net.getToken : () Returns your secure network token, do not share this!
net.createListen : () Creates A listen server
[/code]
How do you guys do efficient networking? In the examples I've seen, you need a while(true) loop that captures incoming packets. This doesn't work because you then have to receive a packet before sending one...or doing anything else, for that matter. I'm rather confused.
[QUOTE=geel9;30910151]How do you guys do efficient networking? In the examples I've seen, you need a while(true) loop that captures incoming packets. This doesn't work because you then have to receive a packet before sending one...or doing anything else, for that matter. I'm rather confused.[/QUOTE]
Multiple threads?
[QUOTE=sim642;30910170]Multiple threads?[/QUOTE]
But how would the main thread send a packet?
On the simple side for clients I use 2 threads, client sends on the main thread and I create a new thread that receives stuff.
Countering the ninja with a answer:
Use ether a thread start with a object arg or static members.
[QUOTE=Vbits;30910182]On the simple side for clients I use 2 threads, client sends on the main thread and I create a new thread that receives stuff.[/QUOTE]
well that's the most efficient method I can think of. Thanks!
However...I imagine there would be an issue:
-One Stream
-Thread 1 is trying to send a packet while thread 2 is in the middle of receiving one
-What happens?
[editline]5th July 2011[/editline]
(I'll admit, my knowledge on streams is very limited)
[QUOTE=geel9;30910210]well that's the most efficient method I can think of. Thanks!
However...I imagine there would be an issue:
-One Stream
-Thread 1 is trying to send a packet while thread 2 is in the middle of receiving one
-What happens?
[editline]5th July 2011[/editline]
(I'll admit, my knowledge on streams is very limited)[/QUOTE]
Even if something unwanted would happen you could probably use some mutexes to fix it. I'm not too experienced with threading though.
For most of my projects I use a managed networking library like Lidgren.Network. It takes care of all the threading mess and data streams for me.
[QUOTE=geel9;30910210]well that's the most efficient method I can think of. Thanks!
However...I imagine there would be an issue:
-One Stream
-Thread 1 is trying to send a packet while thread 2 is in the middle of receiving one
-What happens?
[editline]5th July 2011[/editline]
(I'll admit, my knowledge on streams is very limited)[/QUOTE]
From my experience (in C#) Sending and receiving is 2 different things, so there should be no issue in doing both at the same time.
[QUOTE=Nisd;30910538]From my experience (in C#) Sending and receiving is 2 different things, so there should be no issue in doing both at the same time.[/QUOTE]
My understanding of streams is that there is a single array of bytes, and when you read from the array it advances the position and whatnot, and writing appends data. So...what?
You [u]really[/u] don't need two threads for networking, just read up on the standard [url=http://msdn.microsoft.com/en-us/library/ms740141%28v=vs.85%29.aspx]select[/url] function.
[editline]5th July 2011[/editline]
Wait, this is C#?
I'm sure C# has some fancy function for this, like Socket.HasDataWaiting or something.
Sorry, you need to Log In to post a reply to this thread.