Fri, Apr 19, 9:52 AM CDT

Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Apr 19 8:49 am)



Subject: Candle Flame Shader For Firefly... (Use Postwork Answer Is For Cowards!)


  • 1
  • 2
3dcheapskate ( ) posted Mon, 09 May 2022 at 9:09 AM · edited Mon, 09 May 2022 at 9:09 AM

There just happened to be a candle flame on a YouTube video I'm half-watching, so here's a real flame for comparison:

av1EWbGLqIfykQTl7jkKxFWDcUqT9LarDsNQCVaY.jpg


Still noticeably different.

And the wick's completely black. Did a google image search and I've no idea where I got the ide the wick inside the flame is white ? :oS


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



hborre ( ) posted Mon, 09 May 2022 at 1:20 PM

The first time a candle is lit, the wick will be white for a time during its burn-in period.  Afterward, it will be completely black throughout its life.  A well-cared-for candle should never have a smoke trail; smoke trails appear when candles are relit with rather long, unkempt wicks.  They don't last long as the flame burns but they don't look pleasing.  Tha's why you should clip the wick shorter before relighting a candle.


VedaDalsette ( ) posted Tue, 10 May 2022 at 1:11 PM

This is like a new WICKipedia, hehe.



W10,Intel(R) Core(TM) i5-8600K CPU @ 3.60GHz, 32.0 GB RAM, 64-bit, video GeForce GTX 1050 Ti, 4GB.
Old lady hobbyist.
All visual art or fiction is "playing with dolls."


bagginsbill ( ) posted Fri, 13 May 2022 at 8:53 AM · edited Fri, 13 May 2022 at 8:55 AM

I managed to find my matmatic sources in an old dropbox folder. The rgb method was introduced in matmatic 1.7. There were several changes to make it easier to create colors either using integers or floating point numbers and not have to keep changing between Color and IColor. As well there were changes to make it optimize smarter, where sometimes a node network would be generated, and sometimes simple constants.

----------------------------------------------------

Matmatic 1.7.0

----------------------------------------------------

Added AmbientOcclusion parameter EvaluateInIDL.

Added PoserSurface parameter Gradient_Mode.

Added function rgb - constructs a color from three components. This is a smart function to construct colors statically (at compile time) or as nodes during the render. If any component is a node, a UserDefined node is created. If any component is a float, then Color(r, g, b) is returned. Otherwise, it returns IColor(r/255.0, g/255.0, b/255.0). Thus it is possible to express using either 8-bit (0 to 255) integer style or floating style (0.0 to 1.0).

Added function max(*args) - returns max of its arguments using compile-time math or numeric nodes or color nodes

Added function floor(x) - can take numbers (returns math.floor(x)) or nodes (returns Floor(x)) - thus it does the right thing.

Added function hsv(hue, saturation, value) - returns an rgb color (interprets int value as 0 to 255, float value as 0.0 to 1.0). This function will produce an exact color of all three inputs are known at compile time - otherwise it will create a node network that does the job at render time.



Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)


3dcheapskate ( ) posted Mon, 16 May 2022 at 8:49 AM

bagginsbill posted at 8:53 AM Fri, 13 May 2022 - #4438554

I managed to find my matmatic sources in an old dropbox folder. The rgb method was introduced in matmatic 1.7. ..

That makes sense - I'm using 1.6.0, which is the latest version in the last capture of your matmatic page by the Wayback Machine on 20 Oct 2020.

Any chance of getting hold of 1.7.0 ?




The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



3dcheapskate ( ) posted Mon, 16 May 2022 at 8:59 AM · edited Mon, 16 May 2022 at 9:07 AM

VedaDalsette posted at 1:11 PM Tue, 10 May 2022 - #4438409

This is like a new WICKipedia, hehe.

Keeping that WICKipedia theme here's a screenshot from another Youtube video that just happened to have some candles, tealight type ones, burning.

It struck me because I noticed that the ensd of the wicks were glowing in this one. I wonder if that's because they're newly lit as hborre suggested or because of the type of fuel/wax ?

