DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Is real TRANSPARENCY possible

Started by samdavo, May 12, 2013, 02:57:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

I guess I could post this on HELP WANTED.
But FWIW, I prefer to give it my best shot, and then consider such a request, including a DCD file including an example of what I want to achieve.

So that's what I've done here.
Basically I enclose a file with a hyperbolic parabola (ok "saddle") drawn
1. with Surface Patch (blue) - the most accurate, (easily proven by drawing parabolas and looking in Front View; ;  and
2. with Surface Connect (red) - which  INCIDENTALLY is approximate only, and shows up as a "petticoat hemline" behind the blue surface, when seen in Front View

TRANSPARENCY
I am hoping that someone can tell me if it's possible to make the blue "saddle" transparent, so that the entire red saddle is visible through it in Front Elevation etc.

(To be honest I'm ready for disappointment on this one :) - other than to "vector convert" it - i.e colour surface becomes coloured lines only - and with a large mesh size , you can see through - albeit not strictly a "translucent effect" that I was hoping for)

PS The dcd has all the "elemental" bits necessary to draw those saddles from first principle if you wish - all as per earlier threads about "Surface Connect vs Surface Patch" - BUT as I say, I am more wanting to find out if "transparency" is an option.

prl

#1
Sam,

Did you create a material based on the default "Glass"?  You can edit the transparency, the color and numerous other settings.  By the way, I take it you work with a black ground because it is "spacey"?

prl

#2
Your creations are interesting to render.

minstrel

#3
...hey, wait a minute.  I don't do final renders in DCAD >:(

Well, maybe on 'special' occasions I can bend the rules a bit.

Sam, you can also 'push' the transparency levels by applying the 'Enable fogging' found within the Shading Options.  The example is really on the black [spacey] background with a white fogging.   

To all you Mother's out there, have a great day!...I'm off to now do the dishes 8)

Minstrel

samdavo

#4
Thanks so much gents -
Now to ask you (sometime - no hurry) to tell me how you did it ( in more detail)

a) prl So far I've defined New Material (Glass 1) - as per your parameters -  but no joy yet pasting that on the blue saddle - I suspect perseverance might get me there (but manyana ( being midnight Sunday night here, and work tomorrow) 

b) those other renders ?  Real intresting !! both Minstrel and prl.
thanks again. 
-
PS prl, your question about why I use black background, I find it clearer,  and in the old days I used to use yellow (255,255,0) as one of my colours - which was hopeless on white background - but now have changed that to brown, so I could maybe make white work I guess.   But old habits die hard , cheers.

PPS I'm off to the sack ... Speaking of Longfellow, (what a man !!!)
"Something attempted, something done, has earned a night's repose"
:))

I also like those lines:-

In the world's broad field of battle
   In the bivouac of Life,
Be not like dumb, driven cattle !
    Be a hero in the strife !
...
Lives of great men all remind us
    We can make our lives sublime,
And, departing, leave behind us
    Footprints on the sands of time ;

Footprints, that perhaps another,
    Sailing o'er life's solemn main,
A forlorn and shipwrecked brother,
    Seeing, shall take heart again.

Let us, then, be up and doing,
    With a heart for any fate ;
Still achieving, still pursuing,
   Learn to labor and to wait." :)

prl

#5
Quote from: samdavo on May 12, 2013, 06:51:23 AM
a) prl So far I've defined New Material (Glass 1) - as per your parameters -  but no joy yet pasting that on the blue saddle - I suspect perseverance might get me there (but manyana ( being midnight Sunday night here, and work tomorrow) 

Select the blue saddle grid, open the infobox and change the materials to "Glass_1".

Quote from: samdavo on May 12, 2013, 06:51:23 AM
PS prl, your question about why I use black background, I find it clearer,  and in the old days I used to use yellow (255,255,0)

An old (school) guy.  Lots of those around these parts.

ps    - finally looked up what m8 means.  I thought it was some sort of down under spy agency.   8)

prl

#6
Here's your creation rendered in SU.  Usually Minstrel sucks me in on these rendering things.  :)

minstrel

#7
Prl pretty well spells is out...

...all I can add, Sam, is to make sure you 'enable transparency' in your 'Shading Options'.  No 'checky' - no transparency. 

And don't be afraid to play with the 'light source'...add a few to increase the effect.  Just be sure to bump up 'Intensity/Ambient to 100 for each light as you go - otherwise you will see nothing change.  This is especially useful when 'fogging' is introduced.

Quote from: prl on May 12, 2013, 08:34:59 AM
Usually Minstrel sucks me in on these rendering things.  :)

Yea, I'm just given ya a break for the moment...enjoy the vacation!

Minstrel

Dr PR

Sam,

DesignCAD has a schizophrenic division of lighting effects between the lighting dialog and an object's material properties. It allows you to set the light source properties to control how shiny or dull an object's surface is! That is about as screwy as it can get. It is as if polished metal would look shiny under one light and dull under another. Or sandpaper would look like chrome if you had the right light. Totally screwball! So, the light source settings can defeat material properties. If your light source settings are not correct you can never get the material properties to work.

I always set the "Options/Options/Light Source" "Intensity" settings for "Ambient," "Diffuse" and "Specular" to 100%. This essentially defeats the light source effect upon material properties and allows an object's material property determine whether it is shiny or dull (the way the real world works).

****

You MUST select the "Enable color material" option in the "Shading Options" dialog if you want material properties to work.

You MUST select "Enable transparency" if you want objects to render transparent.

****

