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.

strange occasional white mesh

Started by samdavo, October 05, 2013, 05:57:47 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

samdavo

since shadows seem to have lead me up this path, I'll post one with two spotlights each with 12 degree cutoff angle - pointing to the same spot, something like a dambuster's rangefinder.   

Phil - I'm opting for DT's idea of turning off "lines" in the render options.   Problem with copying everything to a new blank file is that I seem to lose my lights.

Dempsey

Sam,

A few versions back a lot of effort was made to improve the shadows, especially the saw-toothed edges. As these new shadows did not work for everyone you have to set Options ->
"Use new shadows" to used them.
Dempsey

Dr PR

Sam,

Shadows (since V18 or V19) have a problem that they can be very "chunky." Shadows do not display at the same resolution as everything else. The maximum number of "shadow patches" is 2048x2048. This means 1/2048 of the drawing width and height.

With small objects that are always viewed from a distance shadows work nicely. 1/2048 of a 3" wide object is 0.00146" and you can't see anything that small from a distance.

But if you have a large object like a ship that is 6144 inches long the shadows will be drawn in 3" square patches. If the entire thing is viewed from a distance you won't see the 3" chunkies in the shadow pattern. But if you zoom in to view a small part of the whole the 3" square shadow edges are VERY noticeable and VERY ugly!

Here is an example of a large object viewed from a distance. The shadows look OK:

http://www.okieboat.com/Copyright%20images/aft%20deckhouse%2014%20Feb%202011%205%201024%20C.jpg

Here is an example of fuzzy shadows on the same object viewed up close - notice the sawtooth edges on some of the long straight shadows:

http://www.okieboat.com/Copyright%20images/aft%20deckhouse%2013%20Feb%202011%206%201024%20C.jpg

Another example:

http://www.okieboat.com/Copyright%20images/fwd%20smoke%20pipe%201024%20C%203.jpg

Another problem is that narrow objects cast double shadows. You can see this in the image in this post:

http://forum.designcad.com/index.php?topic=1858.msg9537#msg9537

The larger the drawing the more pronounced the effect. Here is an example - notice the shadows of the ropes hanging above the boat:

http://www.okieboat.com/Copyright%20images/motor%20whaleboat%20davits%209%201024%20C.jpg

That image was made from a drawing containing only what you see. Now look at this image:

http://www.okieboat.com/Copyright%20images/MWB%20launching%205%201024%20C.jpg

Notice the double shadows from the ropes and cables when these objects are placed in a much larger drawing?

Really ugly! Well, "New Shadows" do a lot to solve this problem - shadows from narrow objects now show as single but often fuzzy lines. However, they still have the 1/2048 limitation.

Here is a bit more about shadows:

http://forum.designcad.com/index.php?topic=3739.msg20778#msg20778

****

Sam, I'm afraid I lied to you about having never seen the white lines - sorry. I have seen them before (must have had a teen-age moment):

http://forum.designcad.com/index.php?topic=3253.msg17669#msg17669

Phil
DesignCAD user since 1987

samdavo

#18
Phil -
as to the first part(s) of your post - I will check them out further probably on the weekend  (might help me understand what shadow map means for instance);  Personally I don't expect shadows to be perfect, but I have seen "chunky", (probably something to do with mapping ??) - and it looks pretty weird I concede.   Anti-Aliasing helps of course. 

As for you forgetting something - just goes to prove my point that you've forgotten more than the rest of us will ever know.
thanks
sam

PS I'm getting a message that your last-mentioned link is "either closed or off limits to me" lol.

Dr PR

#19
Sam,

Sorry, the last link is to the beta testers forum, and it isn't open to the public.

Here is the picture. I made it with V20.1 beta 7. This was the first time I had seen this "effect."

Immediately repeating the shading elilminated the white lines in this instance.

Phil

PS: Some people have asked that DesignCAD have a shading mode where the lines are displayed. Looks like you are ahead of the programmers on this one.
DesignCAD user since 1987

samdavo

Which is a good question - and brings up the second half of this thread, lol
Having worked out how to get rid of lines when one doesn't want them...

what is the best way to get them when one do.
I'm guessing one would
a) duplicate the solid, explode the second, and reduce it to lines?
b) or would one do it some other way ?
For the purpose of a jpeg screenshot one could just highlight after shading , - couldn't one?

Dr PR

Sam,