WgLuRMw2jS8gqoq6RmuPvaOqPLfTi0JZuakNlOwd.jpg


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



hborre ( ) posted Mon, 16 May 2022 at 9:53 AM

I'll check on that.  I burn candles on a regular basis just to add fragrance to the environment and relaxation.  ATM, I am using a soy-based wax but I don't think that's the reason.


hborre ( ) posted Mon, 16 May 2022 at 10:07 AM
Here's the answer:
                                                                      GbXX5ogbvyvMXY6m8wYbiX299wEuXFailAZTL76Y.png

Zone 1 and zone 3 are filled with gaseous candle wax where there is not enough oxygen to burn the wick.  The bottom of the wick is "wicking" melted wax and is below combustion temperature.  The tip of the wick, however, is usually in zone 2 where the gaseous envelope of wax comes in contact with oxygen and thus promotes burning, producing the orange glow.


3dcheapskate ( ) posted Tue, 17 May 2022 at 4:57 AM · edited Tue, 17 May 2022 at 5:06 AM

Bagginsbill posted a similar but different picture showing zones a while back. What you found explains why the tip of the wick is sometimes, but not always, bright orange.

I found two more nice candle flames in videos, but rather just post those screenshots I've combined them with a few previously posted images.

LYgjNx6lrdCF3rCxv9BmfBXhttBFWPnlmYVz1GVo.jpg


Not surprisingly I think bagginsbill's latest version (bottom right) is the best of the Poser attempts, although I think that the wick needs to be longer and black (not white) - but that's the fault of my candle model. (And the bottom of the wick should be similar to the candle wax)

I was surprised how rounded the tops of the real candle flames are. I think Bagginsbill's first version (bottom left) got the shape spot on.

The real candle flame with the red candle (top right) to me looks very similar to bagginsbill's matmatic shader (bottom right), with only the ellipsoid shape of the flame and length of the wick really being noticeably different. As I said before, that's down to my candle and flame model.

However, two of the other three screenshots of real flames show a distinct gradation of the flame from orange to yellow to white near the bottom of the luminous zone. But I haven't yet managed to work out the maths of the matmatic script to see how that could be added.

P.S. this video is fantastic - and rather odd until you realize that he's actually using Faraday's original words. It sounded like the Rockwell Retro Encabulator to me !


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



VedaDalsette ( ) posted Tue, 17 May 2022 at 10:08 AM

That Rockwell clip is WICKed hilarious!



W10,Intel(R) Core(TM) i5-8600K CPU @ 3.60GHz, 32.0 GB RAM, 64-bit, video GeForce GTX 1050 Ti, 4GB.
Old lady hobbyist.
All visual art or fiction is "playing with dolls."


3dcheapskate ( ) posted Wed, 18 May 2022 at 7:17 AM

One of those real candle flames that I posted looks to me like three ellipses one inside another (speaking two-dimensionally) so I tried to very simplistically reproduce it in GIMP. Here's what I did, with the real flame for comparison. What struck me most was that the GIMP thumbnails top left look surprisingly good approximations to the real flame.

nG0j2A0YL5wWsfxLNyVZ8bMESIymj0A47vzGZ61O.jpg


I had a play with bagginsbill's matmatic-generated shader in Poser's material room to see if I could introduce a similar gradation of colour from the bottom to the tiop of the falme, specifically by plugging other nodes into the Inner_Color and Outer_Color inputs of the orange/yellow EdgeBlend node and altering the Saturation and Value of the HSV node connected to Alternate_Diffuse. 

No luck so far.

And no, I can't work out the maths to do it in the matmatic script itself.

P.S. I'm ignoring the blue zone here because I think that's already sorted.


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



3dcheapskate ( ) posted Wed, 18 May 2022 at 7:44 AM · edited Wed, 18 May 2022 at 7:46 AM

Forgot to attach this annotated screenshot of the material room

WgxdaL92M1JSnJ1DnVHVZKMBsC9ZrgbAzs0l2hED.jpg