A word of CAUTION - just one transparent object can cause rendering times to go from seconds to hours in a large drawing. Hours, and I do not exaggerate! I changed a lens in a camera to transparent - one single transparent object - in a 45 Mbyte drawing, and the Gouraud render time went from about 40 seconds to all day, and it still hadn't finished rendering when I gave up and shut down the computer.

The program has to calculate whether every object in a drawing can be seen through the transparent object. Then it has to blend the colors of the background object and the transparent object, and then add shadows to it all. This is extremely time consuming.

Phil
DesignCAD user since 1987

samdavo

#9
Quote from: minstrel on May 12, 2013, 09:31:04 AM
...all I can add, Sam, is to make sure you 'enable transparency' in your 'Shading Options'.  No 'checky' - no transparency. 
Minstrel
thanks again both/all
yep - checky >> transparent - thanks

Phil, I'll use it for a quickjpeg snip, then back out of it again.
I hear your warning.

samdavo

#10
ok, here's another example of where transparent might be a "plus".

I enclose the original drawing (which was prepared in another thread if you're interested, here's the link ...)
http://forum.designcad.com/index.php?topic=5021.45

(incidentally, I have done some more work to that orig dcd to use "Solid Add" around the centre to tidy up the "lines of intersection" as seen in wire frame)
(edit - as against the "solids of intersection" formed with Solid Intersect"

also the "transparent torus" version

and finally the pushapart version, with the spokes pushed out so they are half-through (i.e. almost centred) on the holes in the torus.
(2 cents)

PS the pushapart version shows some of the small elements that are added in the course of "joining up the shapes" -
(edit - wrong! - lol, I separated them and found they were just a spare white "surface of intersection" at the interfaces - I'll add the dcd in a new post below 

IMO , you have to take your hat off to the programmers !
And I for one reckon this is a damned site better than 2D anything ... including Sudoku, or crosswords etc :)

samdavo

Here's that same view ...

also with Phong rendering,
but without Enable Transparency checked.
(2 cents) -
(just posted so you can see the difference with the transparent version) 

samdavo

#12
PS I enclose a dcd called "Peace sign - 10 steps to final".dcd

I challenge anyone to change JUST step 9 to the final step 10 ...  (see next post for more details)...
(see the final jpeg called "just to trim the centre intersections"
(edit - actually that is dead simple lol,  just Solid Add a couple of times - but what I should have said was ... and separate the solids once joined, so that they can be pushed-apart...   In fact what I should have challenged you to do was to get from step 6 direct to step 9 (obviously skipping 7 and 8) , i.e. trimming around the outside :)

WITHOUT ...
using the macros , 0.d3m to 9.d3m and a.d3m, that I recently posted (discussed ad nauseum on other threads, but I'll post the latest version next post)...

and to do it in less than 5 minutes.
(edit - if you try going from step 6 (direct) to step 9, I would need a damned site more than that, HOWEVER I do it lol.   The following discussion which ends in Q1 refers)

PS ok, maybe I should reword that as a more humble admission that I'm walking half-blind through new territory ... - when eg

an rC2 =  red Cylinder layer 2
cuts through
a wT1 = white Torus layer 1

{and the same thing goes for a
gC4 = green Cylinder layer 4, or a
bC5 = (light) blue Cylinder layer 5, or a
pC6 = purple Cylinder layer 6.... but back to the point ...  }

and
1. you either
a) subtract, or maybe
b) segregate
... sure you get red parts of said cylinder

BUT there are 2 parts  (top bit and bottom bit)
and yet they are a common solid.
So I believe I am right when I say that

2. you have to explode said solid.
3. THEN you have to select the top half (a multitude of small planes)
4. THEN "Solid Define" the top bit
5. and ditto the bottom bit.

Question Q1 - is there a better way to separate a "solid-that-is-made-of-two-halves" into top and bottom solids,
than to do steps 2 to 5? 

ON A SIMILAR MATTER/Problem ...
I enclose a file called "unhappily grouped" (i.e. as a V-shaped blue and purple solid in 2 layers)  - where I forgot to separate the blue cylinder from the magenta cylinder before I did the "pushpart".   The reason they are a common multi-layer-and-colour-solid is that that's what happens when you "SOLID ADD" these two original cylinders.

AGAIN, I found it quite a long process JUST to separate this multicolour solid into two solids, one in layer 5, the other in layer 6.

Question Q2, ( very similar to Q1) is there a better way?
(edit - by way of explanation, this is a simpler example, and more appropriate for readers who could give a shinbone about tidying up the outside bits of some looneytunes peace symbol  :)  - but this second example doesn't take very long in truth - again probably irrespective of how you do it

samdavo

Further to previous, 
and this is the sort of shortcut that can be skipped !!!  - because you can't see any difference except in wireframe !!!

But I enclose those same steps 9 and 10 - which I challenged above for you the reader to attempt...

I also enclose those macros 0 to 9.d3m, and a.d3m
I guarantee you that you will find them helpful -
especially after you have had to explode a "two-winged solid" into two sets of small planes -

and then you have to collect each of these into a solid in its own right ( with solid define)...

samdavo

Further to some red corrections above, I'm calling this one "12 steps plus (120%) pushapart".  Actually the 12th step is a pull-back, just to see what those loose elements were. Sure enough, they weren't boundary condition bits - just spare curved surfaces of intersection left over from the way I did it.

I don't bother showing the previously christened steps 7 and 8 which involved Solid Subtract and Intersect resp (2 cents)
- PS sorry, I'm trying to get back to the rendering issue, lol - just thought I'll clear these errors up   

But I've found a trick that some might find interesting (2 cents) - next post