It is currently Thu Jul 04, 2024 4:43 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 20 posts ] 
Author Message
 Post subject: Round Raster 2 experimental (python script)
PostPosted: Sat May 14, 2016 3:24 am  (#1) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
The script will generate height maps (I think that's what they're called) for your selection.
example 1.
make a selection like below
Image
script renders
Image
example 2.
make a selection like below
Image
script renders
Image

Script will be available under Python-Fu/Round Raster 2 Experiment...
Attachment:
python_fu_round_raster_2.zip [1.64 KiB]
Downloaded 269 times

_________________
TinT


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Round Raster 2 experimental (python script)
PostPosted: Sat May 14, 2016 8:07 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 426
Some people call them height map some depth map some alphas. It all depends on who your talking to. Is the glass half empty is the glass half full. It's all the same thing.

This looks like the round raster script you made except it starts with a selection. And it's a python script. It works great. It seems to be effective only with symmetrical and horizontal shapes.

I like it.


Top
 Post subject: Re: Round Raster 2 experimental (python script)
PostPosted: Sat May 14, 2016 8:27 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 426
This gets me to thinking well how about not just round but maybe from black left to whit right. Or even instead of round white to black to white, kind of pointed. This script is unique because you don't seem to need to be perfectly symmetrical from side to side, so it could give some pretty good blend effects other than round.


Top
 Post subject: Re: Round Raster 2 experimental (python script)
PostPosted: Sat May 14, 2016 10:49 am  (#4) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
PegLeg44 wrote:
This gets me to thinking well how about not just round but maybe from black left to whit right. Or even instead of round white to black to white, kind of pointed. This script is unique because you don't seem to need to be perfectly symmetrical from side to side, so it could give some pretty good blend effects other than round.

you said pointed so i thought maybe this one is of some use too :hehe
sample 1
Image
sample 2
Image

I called it Pointed Raster
will be available under Python-Fu/Pointed Raster Experiment ...
Attachment:
python_fu_pointed_raster.zip [1.63 KiB]
Downloaded 271 times

_________________
TinT


Top
 Post subject: Re: Round Raster 2 experimental (python script)
PostPosted: Sat May 14, 2016 11:12 am  (#5) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
PegLeg44 wrote:
This gets me to thinking well how about not just round but maybe from black left to whit right.

I call this one slope raster experiment
sample of when user choose "Left To Right"
Image
sample of when user choose "Right To Left"
Image

script will be available under Python-Fu/Slope Raster Experiment...
Attachment:
python_fu_slope_raster.zip [1.69 KiB]
Downloaded 251 times

_________________
TinT


Top
 Post subject: Re: Round Raster 2 experimental (python script)
PostPosted: Sat May 14, 2016 11:14 am  (#6) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
If ya got any other crazy ideas and that you can give me formulas to calculating the height, let me know :hehe

btw what is the program that you used in your video to show the 3D view when you rotate it around to look like wood looking texture...is it easy to use and is it free? I thought maybe if it's free i'll use it to play around with these black and white experiements of mine. If it's not free then it's okay no worries.

_________________
TinT


Top
 Post subject: Re: Round Raster 2 experimental (python script)
PostPosted: Sat May 14, 2016 11:40 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 426
The pointed and slope look good. I'll try them out a little later. I've got some work that I need to do.

The program I use to easily paste in and view the height maps is a software that goes with my Carvewright CNC machine. I know you can try out the software for 30 days but that's no good. You can save as an image and set it up on a mesh as a displacement map in blender but it's a little work setting it up and saving and all. I use my zbrush to easily bring it into the mesh via zaplink external editor. I have my zaplink set up for gimp. Which means I have to edit in gimp and save as a photoshop psd to re enter zbrush. There's also a free to try program called bmp2cnc which is the software that I use to set up my g-code for my CNC. But it's not truly a 3D preview with shadows. It's just a 3D height by color.

Image


Last edited by PegLeg44 on Sat May 14, 2016 11:46 am, edited 1 time in total.

Top
 Post subject: Re: Round Raster 2 experimental (python script)
PostPosted: Sat May 14, 2016 11:42 am  (#8) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
PegLeg44 wrote:
The pointed and slope look good. I'll try them out a little later. I've got some work that I need to do.

The program I use to easily paste in and view the height maps is a software that goes with my Carvewright CNC machine. I know you can try out the software for 30 days but that's no good. You can save as an image and set it up on a mesh as a displacement map in blender but it's a little work setting it up and saving and all. I use my zbrush to easily bring it into the mesh via zaplink external editor. I have my zaplink set up for gimp. Which means I have to edit in gimp and save as a photoshop psd to re enter zbrush. There's also a free to try program called bmp2cnc which is the software that I use to set up my g-code for my CNC. But it's not truly a 3D preview with shadows. It's just a 3D height by color.

that's sounds way to complex for me :hehe I'll stick to playing with GIMP

_________________
TinT


Top
 Post subject: Re: Round Raster 2 experimental (python script)
PostPosted: Sat May 14, 2016 11:56 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 426
Any other manipulations can be added after the script using the Curves dialog or [Colors] [Map] [Gradient Map]

Image


Top
 Post subject: Re: Round Raster 2 experimental (python script)
PostPosted: Sat May 14, 2016 1:41 pm  (#10) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
PegLeg44 wrote:
Any other manipulations can be added after the script using the Curves dialog or [Colors] [Map] [Gradient Map]

[ Image ]


neat stuff you do.

_________________
TinT


Top
 Post subject: Re: Round Raster 2 experimental (python script)
PostPosted: Sat May 14, 2016 5:39 pm  (#11) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
I call this one Round Border Raster Experiment.
Warning this script takes a really long time to render on larger selected areas, like enough time to go have a coffee and come back to.
sample selection 1
Image
script renders this
Image
sample selection 2
Image
script renders this
Image
selected shape blurred and bump mapped
Image
it'll be availabe under Python-Fu/Round Border Raster Experiment...
Attachment:
python_fu_round_border_raster.zip [1.98 KiB]
Downloaded 106 times

_________________
TinT


Last edited by trandoductin on Sat May 14, 2016 8:41 pm, edited 1 time in total.

Top
 Post subject: Re: Round Raster 2 experimental (python script)
PostPosted: Sat May 14, 2016 8:25 pm  (#12) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
This one is even slower and even more experimental.
selection
Image
what script renders
Image
blurred and bump mapped.
Image
I particularly like the result of the lop-sided donut shape.
This is a different version of the script in the above post.
Attachment:
python_fu_round_border_raster.zip [2.22 KiB]
Downloaded 107 times

_________________
TinT


Top
 Post subject: Re: Round Raster 2 experimental (python script)
PostPosted: Sat May 14, 2016 9:30 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 426
You can get those same kind of results just simply using a round gradient with the blend tool set to [shaped (angular)] and it doesn't take a whole lot of time.

If you could get something where the fill is lets say black on the outside and white on the inside, then that would be something new. The Path blend script is the only way I've seen that something like that can be done.


Top
 Post subject: Re: Round Raster 2 experimental (python script)
PostPosted: Sat May 14, 2016 9:44 pm  (#14) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
PegLeg44 wrote:
You can get those same kind of results just simply using a round gradient with the blend tool set to [shaped (angular)] and it doesn't take a whole lot of time.

If you could get something where the fill is lets say black on the outside and white on the inside, then that would be something new. The Path blend script is the only way I've seen that something like that can be done.

Black on the outside and white on the inside? doesn't invert do that? I am confused.

_________________
TinT


Top
 Post subject: Re: Round Raster 2 experimental (python script)
PostPosted: Sun May 15, 2016 12:17 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 426
I mean anything with a hole in it. If you could do your slope type of thing, only from the inside to the outside of a donut. It is possible... anything is possible...
It's not possible though unless it's done manually.


Top
 Post subject: Re: Round Raster 2 experimental (python script)
PostPosted: Sun May 15, 2016 1:03 am  (#16) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
i think that's probably easier manually.
I could probably do one shape with a hole in it but not a shape with 2 or more holes or many shapes with multiple holes.
It's probably easier right now to use lighten only and cut out the holes manually.

_________________
TinT


Top
 Post subject: Re: Round Raster 2 experimental (python script)
PostPosted: Sun May 15, 2016 10:05 am  (#17) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Just for a laugh, I tried using your height/depth map as a height_field image in POVRay (after inverting, POVRay treats white as the highest point)

Attachment:
height_field2.png
height_field2.png [ 316.44 KiB | Viewed 1700 times ]
Attachment:
height_field4.png
height_field4.png [ 333.04 KiB | Viewed 1700 times ]


Kevin


Top
 Post subject: Re: Round Raster 2 experimental (python script)
PostPosted: Sun May 15, 2016 10:12 am  (#18) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
paynekj wrote:
Just for a laugh, I tried using your height/depth map as a height_field image in POVRay (after inverting, POVRay treats white as the highest point)

Attachment:
height_field2.png
Attachment:
height_field4.png


Kevin

a badly designed drumbell :hehe

_________________
TinT


Top
 Post subject: Re: Round Raster 2 experimental (python script)
PostPosted: Mon May 16, 2016 12:37 pm  (#19) 
Offline
GimpChat Member

Joined: Dec 29, 2015
Posts: 223
Hi There,

I was just trying the script on a square and got the look of ceramic tiles. Such tiles have been used on the walls of our house. I had no plan to design them in gimp with this script.


Attachments:
Tiles.png
Tiles.png [ 19.48 KiB | Viewed 1680 times ]
Bump map.png
Bump map.png [ 3.66 KiB | Viewed 1680 times ]
Top
 Post subject: Re: Round Raster 2 experimental (python script)
PostPosted: Mon May 16, 2016 2:13 pm  (#20) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
Rashid wrote:
Hi There,

I was just trying the script on a square and got the look of ceramic tiles. Such tiles have been used on the walls of our house. I had no plan to design them in gimp with this script.


nice looking red tiles.

_________________
TinT


Top
Post new topic Reply to topic  [ 20 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Learning to do first Python script

6

No new posts Attachment(s) My first Python Script for Gimp

7

No new posts .py script not showing under Python-Fu

3

No new posts Does anyone have script fu and python plugins that work on 2.99.19?

1

No new posts Attachment(s) Experimental Fractal GIF

11



* Login  



Powered by phpBB3 © phpBB Group