(and apparently I also forgot to complete annotating it - it just indicates the bits I was playing with)


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



3dcheapskate ( ) posted Wed, 18 May 2022 at 8:55 AM · edited Wed, 18 May 2022 at 8:57 AM

Just did an 'ellipsoid' morph for the flame...

9OPwz6WVNHSGKCH3dlZulL9uWYJozHJiMjiB1rL9.jpg


Whoops !  I forgot that the flame shader uses the V coordinate of the UV mapping of the flame mesh, and that UV mapping is a bit arbitrary - a simple cylinder projection

8dqL5986zVgjIPJFEfC9FzEahFysW4DrtgWpgxLq.jpg


I think the default flame mesh probably needs to be an ellipsoid to start with, positioned as per a real flame in relation to the tip of the wick.

Obviously the UV mapping of the flame and the use of the V variable in the shader must be correlated


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



3dcheapskate ( ) posted Wed, 18 May 2022 at 9:39 AM · edited Wed, 18 May 2022 at 9:39 AM

Or how about a completely different approach - use the Y (vertical) component of the normal ?

NSOF78vWXXh7q2tpKcBYCqD5wYIlHCrRbULzDIQw.jpg


Maybe the Normal-Y can be used, possibly in conjunction with an EdgeBlend , to control both colour and transparency ?

This approach might even work for oddly shaped flames, e.g. where the wick is long and bent over and the flame burns along it horizontally



The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



3dcheapskate ( ) posted Wed, 18 May 2022 at 10:13 AM · edited Wed, 18 May 2022 at 10:17 AM

Whimsically connecting nodes and twiddling values, not considering the physics or maths of a flame. But it looks as if it might lead somewhere.

