• gm_chrome - Awesomium binding
    273 replies, posted
Awesome binaries! But I still have some problems. The first problem is this: [img]http://img228.imageshack.us/img228/5048/gmconstruct0000a.jpg[/img] Why does it copy the site infinitely? And why is it always quadratic? Is there any way to fix this? And this is the next problem: I can only use a 1024x512 texture. If I'm going to use 512x512 there are some HL² textures drawn(randomly), and the whole thing doesn't work.
[QUOTE=RP-01;22749411]Awesome binaries! But I still have some problems. The first problem is this: [img]http://img228.imageshack.us/img228/5048/gmconstruct0000a.jpg[/img] Why does it copy the site infinitely? And why is it always quadratic? Is there any way to fix this? And this is the next problem: I can only use a 1024x512 texture. If I'm going to use 512x512 there are some HL² textures drawn(randomly), and the whole thing doesn't work.[/QUOTE] You need to set the flags in the vtf file: Clamp S, Clamp T, Clamp U, Clamp All, no Mipmap, No Level Of Detail, Procedural and Anisotropic.
Thanks, works now.
Gm_chrome is broken since last update, it crashes the game on start up.
Isn't it not needed anymore since HTML uses WebKit? Or it would be if all HTML panels weren't just blank now.
[QUOTE=JetBoom;22979335]Isn't it not needed anymore since HTML uses WebKit? Or it would be if all HTML panels weren't just blank now.[/QUOTE] Pretty much right. Webkit is a but buggier for things that animate a lot though.
[QUOTE=JetBoom;22979335]Isn't it not needed anymore since HTML uses WebKit? Or it would be if all HTML panels weren't just blank now.[/QUOTE] You cant do a controllable 2d3d browser with the WepKid of the engine...
You can fix the animate bug by oscillating the size of the panel.
So wait, is gm_chrome confirmed to be broken by the latest object. If it is (i'm gonna sound dumb here) how do i make a controllable 3d2d panel without it?
[QUOTE=decyg;23015435]How do I make a controllable 3d2d panel without it?[/QUOTE] This^ ...
This has been addressed: [url]http://www.facepunch.com/showpost.php?p=23025409&postcount=595[/url]
I just made a small documentation of gm_bass. [Code] BASS.StreamFileURL(url string, unknown int (use -1), callback function(channel, errorcode int)) -- opens a stream (given with url string), set an unknown int (the 2nd argument) and calls set a callback function. The callback function returns a channel if it can played else it returns nil and the errorcode returns a int it returns nil if there no errors. channel = BASS.StreamFile(sound file string) -- Returns a channel. BASS.SetPosition(position vector, velocity vector, angle angle, up vector) -- Set the position of player, for creating 3d would sound. BASS.p_PendingChannels() -- Unknown. channel:play() -- Plays the channel. channel:pause() -- Pauses the channel. channel:stop() -- Stops the channel. channel:setvolume(float) -- Set the volume. channel:setposition(number seconds) -- Set the playing position. channel:set3dposition(position vector, forward vector, velocity vector) -- Set the position of the sound, for creating 3d would sound. channel:getlength() -- Returns the length of the playing sound. channel:getposition() -- Returns the start point of the playing sound. channel:getplaying() -- Returns if a sound is playing. channel:fft2048() -- Returns the spectrum table (table with 1024 floats). channel:getlevel() -- Unknown. channel:getrawtag(unknown int) -- Unknown. channel:gettag(format string) -- Returns the tags formated by the given format string. [/code] There are some functions that I don't know, I hope you can use it. ;)
[QUOTE=Grocel;23358874]I just made a small documentation of gm_bass. [Code] BASS.StreamFileURL(url string, unknown int (use -1), callback function(channel, errorcode int)) -- opens a stream (given with url string), set an unknown int (the 2nd argument) and calls set a callback function. The callback function returns a channel if it can played else it returns nil and the errorcode returns a int it returns nil if there no errors. channel = BASS.StreamFile(sound file string) -- Returns a channel. BASS.SetPosition(position vector, velocity vector, angle angle, up vector) -- Set the position of player, for creating 3d would sound. BASS.p_PendingChannels() -- Unknown. channel:play() -- Plays the channel. channel:pause() -- Pauses the channel. channel:stop() -- Stops the channel. channel:setvolume(float) -- Set the volume. channel:setposition(number seconds) -- Set the playing position. channel:set3dposition(position vector, forward vector, velocity vector) -- Set the position of the sound, for creating 3d would sound. channel:getlength() -- Returns the length of the playing sound. channel:getposition() -- Returns the start point of the playing sound. channel:getplaying() -- Returns if a sound is playing. channel:fft2048() -- Returns the spectrum table (table with 1024 floats). channel:getlevel() -- Unknown. channel:getrawtag(unknown int) -- Unknown. channel:gettag(format string) -- Returns the tags formated by the given format string. [/code] There are some functions that I don't know, I hope you can use it. ;)[/QUOTE] Wrong thread?
I have followed the instructions in the readme but the browser isn't there (entries)
[QUOTE=dvd_video;23380358]I have followed the instructions in the readme but the browser isn't there (entries)[/QUOTE] The browser broke some gmod updates ago.
[QUOTE=abp1192;14009677]No offense, but there isn't really a point to this. You can just open the steam web browser.[/QUOTE] Thats funny, whenever i open my steam overlay it closes after because the game hasn't rendered a frame in over 10 seconds :|
Does this work for 64 bit cause I crash every time i try anything :(
It's broken. Edit: The game crashes when you try to require it.
[QUOTE=Grocel;27060970]It's broken.[/QUOTE] Is it still broken? I hope someone else can actually make a BROWSABLE webpage. D:
Will this ever be fixed?
[QUOTE=massaki;31007434]Will this ever be fixed?[/QUOTE] Don't really need it to be fixed, do we?
[QUOTE=Gfoose;31014058]Don't really need it to be fixed, do we?[/QUOTE] Gm_chrome was a lot easier to use if you want to do 3d2d stuff (what it was designed for) and it was less prone to crash. The Steam/Source/Gmod browser functions are not designed for the fancy 3d2d stuff and tends to crash more often. BTW: [URL="http://support.awesomium.com/kb/licensing/licensing-overview"]The Awesomium license is Free for commercial Indie game makers[/URL], so Garry could fix it and add it to gmod, but to get this license garry must earn less than $100k a year with his company, that could be a problem.
You can do this fine with 3d2d. No reason for garry to buy a license.
Would anyone be willing to fix this yet?
I don't think it's worth it anymore, there's many other ways to make a plugin like this without gm_chrome, look at physx
GMod Tower has a fixed version on their repository. Get the Awesomium binaries here [url]http://gmodtower.googlecode.com/svn/trunk/[/url] and the module here [url]http://gmodtower.googlecode.com/svn/trunk/garrysmod/lua/includes/modules/[/url].
No source code of the fixed version?
There were no source code changes to chrome in the fixed version, only in the SDK. I believe I had to add a virtual destructor to IVTFTexture.
Pretty awesome module. I've been avoiding using it since its considerably more work for me as the coder, and some people are just scared of things that even try to use modules, but now that it's in gmod 13 it's quite exciting! I dont know if Garry used your implementation of it or not but either way it's a WIN.
[QUOTE=AzuiSleet;14009381]This is my second attempt at a browser in gmod. LLMozLib had too many issues, but Awesomium reached a stable point, and shows a lot of potential. This is my binding for it in gmod. This uses Awesomium! [url]http://princeofcode.com/awesomium.php[/url] [URL=http://img12.imageshack.us/my.php?image=gmchrome.jpg][IMG]http://img12.imageshack.us/img12/9562/gmchrome.th.jpg[/IMG][/URL] [url]http://code.google.com/p/gmodmodules/[/url] [url]http://code.google.com/p/gmodmodules/source/browse/#svn/trunk/gm_chrome[/url][/QUOTE how to instal the Awesomium! module pls reply :smile:
Sorry, you need to Log In to post a reply to this thread.