There is a way, but it is a pain in the posterior!

If you have 2D lines in your drawing that are at the surface of a 3D solid, these lines will show up when you shade the image. Actually, this is a nuisance. They added the variations on the Wireframe display (renderable objects and non-renderable objects) so you can hide the solids and see the lines, making it easier to eliminate them.

If you make a duplicate copy of solids (prefereably on another layer) and then explode the duplicate solids, explode the planes, and keep exploding until everything is converted to lines, when you shade the image the lines will be visible. You can control the visibility by enabling/disabling the layers with the lines. You can also try changing the colors of the lines to enhance contrast with the solids.

It is far from perfect, but perhaps better than nothing.

Phil
DesignCAD user since 1987

Lar

#22
Quote from: Dr PR on October 09, 2013, 06:13:10 PM
If you make a duplicate copy of solids (prefereably on another layer) and then explode the duplicate solids, explode the planes, and keep exploding until everything is converted to lines, ...
To turn anything to lines you can do it in one step with the 'vector convert' command.

If you explode proper solids (ie, consisting of planes and/or grid surfaces) you won't get any lower than planes because the grid surfaces will explode to planes but for planes you will get a 'command failed' message.

Note: when vector converting you will get multiple lines where more than one entity share an edge, because you will get a line for each edge of each surface.

Lar

samdavo

#23
Firstly, looking at a sphere anyway, you get different vectors depending on whether
1. you simply "select and vc" it - this gives you lines of longitude and latitude
2. or explode (twice, i.e. explode the solid, then explode the grid)  before "vc"-ing - this gives quadrilaterals around the four sides of each and every "facet" of the sphere.
3. and indeed there is a further breakdown of selecting those quadrilaterals, and "breaking" them into component matchsticks.   

Hence ...   the only options that I can find to show the mesh on a spherical surface are
a)  simply select the sphere (after shading) - gives clear lines, all good;
b) or otherwise duplicate it, turn the duplicate into vectors (using "vc" only),  and shade (with graphics accelerator on) - gives very unclear lines because they are blended in the surface
c) as for b) plus select all the vectors, and "selection zoom" them by 1.01 about the centre - gives clear lines because they are proud of the surface.
d) another way to get the lines on the surface is to first explode the sphere into small planes, (again twice), then "vc" them collectively - to give small quadrilaterals ;  then use Dempsey's "pushapart.d3m" macro  to expand them by say 2%, again making them proud of the surface - again clear lines , but interestingly there are two lines at every "edge". 
e) of you can go the extra yards to make the lines into individual matchsticks prior to pushapart. (similar)

edit
f) g) etc - see post after the next - including notes in the dcd on how to achieve it.

 

samdavo

#24
Of course here's the opposite colour scheme (white lines on a coloured sphere  - similar to the original problem - but different) :-

1. draw a red sphere, layer 2, graphics accelerator on, shading mode
2. highlight it (incl a handle) and "Ctrl+C" copy it to clipboard
3. "Ctrl+V" paste it on itself - the duplicate will be highlighted - whilst highlighted change it to a white sphere, layer 1.
4.  explode solid, and whilst still highlighted, run "vc" = vector convert.
5.  viola - you have white lines on a red cylinder.

Note that this is different to the "mystery" white lines for a few reasons -
1.  one is that this one only shows when accelerator is on - the mystery lines only show when it is off. 
2. the white mesh can be selected (layer 1 only filter) - the mystery lines cannot (as far as I know)

Just for fun I select them, and selection zoom them by 1.01, so that they too are slightly proud of the surface. (and clearer)

samdavo

#25
here's another effect -
1. draw white cylinder (layer 1)
2. duplicate it as a dark blue one (layer 7) on itself
3. explode the blue solid to grid, and explode the grid to facets ( but don't use vc)
4. select all the blue facets and pushapart by say 10%

I enclose the jpeg - (blue facets show proud of the white sphere, leaving in effect white lines) - see second jpeg, central option 

-  plus the dcd for all of these effects in the last couple of posts - and notes on how they are achieved.

(finally the effect of swapping blue and white, and getting white facets on a blue sphere.

samdavo

#26
Just taking that the next logical step.
And what would that be ? I hear you ask lol.
well , Chinese lanterns obviously.

PS I am trying to stay within the bounds of DCAD, although I realise there are other complimentary packages out there (2 cents) .