[vid]http://dl.dropbox.com/u/4838268/shaders.webm[/vid]
Messing around a bit with shaders, next up: render targets
[QUOTE=Murkrow;33555540]If you strip that part, it'll load the cloudflare file instead of using the server directly, which could end up being months old.
[editline]3rd December 2011[/editline]
If you'd use that url I mean.[/QUOTE]
Cloudflare Caching has been disabled..?
[QUOTE=RiceWarrior;33558439]Can anyone link me to that script for Chrome that stops gifs/videos from automatically playing?
And you have to click play for them play[/QUOTE]
If you're like me you'll just install NoScript and not watch the videos at all.
You guys remember that danmaku game I was working on using Game Maker? I kinda abandoned it for a while because GM had shit performance (20 bullets and the game dipped down to 10fps), but now that I'm finally on vacation and know more about C++, I gave it another go:
[media]http://www.youtube.com/watch?v=zNIUDOy_iJ4[/media]
The next thing I want to implement is a "group" system for the bullets so I can manipulate blocks of bullets together for some fancy patterns, and then after that maybe I'll work on loading patterns from a text file, although that sounds pretty difficult since I know barely nothing about translating text files into code to be executed, but I'll work it out somehow.
[editline]this day[/editline]
And just for the record, even with Fraps recording the game was running at 60fps for more 2 or 3 minutes, then after that it started lagging a little because I'm not deleting the bullets that go ofscreen.
[QUOTE=Jookia;33558880]If you're like me you'll just install NoScript and not watch the videos at all.[/QUOTE]
Why come in here?
[QUOTE=Samuka97;33558949]although that sounds pretty difficult since I know barely nothing about translating text files into code to be executed, but I'll work it out somehow.[/QUOTE]
JSON parser.
for instance
[code]
{
"blocks": [
{
"size" : "8"
"speed" : "5.5"
"shape" : "star"
//etc, etc...
}]
}
[/code]
[lua]-- biggestFaggot.lua
-- usage: lua test\biggestFaggot.lua
local thread = require( "facepunch.thread" )
local biggestFaggot = {
username = nil,
postCount = -1
}
print( "Mirror, mirror on the wall, who's the biggest faggot of them all?" )
-- Andrew; run through all of the faggots on page 6 of WAYWO December 2011
for _, faggot in pairs( thread.getMembersInPage( "http://www.facepunch.com/threads/1144771/6" ) ) do
-- garry is not a faggot, pls don't bane me
if ( faggot.postCount > biggestFaggot.postCount and faggot.username ~= "garry" ) then
biggestFaggot.username = faggot.username
biggestFaggot.postCount = faggot.postCount
end
end
print( biggestFaggot.username .. " is the biggest faggot of them all with " .. biggestFaggot.postCount .. " posts!" )
[/lua]
[img]http://i.imgur.com/zkz59.png[/img]
Sorry Maurice, I wasn't trying to target you. :(
[QUOTE=amcfaggot;33560193][img]http://i.imgur.com/zkz59.png[/img]
Sorry Maurice, I wasn't trying to target you. :([/QUOTE]
Well if we're honest, Garry is the biggest faggot of them all, so it's cool.
I've also added join date to the member object
[editline]3rd December 2011[/editline]
[QUOTE=Maurice;33560206]Well if we're honest, Garry is the biggest faggot of them all, so it's cool.[/QUOTE]
This is true
[editline]3rd December 2011[/editline]
I was going to have it generate an epeen size based on a bunch of convoluted values, but I got lazy
[QUOTE=Maurice;33560206]Well if we're honest, Garry is the biggest faggot of them all, so it's cool.[/QUOTE]
Urhm, you may want to snip that before he sees it.
[QUOTE=supersnail11;33560323]Urhm, you may want to snip that before he sees it.[/QUOTE]
If you want to get technical, biggestFaggot.lua was supposed to generate epeen size calculations based on the size of your name, number of posts, how many links you displayed under your avatar and a couple of other things, so it would put him at the highest epeen size.
[QUOTE=amcfaggot;33560193][lua]-- biggestFaggot.lua
-- usage: lua test\biggestFaggot.lua
local thread = require( "facepunch.thread" )
local biggestFaggot = {
username = nil,
postCount = -1
}
print( "Mirror, mirror on the wall, who's the biggest faggot of them all?" )
-- Andrew; run through all of the faggots on page 6 of WAYWO December 2011
for _, faggot in pairs( thread.getMembersInPage( "http://www.facepunch.com/threads/1144771/6" ) ) do
-- garry is not a faggot, pls don't bane me
if ( faggot.postCount > biggestFaggot.postCount and faggot.username ~= "garry" ) then
biggestFaggot.username = faggot.username
biggestFaggot.postCount = faggot.postCount
end
end
print( biggestFaggot.username .. " is the biggest faggot of them all with " .. biggestFaggot.postCount .. " posts!" )
[/lua]
[img]http://i.imgur.com/zkz59.png[/img]
Sorry Maurice, I wasn't trying to target you. :([/QUOTE]
Would've been better if you had to type in the mirror mirror question
[QUOTE=amcfaggot;33561162]If you want to get technical, biggestFaggot.lua was supposed to generate epeen size calculations based on the size of your name, number of posts, how many links you displayed under your avatar and a couple of other things, so it would put him at the highest epeen size.[/QUOTE]
Touché
My programming is currently posponed due to my Linux Mint Debian Edition installation transforming into NetScapeOS after updating.
drawing buggy.mdl as a point cloud.
Still trying to grab the indices from the .vtx which is incredibly tedious.
[img]http://dl.dropbox.com/u/99765/bs83940.png[/img]
Now my screengrabber can take videos of regions or windows, much like how scrot's interactive selection works.
I actually had to look into xorg documentation and create my own little program who's sole purpose is to draw little fancy rectangles while you hold down the mouse. :v:
[vid]http://j.mp/uo9XEa[/vid]
Battlelog Standalone thing (I don't know what to call it... Battlelog on STEAM? Battlelog Launcher? Standalone Battlelog?) now successfully places a DWORD in the registry which basically tells the embedded Internet Explorer WebBrowser control to not emulate IE6/7, but run at the highest it can (generally 9, but >7 is also acceptable). It does this without trillions of permissions potholes by using Regedit itself.
This means HTML5 and also improvements with how Battlelog responds to the browser.
I'm still stuck on using this IE control as Awesomium as issues with the complicated plugin and JavaScript interactions that occur with Battlelog that I don't really understand :/
I'm looking into WPF Gecko controls now.
I sometimes come up with what I think is a brilliant idea, so I open up gimp to visualize it.
[img]http://puu.sh/9Tgq[/img]
I think I should just keep it in my head...
Okay so yeah I'll post what I've got so far. Yeah it currently uses Trident, but it uses (through some registry magic) the latest version avaliable for maximum compatibility. And it is easy for me to swap out this with a proper browser when I get around to it.
1. Download this: [URL="goo.gl/OAvGy"]goo.gl/OAvGy[/URL]
2. Put it somewhere, anywhere really
3. Launch Origin and set it to not start on Windows login (it'll be a waste of resources otherwise!) ([url]http://u.filepak.com/gDlz_settings.png[/url])
4. Add the .exe to STEAM (you can rename it to whatever you want)
5. Run it, download and install the plugin if needed, if it prompts a registry change, accept it. All it does is create the below key, which allows it to use the latest installed IE:
(HKEY_LOCAL_MACHINE\SOFTWARE\[I]Wow6432Node (if you're x64)[/I]\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION)
If anyone has any exceptions PM me them... It's still a WIP.
[video=youtube;myNrTj23Lfw]http://www.youtube.com/watch?v=myNrTj23Lfw[/video]
Hey guys I brought some content that will never compare to anything you've made.
It's better than quite a lot of stuff that's been here :v:
Guys, is there a way to convert..
fuck i cant explain it hang on:
[img]http://puu.sh/9TtS[/img]
[QUOTE=C:\;33563455]Guys, is there a way to convert..
fuck i cant explain it hang on:
[img]http://puu.sh/9TtS[/img][/QUOTE]
[code]
Vec2 getPointOnCircumference(Vec2 circlePosition, float circleRadius, float degreeOfPoint)
{
Vec2 p = circlePosition;
p.x += sin(degreeOfPoint) * circleRadius;
p.y += cos(degreeOfPoint) * circleRadius;
return p;
}
[/code]
Untested but should work.
degreeOfPoint may have to be converted to Radians, depending on if sin() and cos() use radius.
(you may have to switch sin and cos around if the resulting X and Y coords are swapped, my brain is pretty much shut down for the night)
[QUOTE=C:\;33563455]Guys, is there a way to convert..
fuck i cant explain it hang on:
[img]http://puu.sh/9TtS[/img][/QUOTE]
I dont fully get your question but, sine and cosine?
[QUOTE=C:\;33563455]Guys, is there a way to convert..
fuck i cant explain it hang on:
[img]http://puu.sh/9TtS[/img][/QUOTE]
c.x = a.x - b.y
c.y = a.y + b.x
that works if point c is exactly 90 degrees from point b you can use the simple formula
[url]http://boards.4chan.org/sci/res/4098883[/url]
That helped.
[QUOTE=C:\;33563455]Guys, is there a way to convert..
fuck i cant explain it hang on:
[img]http://puu.sh/9TtS[/img][/QUOTE]
There's 2 things I hang on to in my head
To get the angle from a x and y direction
[cpp]angle = atan2( x, y )[/cpp]
(the x and y might have to be the other way around I don't remember
To get the position based on an angle
[cpp]x = sin( angle ) * length
y = cos( angle ) * length[/cpp]
You should be able to do it all using that
[QUOTE=garry;33563699]There's 2 things I hang on to in my head
To get the angle from a x and y direction
[cpp]angle = atan2( x, y )[/cpp]
(the x and y might have to be the other way around I don't remember
To get the position based on an angle
[cpp]x = sin( angle ) * length
y = cos( angle ) * length[/cpp]
You should be able to do it all using that[/QUOTE]
That's what I was trying to do before I asked, then this guy:
[img]http://puu.sh/9TAO[/img]
Posted that, and I smashed up a little program to help me with it!
[img]http://puu.sh/9TAW[/img]
And it actually works!
sort of!
Programming while not sleeping for 15 hours: It does not work very well :v:.
[QUOTE=garry;33563699]There's 2 things I hang on to in my head
To get the angle from a x and y direction
[cpp]angle = atan2( x, y )[/cpp]
(the x and y might have to be the other way around I don't remember
To get the position based on an angle
[cpp]x = sin( angle ) * length
y = cos( angle ) * length[/cpp]
You should be able to do it all using that[/QUOTE]
It's a good thing you hang on to those in your head since both are wrong.
X is cos and y is sin. Also in atan2 it's usually the other way around (though that's not
guaranteed)
Whoa, I thought this was WDYNHW for a second.
Sorry, you need to Log In to post a reply to this thread.