PDA

View Full Version : Shameless Plug: Composite Design Patterns and Painterly Rendering


mummey
04-26-2005, 06:56 PM
Hey all,

thought I would give you all a little insight to what I was working on lately. There is no WIP or gallery forum for technical people so this forum is the next best thing. :arteest:

Anyways, I had two projects this term: One in the area of software design and the other an implementation of a painterly rendering paper from 1998.

Composite Design Patterns (http://www.mummey.net/project/CDP/index.php)

Painterly Rendering using Curved Brush Strokes (http://www.mummey.net/project/PRS/index.php)

I hope you enjoy. :thumbsup:

-b

mummey
04-28-2005, 12:38 PM
Some results from the Painterly Rendering:

The original
http://www.mummey.net/images/DSCN0019.JPG

A point render.
http://www.mummey.net/images/NMpoint.jpg

Stroke length varying from 4 to 16
http://www.mummey.net/images/NMmi4ma16.jpg

Enjoy! :thumbsup:

DogmaD
04-28-2005, 05:14 PM
You have some pretty nice results there :) I like Hertzmann's work very much, and you did a very good job implementing them. I don't know if you have looked at some of the newer papers. But if you are interested, and might not have heared of them. Try looking into DeCarlo and Santella. ( http://www.cs.rutgers.edu/~decarlo/abstract.html (http://www.cs.rutgers.edu/%7Edecarlo/abstract.html) )

They have a very nice stylistic render technique. :) It is based on eye data. But i am sure it can partly be simulated with saliance. Anyway, i like your work, and yes, there should be more of technical stuff on CGTalk. It would be a very nice addition.

I am currently working on NPR visualizations of volumetric datasets. So if i have some pretty pictures, i will be sure to post them around here too, hehe. :)

Keep the NPR renders coming ! :thumbsup:

mummey
04-29-2005, 06:10 PM
Thank you for the support! :thumbsup:

Here's another image:

Original
http://www.mummey.net/images/denver.jpg

Render
http://www.mummey.net/images/denverart.jpg

I'm working on a new version that has a better interface and supports more file formats (right now it only handles .ppm files).

Edit: looks like it still needs a little work from this image. :shrug:

mummey
05-01-2005, 02:34 AM
I am moving over the code to using the DevIL API for image loading and saving.
http://www.mummey.net/images/test.jpg

Still some errors to be worked out... :shrug:

Galo
05-01-2005, 12:12 PM
verry nice i've read through your final note on implementing multiple design patterns into a application acting as one,i am studying design patterns atm so it was very usefull, thanks for the input!


cheers,
Galo

mummey
05-01-2005, 01:39 PM
Thanks Galo! :thumbsup:

Still working on the Painterly Rendering this weekend...
http://www.mummey.net/images/test2.jpg

Getting better! but still a few areas that need work.

-b

Galo
05-01-2005, 02:28 PM
Mummey,

In your note your presenting 3 ways of splitting up design patterns to integrate them with your software sheets, the problem i have is the fact that i can't make up what my actual problems in my software are and what the solutions to that specific problem are.

Im struggling a lot with UML sheets based on design patterns cause there are so many options to solve different problems, do you have a good practice reference or method to use for this issue, i mean how do you start, when you have a problem only in your mind, i always write it on down on plain paper, the whole concept, but that's just the text, then i try to make up my sheets with the neccecary functionalities and methods but i find myself falling back to basics every time instead of moving on, what i mean is that i have issues makeing decissions for certain problems, they say design patterns are there to solve that but there are so many design patterns to use it drives me nuts.

Hope you can awnser my question since it has nothing to do with your rendering engine.

OT : I saw you awnsered one of my questions before at this thread http://www.cgtalk.com/showthread.php?t=225389&highlight=UML

Since im dutch my english is not perfect and the definition of "Requirements" is rather broad to me so do you have any references that would help me understand the case of specifying requirements for an application, since i have not done this yet but went from my concept straight to UML without specifying any requirements. How do you specify requirements, where do you begin, at the initialisation of the application or do you go for the datahandling or modeling purposes. And where how do you go from there, what's the most impotant piece in the application to specify requirements for and how do you seperate them, based on what do you seperate them.

