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.

Shading for slow (or patient?) learners

Started by samdavo, June 29, 2013, 12:42:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

I'll post this as an attempt to set up a hemispherical wall light.
There are 2 lights there (#3 and #6).
#3 is a spotlight with shadows on
#6 is a point light with shadows off (mainly to make the light itself visible, incl yellow to simulate light source)
cheers

PS I started to add a light on the second wall, but not successful yet.
Also I added "solid" balls rather than wireframe, coloured 255,255,255 (as white as you can get) - but with shading they are pretty grey rather than white  ( and no way are they white enough to simulate a bulb turned on - or one of those mantles I mentioned above)

I also turn on transparency , jut for interest.
PS THe dcd file is not the same as the one I used for the jpegs.  but the same principles at stake.

samdavo

Multiple lights
4 lights,  #3 and 6 as above ( for the wall light) and
the Standard DesignCAD lamp, with two spotlights, #7 and #8, one pointing up, another down.

Also a hint of blue on the single blue wall light.  Barely worth posting, but done now. cheers

samdavo

#17
Well I can finally get white bulbs to "glow" white,  even in a red/pink background light - PROVIDED I am looking "straight" down the axis of a close-up Point doh Spotlight lightsource in front of the bulb.   
The light on the left wall is yellow/gold , the one on the right is red, and the bulbs are white.
In front of each pseudo-bulb, there is a real light-source.
But from the side, the bulbs are only half white, and the "con" is exposed. 

DrollTroll

D'ja try upping the emission value on the bulb's material?
25 years with DesignCAD

samdavo

#19
Quote from: DrollTroll on July 08, 2013, 01:30:11 PM
D'ja try upping the emission value on the bulb's material?
well, lol - THAT took all of 3 seconds lol.
THanks DT.
See if you can guess which light I left as material "White", and
which two I set as new material "White-1" with 100% emission. :)

samdavo

#20
Next one .. called RGB mix ( but with another problem that I find happens pretty often).
easy enough - three lamps, R G B resp ( 255,0,0),  (0,255,0), and (0,0,255).
all pointing down, with 40 degree of Spot Cutoff Angle ( real handy that option !!)

Sure enough where they meet it is white. 
Not sure about EVERY blend there , but I notice yellow and cyan and hint of magenta there so we're on the right track.
(Obviously done in a hurry - and could be drastically improved on)

But back to that recurring problem.
When I set the position of the SPOTLIGHT lamp, I use the target (browse and target?) icon right hand side of the x,y,z coordinates.
Likewise the Direction Point - directly below, indeed at the other end of a small vertical construction line I've added.

But (as I find often happens), the cords for this latter can often be gobblegook , i.e. x coord = 1.#QNB  etc ??
I was able to allocate another point on this occasion, and it started to behave.  But it can be real stubborn at times. 
Any explanation or clues what's happening ?

samdavo

#21
sorry here's a better one -
But I still had that problem of 1.#QNB. (instead of a sensible number).
It's as if it (randomly) doesn't  want to place the direction of the spotlight vertically below the source (??).
anyway these are slightly off vertical.

samdavo

#22
Here's some results of messing about with torches.
You can have two Spotlight sources in one place, each with a different Spot Cutoff Angle, and arguably this gives a better torch effect - eg for that walkthrough (of) the barn. - i.e. more intense in the middle.

Then you can combine RGB again, and get a few more colour blends (or "color" for the bad spellers :)  ) ,

Then you can project the same lights as above on an RGB flag (Azerbaijan?)
Probably you can play around with the reflectivity and etc of the variously coloured floorboards ...  But basically, red boards only reflect red (and ignore G and B).  Moral of the story - if you're gonna cut yourself shaving, do it over a green board, and the blood won't show :)

posted - FWIW.  As I say, just playing around here.
cheers
sam

samdavo

#23
herewith the dcd. incl flag screen. (I notice it slopes - no biggie, and not worth correcting).
PS I've had to make direction of all six spotlights (large diam and small diam) slightly off vertical to avoid the 1/#QN problem. - no biggie I guess. Could be just my computer, given other recent trials :)

Also
RGB mix 4. white screen, Top View, 6 spotlights.

Lar,
Here's another challenge...
Not only can you do a walkthrough using a torch...
But you can do it with multiple colours and torches - and give the clients 3D glasses  to view it with (compare IMAX)  :))

samdavo

#24
ok - Here's a mixture of texture mapping and "objects".
I have added eyes to the robotic martian in the standard library,  new material White_1 = emissivity 100% to make his eyes glow,  and placed him on a plane with texture mapping. ( 2 cents).

samdavo

#25
Just posting that antipodean pairing yet again.
Two planets where there is one - experiencing a dual solar eclipse. (white circular spotlight on yellow plane in background)

This post is more about texture mapping, namely a box-mapped spherical earth can only be mapped with a map applicable to western or eastern hemisphere. (edit AFAIK)

By comparison, the cylindrical Earth with "Cylinder Wrap mapping"  can be subjected to a "doe-cee-doe"  without losing the logic of a world map - moving bumplessly from western to eastern hemispheres and back.
See next post. 


samdavo

#26
Note that there is a seam there down the middle of the Tasman Sea between Aus and our Kiwi cousins - "across the ditch" as we say -  yet it is bumpless. 

I enclose screensnip with 90 degree rotations of the cylinder with cylinder wrap.

BTW that map of antipodean pairing can be found here.
http://en.wikipedia.org/wiki/Antipodes

PS I guess everyone has heard that American and Western Samoa are now on opposite sides of the Date Line - with a flight time of 10 minutes between them lol.  So you can celebrate your birthday for a full 48 hours!! - or miss your wedding anniversary completely (flying the other way).  :)  Brilliant concept.

samdavo

#27
Think it's sometimes easier to use a coloured material (screen) than to use a coloured light.
Here's the martian and cracked earth (above) in a white light with a few more colours, and better crispness. 

samdavo

#28
Quote from: samdavo on July 11, 2013, 05:14:36 AM
This post is more about texture mapping, namely a box-mapped spherical earth can only be mapped with a map applicable to western or eastern hemisphere. (edit AFAIK)
...
well - a few hours older and a spherically mapped earth wiser :)
I find that the same map can we wrapped around the earth and "fits like a glove".

I throw in the eclipse as well, but you need directional light "over your shoulder" i.e. "move with eye", H=0 V=0, without interruptions from yellow backgrounds for this one.   
PS Clearly that eclipse would make a lot more sense if it showed a map of the moon.

The seam is again "perfect" - and everything is just as it seems, grasshopper. :)

PS Elsewhere there is discussion about screendumps eg showing rubberband dimension lines.  The first jpeg is another example where I personally have to use Ctrl+Screendump first, then post to Paint and SnippingTool the bit I want there  - because of windows that interrupt. (not forgetting that graphics accelerator is off).

Note that the clarity of the text on that map is pretty good - MUCH better than if I had graphics accelerator on incidentally.

Final observation - Lar - you'll note that Hamilton Bermuda is pretty close to the Antipodean pair of Perth.  Just near the text saying 20degS is an island called Hamilton Island Qld.  For a while there I thought the map was inaccurate , placing Hamilton Is in the Great Australian Bight :) (2 cents)

samdavo

#29
I post north pole here, plus a riddle on "trivia" thread.

PS this DCAD globe is real handy for planning Great Circle holiday airline routes :)