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.

Light Sources in Paperspace

Started by samdavo, October 26, 2013, 04:46:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

Sorry this is a general edit of first stab at this ...

On another thread I mentioned that Hidden Line Dashed is automatic in 3D - provided you were in Modelspace.
In summary, in an attempt to demonstrate with an example, I find another problem with light sources in Paperspace.
The Paperspace Viewframe called "SIDE (Rotated)" seems to 

lose the wall surface altogether with H=0, V=0 (?? - see jpeg 3b)
show the wall as brown ( correctly) with H=45, V=0
yet shows the wall black with H=90, V=0  (which is pretty obvious I guess)

In detail :- Firstly the previous post (from another thread)

Quote from: samdavo on October 26, 2013, 01:39:37 PM
... In 3D, you can have automatic "hidden line dashed" (provided you have graphics accelerator on).  At least in Model Space you can.   But when you go to Paper Space you have to accept either "hidden line removed" or "wirferame (all wires visible)" or "shaded".
QuoteHint to DT (implied) - gee it would be great if we could have HLD in Paperspace :)  It would be a quantum leap in the usefulness of DCAD Paperspace.    At the moment you can arguably achieve something similar by adding paperspace viewframes in BOTH wireframe side-by-side with shaded HLRemoved.

I post jpegs and a dcad which illustrate
a) HLD (hidden line XX  dashed) in Modelspace
b) the 3 options in Paperspace of shaded, HLRemoved, or Wireframe  ( i.e. not including HLDashed)

But then I had a problem trying to get the lighting on the Side Elevation. (which happens to be rotated 90 degrees - see jpeg).
I clicked the InfoBox for that view, then "Layers and Lighting",
and tried both H=0, V=0, 
and also  H=90 and V=0
(both with "Move with eye" ticked;  also "shadows on" ticked, but that doesn't seem to affect anything.)

Actually H=45 and V=0 seems to work.
But my main problem is that H=0, and V=0 (move with eye) doesn't show the wall at all (?)

   

samdavo

#1
... herewith H=90 and V= 0 (move with eye) which has the wall and roof in full shade (see 3a)
... also H=45, V=0 (move with eye) which is ok. (see 3c).

samdavo

#2
Ahh
I think I've discovered the problem.  (edit - PART of the problem lol - still can't explain V=0 H=0 in first post, jpeg 3b).

Either DCAD doesn't like a view being rotated 90degrees, (see the Side View);   or else it behaves differently when you rotate a view.

I enclose jpeg 3e ( with H=0,  V=90) - which has the roof and wall black.  Now I can understand the wall being black, but with the light directly overhead, I would have thought the roof would be lit up / coloured. (edit - not if V=90 means light is above the ViewFrame, as against above the houseroof)

So I tried rotating the Side Elevation back, and it changes completely, roof lit up (see jpeg 3f).

TO demonstrate, I also include the effect of rotating the Side view by 0deg, 20, 40, 60, 80 and 90 deg, (also with H=0, V=90)

cheers
   

samdavo

#3
Or this set with H=45 and V=45  ( remembering that the slope of the roof is 45 degrees). 
(the plan plane of the roof is parallel to the light rays in the fully rotated version , lower right). (because H=45, light from right side 45 degrees)

It appears that these angles ( H and V) refer to the borders of the viewframe rather than the object (at least with "move with eye" ticked) - which is all fair enough I guess.     

samdavo

#4
PS The reason I am using "complex" lighting in plan at least , i.e. something other than "H=o,V=0,move with eye",  is that otherwise the plan is just a large green square without any indication of the sloping sides.

And to illustrate, I change each of those view frames to H=0,V=0,MWE,  - the roof is a large green square -  (although the isometric still has a hint of shadow, even though shadow is unticked) -

and also, (back to the orig problem) the walls of BOTH elevations disappear (?) - same as for the first post. 

(PS the reason there is a hint of shadow in the isometric could be that I rotated it slightly about the vertical axis to see the chimney better - i.e. true isometric would not have seen the back sloping part of the roof)). - 2 cents.

DrollTroll

Try dropping the specular value of the light --  if you've got too much specular, under some circumstances and at certain view angles the surface acts rather like a mirror and bounces ALL the light back to you.
When you've got "Move with eye" turned OFF, the "H" angle is how much the light is rotated in a horizontal plane from the Z axis coming out toward the viewer. The "V" angle is how much the light is rotated up from the horizontal plane. The center of rotation is the camera's target point.
If "Move with eye" is ON, the angles are fixed to your changing viewpoint, rather than the unchanging XYZ axes.
25 years with DesignCAD

samdavo

#6
Yep - thanks DT
I enclose the results of turning specular off - and the invisible wall problem is fixed (thanks).
All of those views have "H=0,V=0,MWE" (= miner's helmet light in effect;  or headlights if you prefer).

Moving on, Clearly a better option for the pitched roof seen from above is some angle that gives a different colour /shade on each face.
- which could be done by
a) putting the light at H=60, V=60 or some such, (edit ... or maybe H=30, V=45, as per the post below - depends on the pitch of the roof I guess)
a) simply manually changing the colour of each face of the roof maybe

cheers

samdavo

#7
Here's a two-sloped and two-toned roof ( RGB = 255-000-000 and 255-050-000 ; Ruby and Ruby_1 respectively);
As seen in both
Paperspace, and
Modelspace
both/all views with directional light from H=30,V=45, but move with eye turned off;
... both with Specular on incidentally (since on this occasion I have no problem with disappearing walls)

and also illustrating the benefit of automatic HLDashed in modelspace (gotta feeling I've done this before lol).  Would be much better if we could get this in paperspace as well.
DT, appreciate your advice on the chances of this getting a guernsey one day -  in V24 maybe :)

Another few comments -
1. That light is set with "shadows" ticked - in the six views in paperspace, the shadows in both front and side are not very accurate (to my eye anyway) -  no shadow in front view under the eves;  and a tapering shadow in side view when I would have thought the line of the shadow would have been horizontal. (2 cents)  DOH - much more accurate shadows in all views if you turn accelerator off !! (sheesh how many times am I gonna forget that one) - see post below).

2. In the third jpeg, (paperspace), the entire roof is the same material ( ruby) and colour - and you can see that , with specular on, you get a reflection on part of the roof which helps visualise the shape.  But this "intentional specular effect" doesn't work as well in paperspace.

3. Also I take it you can't get "dark shadow" in Paperspace, other than a full face.  No biggie, just that , if it's possible, then I'd be interested.   "Input, Input" as Number 5 would say :) 
cheers

PS Although the sun is shown close to the house, all light is directional and parallel (not Spotlight or Point).

samdavo

#8
And here's another thing.  (pretty trivial but you never know when it might come in handy) ...
With modelspace you can do a screensnap with both night and day;  (but I had to use Alt+PrtSc and paste it into Paint before using the snipping tool;  i.e. it is in the process of making all views "nite", and only needs a regen to complete that process - but changing to black background has only taken hold in one view so far)
However ( think I'm right) paperspace has a big advantage in that you can turn off layers in some view-frames but not in others. - and I don't think you can do that in modelspace (?)

PS Whilst I'm at it, I also add the shadows achieved in Modelspace when accelerator is turned off - much better obviously.  (and as I say - not achievable in paperspace AFAIK). Also one with a part steel roof.  Even the shadow of the sun is visible :)  Not sure how that happens in reality but ...