(once again I'm not including the blue bit here - this is just an idea for the orange/yellow/white part)

Eng7ZZZApuKOSys0cbE3QSHXYguGUgjHTBrkbOXR.jpg


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



hborre ( ) posted Wed, 18 May 2022 at 4:26 PM

This is very interesting, it looks like it's coming along.  This looks like it can be converted to Cycles without too much trouble once it is completely worked out.   I don't know your progress with Superfly rendering, in particular, using Cycles, but there might be problems with super bright ambient illumination as per your setup.  Mesh lighting can cause considerable render noise leading to long render times just to clear it up.  In my judgment, relying exclusively on ambient illumination as the primary source should be reconsidered, and use a low ambient flame with an inverse square point light emitting blackbody illumination.  IMO, that is the better way to use the candle flame in a scene. 


3dcheapskate ( ) posted Thu, 19 May 2022 at 9:25 AM · edited Thu, 19 May 2022 at 9:25 AM

It's definitely coming along. :)

For my next trick I decided to concentrate solely on trying to duplicate the nested ellipsoids effect I did in GIMP a few posts back. I realized that trying to use colour would just confuse and distract me, so I stuck to black and white.

The first thing that struck me was that I could use the v (texture coordinate) node instead of just black/white as the Inner_Color/Outer_Color of an Edge_Blend node.

The second thing that struck me was that I could use Bias/Gain* in a Math_Function node to alter the output of the v node as required.

The third thing I realized was that high (>1) Attenuation values in the Edge_Blend node 

I was amazed - just eight nodes (nine if you count the PoserSurface) and it's looking remarkably good to me.

F1PHQSOKZGeH0npkmeEevjUiusz1KbDEh9zXEU5p.jpg


I just wanted to make sure that I don't lose that !

What I have here looks as if it might be good to plug into Transparency, and perhaps a ColorRamp driven by the v node for the actual colour ?

*I still don't really understand what these do


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



3dcheapskate ( ) posted Thu, 19 May 2022 at 9:29 AM · edited Thu, 19 May 2022 at 9:37 AM

n1qbw1F1k8R5HI85rFA3gN5hK8sF1Hqe351y1ufc.jpg

Not quite what I'm after, but promising


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



3dcheapskate ( ) posted Thu, 19 May 2022 at 9:36 AM

hborre posted at 4:26 PM Wed, 18 May 2022 - #4438797

This is very interesting, it looks like it's coming along.  This looks like it can be converted to Cycles without too much trouble once it is completely worked out.   I don't know your progress with Superfly rendering, in particular, using Cycles, but there might be problems with super bright ambient illumination as per your setup.  Mesh lighting can cause considerable render noise leading to long render times just to clear it up.  In my judgment, relying exclusively on ambient illumination as the primary source should be reconsidered, and use a low ambient flame with an inverse square point light emitting blackbody illumination.  IMO, that is the better way to use the candle flame in a scene. 

The superbright ambient was just an attempt (misguided perhaps?) to get yellow and orange to render white. At least I think that's what I was trying to do. 

For the stuff after your post I've stuck to an Ambient_Value of 1. I'm using Ambient rather than Alternate_Diffuse (which is what bagginsbill used) because (a) I don't know the ins and outs of Alternate_Diffuse, and (b) Ambient seems the easiest way to ensure that I'm not getting any odd lighting interactions to confuse matters (I did set all the diffuse/specular stuff to black/zero too)


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



hborre ( ) posted Thu, 19 May 2022 at 9:40 AM

Yes, definitely, a colorramp node can recreate that gradation.  It's looking very good, very convincing. 


3dcheapskate ( ) posted Thu, 19 May 2022 at 9:49 AM · edited Thu, 19 May 2022 at 9:49 AM

Connecting the existing Edge_Blend to the Input of the ColorRamp, instead of just the v node, looks even more promising...

snDgfQudyzKo5MWaxCsM2ISZenofK8eooifEpXZ8.jpg



The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



hborre ( ) posted Thu, 19 May 2022 at 10:08 AM

Fantastic!


3dcheapskate ( ) posted Thu, 19 May 2022 at 10:18 AM · edited Thu, 19 May 2022 at 10:24 AM

For comparison:

b08AdSGDmIgn5JuELkP2vpJ7fjF5dlFmqPfIwryb.jpg

(I set the v node bias to 0.6 in bagginsbill's shader to get the height of the blue zone about right)

P.S.  I lost the original text I wrote due to a 502 bad gateway when I tried to post - this is my second attempt. Below is a much abbreviated version of what I originally wrote.

The glow and blue zone in bagginsbill's look spot on to me. But mine has the orange/yellow/white nested ellipsoids ! :P

And I see the black halo bagginsbill mentioned that his shader seemed to produce


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



seachnasaigh ( ) posted Thu, 19 May 2022 at 7:04 PM · edited Thu, 19 May 2022 at 7:04 PM

I made another candle model (the table candle's flame is down in the melt pocket and so not visible from the side).  It has an unseen (does not cast shadows, not visible in camera) emitter mesh closely fitted inside the flame mesh.  The flame can be given modest ambient so that it doesn't white out, while the emitter has an ambient value of 256.  This is a Firefly IDL render;  note that it casts a reasonable amount of light (there is no point light used).  As @hborre noted, this takes much longer to get a clean render, and Firefly IDL is notorious for the splotchy lighting;  I would instead use a point light (scaled to fit the flame) for a single candle, but the method is great for an array of hundreds of lights where using Poser lights would be prohibitive.

Bd4uglaWYZzcsw321DmWVMW2tM4xZbNAVmlw9uyw.jpg


BB's flame material, modified for dual root - the Superfly material adds the highlighted nodes which jack up the lightcasting output:

f1IYoPdEbwR6nSd9xcTr7gFJBVB8wGu80H2y6qQm.PNG


Flame prop properties:

Zw5lqgRqtIhO2zzBlzUFWlzOLGsgGPIZpYGJWdPr.PNG


Unseen flame emitter prop (for Firefly IDL use) properties:

Y3NkVg1I5YHLxcNVd3G3CHviByKL7w0oRovkijNl.PNG


This is where I *do* recommend use of mesh lighting:  lots of lamps in the elvish tree stairways (and the pixie dust trail):

PnvHQ1vnFyU2YECR4SFq0GAZjWmuPcXFk2zwXV16.jpg


...or odd complex shapes, such as the tubular neon of Xanadu:

6BiAxCDlKoyrYq2rZDcsUpziNvicrE6eHIngkdwj.jpg

Poser 12, in feet.  

OSes:  Win7Prox64, Win7Ultx64

Silo Pro 2.5.6 64bit, Vue Infinite 2014.7, Genetica 4.0 Studio, UV Mapper Pro, UV Layout Pro, PhotoImpact X3, GIF Animator 5


ghostship2 ( ) posted Thu, 19 May 2022 at 10:34 PM · edited Thu, 19 May 2022 at 10:34 PM

I think I used 3DCheapskate's flame shader for this promo render a few months back.

lZa7Ea8iHqkfeNainRtwWhEpAelFhGyHaNQOmCHS.jpg

W10, Ryzen 5 1600x, 16Gb,RTX2060Super+GTX980, PP11, 11.3.740


3dcheapskate ( ) posted Fri, 20 May 2022 at 4:27 AM · edited Fri, 20 May 2022 at 4:33 AM

Thanks seachnasaigh and ghostship2, the more people who join in the merrier !

Looking at the different rendered flames we've had posted side-by-side is interesting, so left to right: my original idea; bagginsbills first post; bagginsbill's matmatic-generated; bagginsbill's matmatic one again with a mod to allow for  my UV mapping and ellipsoid morph; my triple ellipsoid; ghostship2's promo from a few months ago; seachnasaigh's latest

SiiTd6ZoEqpgjN7C3QJJzaHTwh4Wo5hwRK4IRpxG.jpg


Also I'll repost some of the screenshots of real candle flames for further comparison.

C6EFIjlzCuhsBYgfLrxjmNL6YASBUMNOiWD45zOn.jpg

Of course, how a photo of a candle flame looks depends very much on camera settings. And what you see with your won't necessarily match a photo.

Plenty of room for further experimentation I think. :)


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



3dcheapskate ( ) posted Fri, 20 May 2022 at 4:53 AM
seachnasaigh posted at 7:04 PM Thu, 19 May 2022 - #4438850

I made another candle model (the table candle's flame is down in the melt pocket and so not visible from the side).  It has an unseen (does not cast shadows, not visible in camera) emitter mesh closely fitted inside the flame mesh.  The flame can be given modest ambient so that it doesn't white out, while the emitter has an ambient value of 256.  This is a Firefly IDL render;  note that it casts a reasonable amount of light (there is no point light used).  As @hborre noted, this takes much longer to get a clean render, and Firefly IDL is notorious for the splotchy lighting;  I would instead use a point light (scaled to fit the flame) for a single candle, but the method is great for an array of hundreds of lights where using Poser lights would be prohibitive
...

I've been using a single point light for my candle for no other reason than that it's what I've got used to doing for a candle in Firefly. 

I'm still simply trying to get the flame itself to look right, or at least good enough for my purposes. I hadn't really thought about using it as a light emitter itself, or using any of the other alternatives to a point light. So it's good to see that you're way ahead of me on that one ! ;)


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



3dcheapskate ( ) posted Fri, 20 May 2022 at 4:54 AM

ghostship2 posted at 10:34 PM Thu, 19 May 2022 - #4438854

I think I used 3DCheapskate's flame shader for this promo render a few months back.

...

I'd be a bit surprised if that was my shader. If it is I'd guess that you'd made some changes to it. :)


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



3dcheapskate ( ) posted Sun, 22 May 2022 at 7:39 AM · edited Sun, 22 May 2022 at 7:39 AM

Here's an interesting screenshot of a real candle flame, from the thumbnails of engineerguy's "The chemical history of a candle" videos on Youtube

WrS183QRNh6DnSAEpnS7ftVps7btVyK7ocJnnGhV.jpg

There's a clearer picture at around 1.30 into lecture one

gm2TSE7HwM1rfDnxFbbrWJ1hf0wb6mG8zCaM5uM4.jpg

A couple of interesting visual points in that I think.


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



ghostship2 ( ) posted Sun, 22 May 2022 at 5:06 PM · edited Sun, 22 May 2022 at 5:07 PM

this is what I used. I had saved it to my presets months ago. The two sphere/flames light the scene
8tJz6TitaJpgvOstvGZFRkyGPqiwv1e46JO5sooU.jpg

W10, Ryzen 5 1600x, 16Gb,RTX2060Super+GTX980, PP11, 11.3.740


3dcheapskate ( ) posted Mon, 23 May 2022 at 3:50 AM

Thanks for posting that. It got me thinking...

One thing I've noticed is that I think we're all (except bagginsball) using a ColorRamp with blue at the bottom and yellow/orange/white for the other three.

But the last screenshot I posted of a real flame (engineerguy's green candle), and also the flame of the red candle rightmost of the four real flames posted a bit earlier don't seem to show any blending of the blue colour - at any point the flame is either orange/yellow/white or it's blue.

So what should the fourth colour of the (and I'll use my version of the ColorRamp here) white-yellow-orange-??? be ? Since the area with the fourth colour is mostly transparent you could say that it doesn't matter, but it clearly does - using blue just doesn't look right to me.

How about black ? And while we're at it the orange and yellow look too saturated to me so change those too (orange = 255, 180, 120, yellow = 255, 235, 150 or something like that). Also delete all the lights in the scene.

VghYvDzjHGuBJZuQsInav1YtUHbzm320dWKDiSLY.jpg



The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



3dcheapskate ( ) posted Mon, 23 May 2022 at 3:55 AM

Just tidying up the layout of the nodes and adding the ellipsoid morph I used earlier to the original candle model...

21duxnKmFN9QkzAvEWkfvXROXXIgXJfdbbbeuqGq.jpg


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



3dcheapskate ( ) posted Mon, 23 May 2022 at 4:07 AM

The ellipsoid morph makes a big difference so I've zipped the morph target, Ellipsoid Flame.obj, and attached it to post 42 of the corresponding HiveWire3D topic along with very brief instructions.

Getting back to the blue zone of the flame. I'm now wondering how to add that to what I've got.



The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



3dcheapskate ( ) posted Mon, 23 May 2022 at 7:17 AM · edited Mon, 23 May 2022 at 7:18 AM

Just checking - it works with or without scene lights, and in both Firefly and Superfly.

RxjECeBP0QbHQHqpQj1gXQhGEl2tJ8Kt5ghhQKFO.jpg


It's doesn't look quite the same in Superfly, so some node parameters probably need Superfly tweaks


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



hborre ( ) posted Mon, 23 May 2022 at 7:39 AM

I don't think the PoserSurface works the well with Superfly.  I've seen variability between that node and the actual Cycle-based nodes, in this case, the transparency  settings do not have that many features accessible in Cycles.


hborre ( ) posted Mon, 23 May 2022 at 10:08 PM · edited Mon, 23 May 2022 at 10:08 PM

Okay, I ran your ellipsoid flame shader through Cycle/PrincipledBsdf node combination and this is what I got;


                                 rE45Kvug2PffDYoSnrgHEcxJW9xWegHM9IeB0l1j.png 

 LZPjWGktLtoFu5mj0lnK1lPjxRCMdBumOw0wu2Ar.png

It seems to confirm my suspicions about using the PoserSurface for Superfly rendering.  I'm going to run another render with full-blown Cycles to see what I get.


hborre ( ) posted Mon, 23 May 2022 at 10:27 PM

Straight Cycles with your flame shader.  I added the LightFalloff to simulate the Inverse Square effect and kept the emission strength low so that you can see the flames' gradient.  Otherwise, we will get a bright bloom.  

KFxdjbHmEroqUU1B3gLlg6lQiIEknXdGv6OqZ6NP.png


I turned off all the external lighting for the render.  Note the fireflies.

                                            jFLd7RSETGwSOZ0a4tf0YvLueEBVbSUjlWKquzoS.png



hborre ( ) posted Mon, 23 May 2022 at 10:36 PM · edited Mon, 23 May 2022 at 10:36 PM

This is my best render with the settings as those above.  Flame light emission only using the PrincipledBsdf and an added hack to control the intensity value.  No Inverse Square, unfortunately, but keeping the emission intensity low will compensate for it.  Note, no fireflies.

                                                                       YclTD1o6OowvHq8AIlnavNOg5j0LPptvjy8WTgYm.png


3dcheapskate ( ) posted Tue, 24 May 2022 at 12:07 AM

I know sweet FA about Cycles, BSDF and all that jazz, so I'll take your word on those. :D

I'm focussed on Firefly (as per the topic title - although this is as good a place as any to get a Superfly candle flame shader working too).

I think getting that three Russian-doll-style ellipsoids effect working in Firefly is 95% of what I'm after. It did involve fine tuning of some parameters and I need to annotate the shader network screenshot before I inevitably forget. As I put the shader together I remember first plugging the output of the N node (default settings) directly into the PoserSurface AmbientColor and rendering my flame. Realizing I just needed the vertical component, adjusting accordingly, rerendering. Realizing I needed to add an offset, adding a Math_Functions Add and plugging that into PoserSurface AmbientColor, rendering again, adjusting, etc. The two Math Function Gains and the EdgeBlend Attenuation were trial and error.

Perhaps I should do Firefly/Superfly render comparisons with various node outputs plugged into PoserSurface AmbientColor to see if I can identify a single node that needs a Superfly-specific tweak ? Or maybe I should forget about Superfly and let those who are familiar with it take the reins ?

The big thing I notice from your last three renders is that two of them have an almost horizontal divide between the orange-yellow-white zones, and the other has the nested ellipsoids the wrong way round - joined at the top, white smallest, inside yellow, inside orange largest.



The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



3dcheapskate ( ) posted Tue, 24 May 2022 at 12:25 AM

Regarding adding the blue zone to my last shader I tried a few ideas but my only even vaguely successful result was thisbUIfg1GAemTsJwes92zFlWFO6jsYfv6agnuc1SpU.jpg


The blue was a SimpleColor node because I was planning to combine this with the previous flame shader. However, looking at the pictures of real flames again I thought "the blue is almost a completely separate thing"...

So I just tried duplicating the flame ellipsoid mesh, making it 5% larger, and applying the blue zone shader just to that.

Firefly left, Superfly right, with and without lights. Flame shader same as before.

1mF0iXFd00tPKeF1HPyLxt1TDWBtfukWkXv97O3R.jpg


Once again not so good in Superfly, but I'm delighted by the Firefly results !

I also had a third ellipsoid, 5% smaller than the first, to use as an invisible-in-render light emitter... but you can't do that with props. I mean make part of the prop invisible-in-render, make another part not-cast-shadows. I think the flame needs to be nested props or perhaps a figure to do that ?

Also I think that creating just a candle-flame prop/figure, i.e. without the wick/candle, is a good idea - that way I can use it on all those candles in my runtime. Which was actually the reason this topic reignited after a two year hiatus !


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



3dcheapskate ( ) posted Tue, 24 May 2022 at 12:43 AM · edited Tue, 24 May 2022 at 12:47 AM

3dcheapskate posted at 12:07 AM Tue, 24 May 2022 - #4439021

...

Perhaps I should do Firefly/Superfly render comparisons with various node outputs plugged into PoserSurface AmbientColor to see if I can identify a single node that needs a Superfly-specific tweak ? Or maybe I should forget about Superfly and let those who are familiar with it take the reins ?

...

Well, identifying which node causes the Firefly/Superfly difference was much easier than I thought. Simply setting PoserSurface Transparency and TransparencyEdge to 0 and disconnecting those inputs the Firefly/Superfly renders are nigh on identical. So it's the way Superfly handles transparency that's different.

Below screenshot from render comparison in Poser - one side FF, the other SF


3qhGoTnpxb8aUue6v1F0lRy49g682aqDg54zGvVE.jpg


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



3dcheapskate ( ) posted Tue, 24 May 2022 at 12:56 AM · edited Tue, 24 May 2022 at 12:58 AM

I can't seem to get Superfly to render the flame like Firefly changing just the PoserSurface transparency stuff, but maybe a Supefly-specific EdgeBlend driving it would work ? But I'm not going to go down that path - I'm giving up on getting this flame shader to work in Superfly.

So over to all you Superfly users :)

If anybody has alternative Firefly shaders please do continue posting. What I've got now* is, I think, good enough for me. But maybe not for everybody.


*  I'll package it up and release it as a freebie - no ETA. Sitemail me a reminder if I forget !


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



3dcheapskate ( ) posted Tue, 24 May 2022 at 5:52 AM

I've created a brief (2 seconds) video of an animated candle flame using a modified version of my candle prop.

Have a look at it on Youtube:

Poser Firefly candle flame test - YouTube


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



3dcheapskate ( ) posted Tue, 24 May 2022 at 10:57 AM

And a slightly longer 5 second video - just a pointlite that I manually animated to match the movement of the flame

Another very short Poser Firefly candle flame animation - YouTube




The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



Thalek ( ) posted Wed, 25 May 2022 at 6:30 PM

You shader masters have my awe-filled respect. I'm not competent to use the math nodes or most of the other functions you power-users use so nonchalantly.  When I want to create a shader that replicates the reflective safety stripes on safety vests and such, I just throw up my hands and babble.  And Superfly is utterly beyond me.

Well done, all!


RedPhantom ( ) posted Sat, 28 May 2022 at 8:52 AM · edited Sat, 28 May 2022 at 8:55 AM
Forum Moderator Online Now!

Needed candles for a scene I was working on so I decided to try the one here. There was a little adaption needed for superfly. The only light is from the candle and the light emitter which I did put high.


Available on Amazon for the Kindle E-Reader Monster of the North and The Shimmering Mage

Today I break my own personal record for the number of days for being alive.
Check out my store here or my free stuff here
I use Poser 13 and win 10


randym77 ( ) posted Sun, 29 May 2022 at 11:15 PM
3dcheapskate posted at 10:57 AM Tue, 24 May 2022 - #4439065

And a slightly longer 5 second video - just a pointlite that I manually animated to match the movement of the flame

Another very short Poser Firefly candle flame animation - YouTube


Wow, that looks pretty good!


hborre ( ) posted Mon, 30 May 2022 at 7:32 PM · edited Mon, 30 May 2022 at 7:32 PM

Converted everything in this scene to Superfly shaders and added Blackbody emission shaders to the point lights for each candle.  For the tealight, I used an open-end pipe primitive, shaped to fit around the candle and given a brushed aluminum procedural shader texture.  The faerie is Miki 4.

swOJnwkC7ZUl2JGE5n8FyuIMGJSXZ7VxgKfdsEj7.jpg


3dcheapskate ( ) posted Sat, 04 June 2022 at 11:07 AM · edited Sat, 04 June 2022 at 11:09 AM

Somehow I stopped getting notifications. It's good to see that people are playing with this in Superfly too.

While messing around with an extra, separate EdgeBlend to drive transparency for Superfly I tried using values of PoserSurface transparency higher than 1.0, and since I tried using different values for Transparency and Transparency_Edge I also set Transparency_Falloff non-zero. What surprised me was that when I set both Transparency and Transparency_Edge back to 1.0, Transparency_Falloff still appeared to have a significant effect in Superfly. So I played around a bit more - I ended up with two extra nodes and a Superfly render that more or less matches my Firefly render.

Here's the Superfly version, changes from Firefly version marked in red:

aTfqccYs0gFkxNv2xViuMN7w7KQgpeF6WFblfGuj.jpg


And here's the Firefly one that's in the freebie as a reminder, and for comparison:

tzCDELrsftSPeIBYgJ8ynh93hxh3Bett99QwTkHy.jpg


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.

*also available in ShareCG, DeviantArt, DAZ, and CGBytes flavours.



  • 1
  • 2

Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.