Coming Up This Week - mcjPetals - Plant and grow petals of any shape

mCasualmCasual Posts: 4,607
edited June 2022 in Freebies

shapes like elongated triangles / fans ( could make hair with the proper opacity maps )

shapes like needles that kind of look more like porcupine than hair

shapes like trumpets? i think so yes

 

mcjPetals will be released here today, tomorrow or tomorrow's tomorrow if all goes well

https://sites.google.com/site/mcasualsdazscripts10/mcjpetals

 

This script has been aaaaalmost ready for release since 2018 so i'm very ashamed and humbled (yes kidding)

 

 

 

The mcjPetals Collection.jpg
3840 x 1440 - 882K
285302836_10161974276864746_1854406682419994037_n.jpg
801 x 619 - 68K
Post edited by mCasual on
«1

Comments

  • Silver DolphinSilver Dolphin Posts: 1,608

    Looks good. Nice work. Thank you

  • mCasualmCasual Posts: 4,607
    edited June 2022

    i first re-read my 2018 code, all 2070 lines

    then i can fix whatever bug, improve other features and maybe add a few options

    but the UI is pretty busy as it is

    it's already working, but i forgot what was left to do in 2018

    Silver Dolphin said:

    Looks good. Nice work. Thank you

    The Petals of Zenia.png
    1080 x 1920 - 1M
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited June 2022

    petals growing on a donut with 0-sized hole

     

    The Petals of Zenia 2.png
    1080 x 1920 - 1M
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited June 2022

    as of Sunday 1:15am we still seem to be on-track for a late Sunday Release

    maybe monday in the middle of the night :o

    The Petals of Zenia 11 1080p.jpg
    1024 x 1820 - 414K
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited June 2022

    mcjPetals will be released here today, tomorrow or tomorrow's tomorrow if all goes well

    https://sites.google.com/site/mcasualsdazscripts10/mcjpetals

    Les Pétales de Xénia Douze.png
    1080 x 1080 - 2M
    Post edited by mCasual on
  • richardandtracyrichardandtracy Posts: 5,683
    Looking forward to seeing this work. It could be a replacement for the venerable plant creator program, making plants that never existed look real.
  • mCasualmCasual Posts: 4,607
    edited June 2022

    the script mcjBuilderA can load/plant .objs but also if you have basic programming experience you can build a castle and furniture with it

    https://sites.google.com/site/mcasualsdazscripts3/mcjbuildera

    mcjPetals (will) only plant tubes/ribbons at the surface of a mesh, and kind of catapults the vertices according to a specified speed and gravity

    https://sites.google.com/site/mcasualsdazscripts10/mcjpetals

    mcjTransport  is one of the ancesters of mcjPetals and creates tubes around the path of an animated node 

    https://sites.google.com/site/mcasualsdazscripts2/mcjtransport

     this horn was created using mcjTransport

     

     

    richardandtracy said:

    Looking forward to seeing this work. It could be a replacement for the venerable plant creator program, making plants that never existed look real.

    horn.jpg
    1000 x 1000 - 86K
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited June 2022

    New Promo Video only 1:30 showing test runs of the script ( many but not all which you saw above )

     

     

    ZeniaPromo_001.jpg
    1920 x 1080 - 344K
    Post edited by mCasual on
  • Faeryl WomynFaeryl Womyn Posts: 3,628

    This looks really interesting, can't wait for it to be ready so I can try it lol

  • mCasualmCasual Posts: 4,607
    edited June 2022

    I made some progress so it's comingalong slowly but shirley

     

    Faeryl Womyn said:

    This looks really interesting, can't wait for it to be ready so I can try it lol

    Post edited by Richard Haseltine on
  • mCasualmCasual Posts: 4,607
    edited June 2022

    still working on it because i took time to make this

    and this 

     

    The Petals of Zenia Fourteen.png
    768 x 1024 - 444K
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited June 2022

    making progress with mcjPetals

    The Petals of Zenia Ffifteena.png
    768 x 1024 - 701K
    The Petals of Zenia Fifteen.png
    1600 x 989 - 725K
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited June 2022

    here each 'petal' takes the uv coordinate from the surface of the object on which the petal grows

     

    The Petals of Zenia Sixteen.png
    1600 x 989 - 899K
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited June 2022

    tomorrow? maybe tomorrow or just in time for people who spend their late spring or late autumn weekend playing in D|S or working with D|S

     

     

    The Petals of Zenia 18.png
    1920 x 1920 - 5M
    Post edited by mCasual on
  • richardandtracyrichardandtracy Posts: 5,683
    Now that is looking very interesting. Very interesting indeed. If a variant could be done with Tex mapping (random X co ordinate value 0 to 1, y 0 to 1 along the length), then you have created a cloth dForce hair creating algorithm, which could be unbelievably useful way beyond the original intention. Regards, Richard.
  • mCasualmCasual Posts: 4,607
    The 'petals can be tubes or ribbons, the shape/section of that tube/ribbon can be any oval/curve ( that shape is stored in an .obj file, as a series of v coordinates. ) Along the trajectory of the petal you can modulate the width and height of the tube (here too the waveform is a séries of vertiges in an obj file ) The petals grow according to their given growth speed + a variable up/down gravity value. So where were we? Yes you can make things that look like hair and grow on a scalp surface though so far they look like Las Vegas showgirls headwear. I wanted it to be ready last Sunday but it looks like it will be ... not saying :)
    Now that is looking very interesting. Very interesting indeed. If a variant could be done with Tex mapping (random X co ordinate value 0 to 1, y 0 to 1 along the length), then you have created a cloth dForce hair creating algorithm, which could be unbelievably useful way beyond the original intention. Regards, Richard.
  • mCasualmCasual Posts: 4,607
    edited June 2022

    Vertices not Vertiges (fighting against the phone's auto-correct )

    The script is coming in the U.S.J.E. ( Undefined Soon June 2022 Era )

     

     

    The Petals of Zenia 19.png
    1800 x 1600 - 4M
    The Petals of Zenia 20.png
    1920 x 1080 - 2M
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited June 2022

    Tamoka The Captain of The Guard of The Castle Points out the thorny issue of the delinquent petal-quills (that were supposed to grow inside the second triangle of the red panel )

    Tamoka The Captain of The Guard of The Castle Points out the thorny issue of the delinquant petal-quills.png
    2560 x 1440 - 3M
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited June 2022

    workinonit tonite

    Patience Young Jedi

    If you're not a Young Jedi it doesnt matter since it's a Yoda saying which are by nature Universal

    but but maybe this weekend it will be ready possibly marked as Beta or Dangerous

     

     

    The petals of Zenia 22.png
    900 x 1200 - 2M
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited June 2022

     

    not much progress much yesterday except for making new renders with petals

    and (re?) learning how to convert a getting a NASA Digital Elevation Map in GeoTiff UINT16 format converted to .16-bit .tif format

    so i'll give you my recipe right here righ now, and Gene, i could really use more cowbell.


    so when you get a gigantic geoTiff file from NASA or USGS maybe, you get the GDAL utilities binaries (executables).

    i installed it in

    C:\alice\gdal

    the apps are in C:\alice\gdal\bin\gdal\apps

    Then you copy paste the dlls included in the package in the apps folder (the apps need them).

    they are in C:\alice\gnal\bin

    Then you copy paste the GeoTiff in the apps folder. Then you write a batch file (.bat) onto which you can drag and drop that monster geotiff.

    this .bat file

    gdalinfo %1

    pause

    and you look for the range of pixel values

    for this piece of the moon, from -6610 to 2983. ( it's not negative intensities by the way they are just signed 16 bit integers )

    next we write a second batch (.bat) file that will convert the geotiff that gets spitted in the eye by paint programs into a hopefully 16 bits greyscale image

    this batch file gives me an 8-bit png when i drag and drop the geotiff on it, notice that we tell gdal up front that the pixel values from -6610 to 2983 must be scaled and translated to the 0-255 range

    gdal_translate -scale -6610 2983 0 255 %1 %1.out.png

    and this is the result a 15168x15168 8bpp .png

    shown here as 2048x2048

    and then i drop the geoStiff onto this .bat file written in notepad and saved as tifftotif.bat and we get the coveted 15168x15168 16bit per pixel digital elevation map in sane .tif format

    gdal_translate -scale -6610 2983 0 32768 %1 %1.out.tif

    maybe 65535 instead of 32768 would be better unless the tifs are also signed integers, but i didnt try it.

    didnt p

    rogress much yesterday except for making new renders with petals

    The Petals of Zenia 24.png
    1920 x 1080 - 4M
    The The-Making-of of The Petals of Zenia 24.jpg
    1920 x 1080 - 221K
    287815826_10161993749159746_8211247917741384386_n.jpg
    580 x 402 - 50K
    288002696_10161993770179746_6461151088513143350_n.jpg
    2048 x 2048 - 200K
    Post edited by mCasual on
  • richardandtracyrichardandtracy Posts: 5,683
    Don't rush, be convinced that it's working properly. I am sure everyone would prefer that. The promo images you are making look really intriguing. Regards, Richard.
  • mCasualmCasual Posts: 4,607
    edited June 2022

     i vaguely know exactly what's left to fix or add 

    yep vaguely exactly :)

    back in 2018 i had started adding the use of mcjCollider plugin probably to plant the 'petals ' on uneven terrain

    but that wont be in this distribution

    i have mcjTracer and its plugin that may interest you

    https://sites.google.com/site/mcasualsdazscripts/mcjtracer-the-line-thing

     

    richardandtracy said:

    Don't rush, be convinced that it's working properly. I am sure everyone would prefer that. The promo images you are making look really intriguing. Regards, Richard.

    mozaic_2_by_mcasual_d96er0x.jpg
    1280 x 720 - 416K
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited June 2022

    The Petals of Zenia 25

    One Headlight

     

    Les Petales de Zenia 25web.jpg
    3840 x 2160 - 706K
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607

    progress for the per-petal UV mapping

    not there yet but not far

    also notice that the second ring of the petal/tube is twisted unbecomingly

     

  • mCasualmCasual Posts: 4,607
    edited June 2022

    newer tests with better per-petal uv mapping

    1- Filament

    2 -iRay

    The Petals of Zenia 26filament.jpg
    3840 x 2160 - 834K
    The Petals of Zenia 26iRayweb.jpg
    3840 x 2160 - 737K
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited June 2022

    at last a located (but not quashed) the bug in mcjPetals wherein the second ring of the "petal" was oriented all wrong. i suspect it was trying to rotate something 0 degrees. If that's the issue it's easy. The UV mapping has 2 known things to fix

    The Petals of Zenia 27iRay.png
    1080 x 1920 - 2M
    Post edited by mCasual on
  • perlkperlk Posts: 854

    This looks super cool. Are you looking for beta testers at any point? Specifically novice users who don't know how to run scripts in DS? :-)

  • mCasualmCasual Posts: 4,607
    edited June 2022

    iRay

    The Petals of Zenia xx_out.png
    1440 x 1280 - 3M
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited June 2022

     well i'll release it on my freebies web site when the UV maps will be correct 

    maybe i'll call it the beta version

    i didnt get hard crashes during my tests so that's good news

    maybe 1 day or 2

    i will also add some code to prevent doing things like generating 4 million polygons 

    oh and an abort process button

    and there's the dang manual/instructions to write :)

    filament render yesterday, the twist at the base of the 'petals' is being fixed presently

    later on i may add a .exe or plugin accelerator for cases where you do want to generate 4 million polygons

     

    picture: VR360 view from the ground looking up at petals that grew on a skirt-shape

     

    perlk said:

    This looks super cool. Are you looking for beta testers at any point? Specifically novice users who don't know how to run scripts in DS? :-)

    vr360_immersion_in_the_petals_of_zenia_23_vr360.jpg
    3840 x 1920 - 1M
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited June 2022

    The Petals of Zenia 29
    ( in other news i'll transplant mcjTransport's award winning tube generator in mcjPetals which was used to create the sconse-petal )

    The Petals of Zenia29_out.png
    2560 x 1440 - 4M
    Post edited by mCasual on
Sign In or Register to comment.