photex Posted June 25, 2007 Share Posted June 25, 2007 I've been working out how to shade an object with stylized fish scales such as in the woodblocks by Ando Hiroshige and his contemporaries. Here are some examples: http://www.nga.gov.au/MonetJapan/Images/LRG/J80.jpg http://www.popartuk.com/g/l/lgpp30987+swim...hige-poster.jpg So far I have the basic pattern down, but anything fancier is still on my todo list (bump, gradients/color, specularity). There is a bug with it at the moment that you'll see if you play with the repetition parameters. A black line will appear in the pattern and I'm not sure why or what to do about it. Any comments, nudges in the right direction, and corrections to glaring rookie mistakes are always appreciated as this is my first shader-from-scratch attempt. Thanks chip fishscales_shader_ball.hipnc Quote Link to comment Share on other sites More sharing options...
photex Posted June 27, 2007 Author Share Posted June 27, 2007 I've converted the shader to pure vex as well as rsl to help me get along in my quest. I've attached the source and otl. I tried to attach the rsl file but wasn't able to. vex_hiroshige.vfl LoFiShaders.otl Quote Link to comment Share on other sites More sharing options...
photex Posted June 29, 2007 Author Share Posted June 29, 2007 Well, here is an update. I've got the texture looking as I'd imagine and next on the list is bump and specular but I'm going to work on a fish model first I think. rdg helped me clean a couple of things up in the code too. And if anyone checks out the code and has some suggestions I'd appreciate hearing them. _chip vex_hiroshige.vfl Quote Link to comment Share on other sites More sharing options...
rdg Posted June 29, 2007 Share Posted June 29, 2007 I like the black an white version! Thanks for explaining the inner workings. Georg Quote Link to comment Share on other sites More sharing options...
LEO-oo- Posted June 29, 2007 Share Posted June 29, 2007 Cool stuff - thanks for sharing! Quote Link to comment Share on other sites More sharing options...
sibarrick Posted June 30, 2007 Share Posted June 30, 2007 like it. nice illustrational style. Quote Link to comment Share on other sites More sharing options...
stu Posted June 30, 2007 Share Posted June 30, 2007 Love it! Quote Link to comment Share on other sites More sharing options...
photex Posted July 1, 2007 Author Share Posted July 1, 2007 Thanks guys Quote Link to comment Share on other sites More sharing options...
zoki Posted July 2, 2007 Share Posted July 2, 2007 great progress! I like blue one is very nice!!! z Quote Link to comment Share on other sites More sharing options...
jeenyus Posted July 2, 2007 Share Posted July 2, 2007 Well, here is an update.I've got the texture looking as I'd imagine and next on the list is bump and specular but I'm going to work on a fish model first I think. rdg helped me clean a couple of things up in the code too. And if anyone checks out the code and has some suggestions I'd appreciate hearing them. _chip Hey Chip! Very cool! i like blue one. Thnx for sharing. -------- Carlos Quote Link to comment Share on other sites More sharing options...
stevenong Posted July 3, 2007 Share Posted July 3, 2007 Great stuff! Thanks for sharing! Cheers! steven Quote Link to comment Share on other sites More sharing options...
photex Posted July 15, 2007 Author Share Posted July 15, 2007 Hi all, a small update added my initial anti-aliasing effort. As mentioned in another thread, there is currently a problem in the areas where the three colors converge but it's not really noticeable until you get up close to the pattern. I'm working on it though. Until then here is the code. cheers, chip vex_hiroshige.vfl Quote Link to comment Share on other sites More sharing options...
rob Posted July 16, 2007 Share Posted July 16, 2007 really cool ......... Rob Quote Link to comment Share on other sites More sharing options...
photex Posted July 16, 2007 Author Share Posted July 16, 2007 Thanks! Quote Link to comment Share on other sites More sharing options...
dee900 Posted July 21, 2007 Share Posted July 21, 2007 Sugoi! Quote Link to comment Share on other sites More sharing options...
photex Posted July 21, 2007 Author Share Posted July 21, 2007 Sugoi! Arigato gozaimasu! Quote Link to comment Share on other sites More sharing options...
photex Posted July 21, 2007 Author Share Posted July 21, 2007 (edited) Got bump mapping working out. Not crazy about the pattern at the moment, but I think it'll come around once I get a glassy sheen over the entire thing. I've also switched from plain diffuse to a blinn specular. This is also not quite where I want it, but I'm learning so it's ok for now. One of the things that is vexing me (ha!) at the moment is when using bump on polygons. Everything gets faceted. A quick search turned up that computenormal has more than one version, one of which fixes the problem of faceting. However, I'm not sure what it's doing different and how I can emulate it into my RSL version of the shader. Until then my rsl version looks good on non-polygonal geometry. lofi_fish.vfl Edited July 21, 2007 by photex Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.