The fact is i'm learning this myself and have not had any education in developing software.
Another problem is i work with web-applications and these are ss and not cs, most of the design patterns are based on client side, i do have read through the entire http://www.phppatterns.com/ websitge but nothing usefull is being told regardin8g to my problem.

Sorry for this post to be so damn long :-) just trying to get you into my problem.

thanks in advance,
Galo

mummey
05-02-2005, 12:46 PM
Mummey,

In your note your presenting 3 ways of splitting up design patterns to integrate them with your software sheets, the problem i have is the fact that i can't make up what my actual problems in my software are and what the solutions to that specific problem are.

Im struggling a lot with UML sheets based on design patterns cause there are so many options to solve different problems, do you have a good practice reference or method to use for this issue, i mean how do you start, when you have a problem only in your mind, i always write it on down on plain paper, the whole concept, but that's just the text, then i try to make up my sheets with the neccecary functionalities and methods but i find myself falling back to basics every time instead of moving on, what i mean is that i have issues makeing decissions for certain problems, they say design patterns are there to solve that but there are so many design patterns to use it drives me nuts.

Hope you can awnser my question since it has nothing to do with your rendering engine.

Design Patterns do require some background knowledge. They are useful as a guide for when you're trying to make design decisions.

To narrow down your search for the 'correct' design pattern:

1. What kind of behavior are you looking for? (Create, adapt, organize, etc...) You'll notice the Gang of 4 book is organised in that way.

2. Skim over the patterns in that area of behavior. Figure out which design pattern contains themost details you need for the design while containing the fewest that you do not need. This may be a little tough because it means you have to identify which details in your design are the most critical and fill those needs first.


OT : I saw you awnsered one of my questions before at this thread http://www.cgtalk.com/showthread.php?t=225389&highlight=UML

Since im dutch my english is not perfect and the definition of "Requirements" is rather broad to me so do you have any references that would help me understand the case of specifying requirements for an application, since i have not done this yet but went from my concept straight to UML without specifying any requirements. How do you specify requirements, where do you begin, at the initialisation of the application or do you go for the datahandling or modeling purposes. And where how do you go from there, what's the most impotant piece in the application to specify requirements for and how do you seperate them, based on what do you seperate them.


Requirements are things like platform, memmory usage, etc...
Requirements are also the what your program accomplishes. All the things your program should accomplish should be listed in a requirements list before starting on the design. This is only the ideal goal though; it never really happens in practice.

mummey
05-02-2005, 12:47 PM
I'm using the original image to fill in the gaps.
http://www.mummey.net/images/test3.jpg

mummey
05-02-2005, 01:33 PM
Added brush stokes of multiple lengths.
http://www.mummey.net/images/test4.jpg

Not b-splines yet. You'll notice the strokes look a little pixel-ated too. I'll be working on these later.

Galo
05-02-2005, 02:54 PM
Man, that render of yours is realy comming along isn't it....

Mummey, thanks a milion dude, i think i got the point now since im already defining the requirements right now and i do see your point in here. Also i would like to thank you for the Identification and Implementation of CDP in Software design notes you wrote, helped me alot and after i've red it for the 3rd time i finaly got what it's about so.... thanks again!

Ill be definitly finishing up my project now...

Galo

mummey
05-02-2005, 03:48 PM
No problem Galo. My hope with the renders is to eventually port this code over to Mac and turn it into a nice little Cocoa app. I'm trying to hammer out the bugs in the method itself first before I start that though.

-b

mummey
05-02-2005, 04:10 PM
Added opacity to the strokes. This cleared up the mess the brush strokes were making.
http://www.mummey.net/images/test5.jpg

Galo
05-02-2005, 04:41 PM
verry nice there, so you want platform independency, this would be great so you could port from mac to pc and back with renders or not....


cheers,
Galo

CGTalk Moderation
05-02-2005, 04:41 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.