YOUR ACCOUNT

Login or Register to post new topics or replies
Sjeiti
sock puppet

Posts: 722
Filters: 71
Hey people, it's been a while.

I made a cool bookmarklet that let's you watch a filter in 3D on it's own page. It uses WebGL so you need a browser like Chrome.

Just go to http://ffpreview.sjeiti.com/, drag the link to your bookmarks bar, go to a filter page and press the bookmark.

It's a start, I'll be expanding it with more features. Just watch this thread.
  Details E-Mail
Sphinx.
Filter Optimizer

Posts: 1750
Filters: 39
Hmm.. is some special version of Chrome required? According to the About Menu, my Chrome version is the latest (11.0.696.71), but when I try WebGL demos I get a message that tells me to upgrade Chrome..
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
I don't think so, I have v11.0.696.71 as well. Can you run any of the WebGL examples at Three.js? (which is what I used to create the preview) It could also be that your graphics card doesn't support WebGL.

Oh... hold on... I totally forgot (did that months ago): you have to initialize Chrome with extra parameters to enable WebGL, so call: chrome.exe --use-gl=desktop.

...and it will look like this:

  Details E-Mail
Betis
The Blacksmith

Posts: 1207
Filters: 76
Works for me smile:D this is pretty neat!
Roses are #FF0000
Violets are #0000FF
All my base are belong to you.
  Details E-Mail
Skybase
2D/3D Generalist

Posts: 4025
Filters: 76
You just changed the way I look for filters forever. smile:)
  Details E-Mail
softhunterdevil
check my filters

Posts: 125
Filters: 11
What about a cube ? And how does it take metal / reflection map ?
check my filters please
  Details E-Mail
lipebianc
FFF = Filter Forge Fan

Posts: 566
Filters: 12
Woah! Just found it! smile:)
Congratulations!!
Soday maybe FF team could implement this funcion directly on the website smile;)

"From the moment we are born, we start being filtered..."
  Details E-Mail
softhunterdevil
check my filters

Posts: 125
Filters: 11
cant preview this filter http://filterforge.com/filters/9572.html whats the problem ?
check my filters please
  Details E-Mail
lipebianc
FFF = Filter Forge Fan

Posts: 566
Filters: 12
Quote
softhunterdevil wrote:
cant preview this filter http://filterforge.com/filters/9572.html whats the problem ?


Same here for the mentioned filter.
I'm using Firefox 4, btw.
"From the moment we are born, we start being filtered..."
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
Quote
softhunterdevil wrote:
What about a cube ? And how does it take metal / reflection map ?


Yeah cube and other primitives are in the pipeline. The problem is that the open source lib I made it in (three.js) is quite new. The only primitives working in WebGL are a sphere and a torus. And I first want to fix the tiling, which is now only possible if you alter the uv-coordinates of the object (which is not really what you want).

Haven't really checked all the reflection and metal mapping and stuff. Don't know much about that part of 3D either so it'll take some time before that's properly implemented.

Quote
softhunterdevil wrote:
cant preview this filter http://filterforge.com/filters/9572.html whats the problem ?


Regex looking for filter number fails somewhere...
  Details E-Mail
Mike Blackney

Posts: 375
Filters: 57
This is really nice!
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
I've updated it a bit... you can now choose between torus, sphere, and plane (still having issues with the cube in WebGL). Filters without maps are now rendered with a simple phong shader. Browsers without WebGL now do software rendering but with a message how to get WebGL running.

I was also thinking for the plane... or maybe a separate option :: just leave the plane flat (as the image) and just move the lights about.

- another update -

fixed the above flat plane (move light with mouse, height of light with wheel)
fixed the filternumber bug
added cookie: it remembers the last 3D object

That's it for now, I really should be doing other stuff... smile:-p
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
...and just a small screenshot of the new flat view:

  Details E-Mail
Vladimir Golovin
Administrator
Posts: 3446
Filters: 55
Fantastic idea.

I was like, how on Earth could this thing work so fast and smooth in my browser, but then I remembered that I have Firefox 4, which probably has WebGL built-in. Works perfectly by the way.

(We tried to implement a similar feature, but we didn't use WebGL. We used plain canvas with Javascript rendering, but the result wasn't anywhere near as fast as your version.)
  Details E-Mail
Kraellin
Kraellin

Posts: 12749
Filters: 99
sjeiti,

i can use firefox and i've got the ffpreview thing set up, but i get a message when i click on a filter and hit the ffpreview of: Firefox 4 (iOS: about:config => webgl.mochitest_native_gl=true) . what the heck is that? what is "iOS" and where do i find it and the same with "about:config =>"??

and is there a firefox 4? when i hit the update firefox, it gives me a message to update to 3.5.4 version. so, i'm a bit confused here.
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
Kraellin
Kraellin

Posts: 12749
Filters: 99
Quote
Sjeiti wrote:
Browsers without WebGL now do software rendering but with a message how to get WebGL running


hate to be a pain, but you cant drag the "ffpreview" thing to the favorites bar in i.e. and there is no message 'how to get webgl running' for i.e. I'm using i.e. 8.xx
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
GMM
Moderator
Filter Forge, Inc
Posts: 3491
Quote
Kraellin wrote:
and is there a firefox 4?


There's a Firefox 5.0 beta already smile:)
Btw, I'd recommend you backup your current Firefox installation before upgrading to Firefox 4 or 5beta: Mozilla have introduced a pack of doubtful features and removed some of the needed ones.
  Details E-Mail
Kraellin
Kraellin

Posts: 12749
Filters: 99
thanks, gmm smile:)
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
Quote
Kraellin wrote:
what the heck is that


Well, if you type 'about:config' in your Firefox adress bar you get a whole lotta options you can set. Just look for the stuff starting with 'webgl'. Btw, I didn't actually see an option called 'webgl.mochitest_native_gl' but I figured it was an iOS thingy (I'm on pc and too lazy to check it on the Mac I have smile:-p)

Quote
Vladimir Golovin wrote:
We tried to implement a similar feature


This was build with Three.js, they did all the hard work (although I did see some of my code back in the sphere primitive which was ported from Papervision3D).

I could send you the code if you want. Or you could wait a while. For one the Three.js library is not finished (for instance: WebGL texture repetition was only implemented yesterday, but doesn't work for the normal shader yet (it does for the phong shader that is used for the simple textures)). And I want to extend it a bit with lighting- and texture controls.
  Details E-Mail
Targos
Game Dev
Posts: 196
This thing is amazing!
  Details E-Mail
CFandM
ForgeSmith

Posts: 4762
Filters: 266
Awesome stuff Sjeiti......

Craig if you use Firefox4 you can type the "about:config" in the web addy bar...Then you will be asked about some warranty blah blah..Just click OK or Next to get to the window with a lot of text........At the very bottom of that screen you will find the adjustments to make.....I got the same thing you did but here are my new settings for this to work....

Stupid things happen to computers for stupid reasons at stupid times!
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,714 Registered Users
+19 new in 30 days!

153,538 Posts
+7 new in 7 days!

15,348 Topics
+72 new in year!

Create an Account

Online Users Last minute:

12 unregistered users.