News:

Please note new Forum URL: forum.designcad.com

Main Menu
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.

View distance

Started by Dr PR, April 05, 2014, 10:08:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

#15
prl
yep - good analogy with catching the baseball

- you ask how to explain your hidden-line-removed jpeg (reply #11 refers)?
I again attach that jpeg at vd=2.
This is similar to yours except shaded.
It is about as close as you can get without the diamond being truncated by the "vdt" = the view distance truncator.

ok - clearly you are looking up at the diamond, but down at the gold ring.  i.e. you have a fish-eye effect.

You can also see the fisheye effect in the earlier one "sleepers receding" - which I also reattach - where the lens (at vd=3.5) was exactly on the perimeter of the 7m sphere.

So you have a mixture of fisheye and factor of two - maybe throw in a bit of vertical angle/tilt to further complicate things. 

Mate - Note the lines of longitude and latitude visible there in the second jpeg.   Call it the visible "red cobweb".  Now... it would be possible to identify the percentage and shape of a sphere visible from a point on the surface and looking towards the centre, just by (effectively)  RE-wrapping those elements of the sphere.  Agreed?

Trouble is it is now 11.30pm ( clocks went back last night),  and I will probably wait till tomorrow to do it.   Note that the vertical angle was 15 degrees, and that would also "slew" the axis of view, to explain the asymmetry of the "red cobweb". 

Edit - but looking at the lines of longitude - I reckon there are 16 lines visible of the original 24.   

prl

I guess if they lock me up, I know who's there with me.

Getting back inside that sphere.  I was going to render it wondering what the rendering program would do and repeatedly it simply showed me a black screen.   Then it hit me, put a light inside the sphere and turn it on. Not that that is making any more sense, but the render-er (tough word for me to read and say), is trying to doing something now.  I'll keep you posted if anything useful "shows" up.

prl

Here are some results. I have the view distance set so it penetrates the sphere.  So the camera is inside right?  Then I zoomed out. 

Graphics 1, 2, 3 show this mixed world of having the camera inside the sphere and zooming out.

Who knows what that means physically?

samdavo

#18
Lol - I forget how I did the lights, but I think I had 3 of them (sorry make that 2 - I turned one off).  You can check em if you wish.  And the only reason I had them was that was what I used for the original drawing of those sleepers that I did months ago :)  (seems I jagged it - as we say ;   where to "jag" a fish is to catch it by the hook catching it in the body - particularly if accidental - i.e. it implies luck - but moving on) ...

Anyway, I worked out that 16 of 24 lines of lingerie were visible ( damn spellcheck - that should be longitude)

And then I worked out that was 120 degrees.
Hence the enclosed. 
What you are seeing in the "red cobweb" is the majority of the sphere;   in fact for a cross-section, it is 2/3 of the circumference (obviously,  i.e. 16/24).

PS When you tilt the axis 15 deg, you get an asymmetry.
cheers

PS I should have the poles 90 degrees different - whatever.  - now corrected.

Dr PR

#19
Sorry if I am repeating something here, but the previous posts are so verbose it is tiring to try to wade through the irrelevant stuff to find the point of the discussion.

I set up a simple test of the view point/view distance issue. The "perspective geometry.jpg" image shows the test setup. At one end of a long rectangular tube was a green plane with a red sphere positioned in front of it. The sides of the tube were blue and yellow triangles (for reasons to be explained).

I used the "Set Viewer Points" function to set the "Target Position" at distance 0 at the center of the sphere and the "Viewer Position" at distances along the green line. For each image I reset both points. In the file names "VP N S.jpg" the "N" tells the position along the green line where the "Viewer Position" was placed.

The light source was a "Directional Light" with a "Position" at distance 50 on the green line, and the "Direction Point" at the center of the sphere. ALthough you would expect this to give symmetrical lighting inside the tunnel it didn't - the bottom side was more poorly illuminated than the other sides.

****

The remaining images show the results of changing the "Viewer Position" with the "Target Position" remaining constant.

This illustrates a significant improvement in DesignCAD since I last tried this about 15 years ago. The program used to fail to display any object (line, plane, etc.) if ANY PART of it was behind the viewer. V23.1 does properly display anything that is in front of the viewer, even if the object extends behind the viewer. This is evident by looking at the blue/yellow sides of the tube.

To be continued ...
DesignCAD user since 1987

Dr PR

#20
As the distance between the "Viewer Position" and the "Target Position" decreases the sphere recedes into the distance instead of getting larger! If this makes sense to anyone, please explain it to me.

The sphere radius was 2, so the "VP 2 S.jpg" image "Viewer Position" is right at the surface of the sphere.

The "VP 1 S.jpg" image has the "Viewer Position" inside the sphere. The program actually did an excellent job of clipping the displayed edge of the sphere, but I don't know why it shows a bright round thing in the center.

In all of these images DesignCAD has generated a view plane at the "Viewer Position" and has then projected everything beyond the "Viewer Position" plane onto that view plane. As the "Viewer Position" gets closer to the end of the tube where the sphere is located you see more and more yellow in the tube sides and less blue.

I do not understand why the "VP 50 S.jpg" does not show all of the tube sides since the "Viewer Position" is outside the tube.

Phil
DesignCAD user since 1987

prl

Looks like you'll soon catch up to the nonsense.  In summary. The point of my discussion.  You draw a sphere.  You set a perspective view center at the center of the sphere.  You set a perspective view depth less than the radius of the sphere.  Now you (the camera) are inside the sphere.  Now you zoom out.  What are we physically seeing?  Nonsense?

Dr PR

Ah, but that's not all!

I repeated the test by first setting the "Target Position" at the center of the sphere and then I used the "View Toolbox" to set different "View Distances." I didn't get the same results!

To be continued ...
DesignCAD user since 1987

Dr PR

The "VP N S.jpg" images are the same as above where the "Viewer Position" was changed. In this case the  "camera" is moving closer to the "Target Point" - except that the sphere become smaller and smaller in the view as the camera gets closer. ?WTF

The "VD N S.jpg" images were made by changing the "View Distance." I think changing the "View Distance" leaves the viewer in the same position, but changes the "Target Position" relative to the "Viewer Position." This is more or less equivalent to changing the focal length in a zoom lens. Shorter "View Distances" have the effect of creating a wide angle view, and longer "View Distances" zoom in with a narrower view.
DesignCAD user since 1987

samdavo

#24
Phil,
Just before you throw away the baby with the bathwater lol.
Here's another experiment. (and remember I am concentrating on closeups).
In particular I am discussing a 7m diam sphere with a camera on the inside surface (i.e vd=3.5).  Call it eye-to-eye contact.

If you look at the now-multicoloured sphere, I have made the blue ploughdisc.  A cone from the viewing eye (centre of disc) as against the inspected eye lol formed by 60degrees to the straight line of sight would intersect the sphere at the intersection of red and blue). I think that is called a 120 degree cone (?)  The centre of the inspected sphere/eye is again the origin, and is again the view centre. 

Why did I choose 120deg?  THat was my best guess based on the number of lines of longitude visible in the red cobweb.

The blue disc is rotated 15 degrees up, because the view angle is 15 deg.

Now for the experiment.  What happens when you have a view distance of 3.4?  (refer jpeg).   You see only red right?

What happens when you have a view distance of 3.6? You see blue creeping in around the perimeter yes?

Hence my guess (ON THIS OCCASION lol) was 100% correct.  i.e. in effect (another way of saying it) you see everything in a cone radiating at 60 degrees to the straight line of sight.

(edit - oops - and as for distance, I suspect it has to be more than half the distance between you and the view centre - on this occasion the entire ring qualifies as visible  -whether exactly half or not is still to be double-checked).

PS this is a bit like an optometrist (opthalmalogist whatever) looking at the veins in your retina - he can only see 60 degrees either side of the axis of your eye.  = the red part of the eyeball. 

(Hey maybe some of you blokes already know that - apologies to them - but maybe some don't) cheers

PS if you look carefully at the jpegs, you will see the angle to vertical is 15 degrees,  I have made the angle to horizontal zero (differs prom previous examples) - and the view distance is there as either 3.4, 3.5, or 3.6.

samdavo

#25
Here's the dcd if you want to try it for yourself.
It's called "viewing the retina eye-to-eye with viewpoint centre of eyeball"
cheers

samdavo

#26
Phil
Could I request please that you add the dcd.
That way we can do a few experiments.  (2 cents)
cheers :)

ok - I've done a copy of sorts.  The length of my prism is 50m (and 1mx1m) - I suspect yours is maybe 45m approx? - or 46m?
and the sides have coloured triangles which extend 50m, 37.5m, 25m, and 12.5m.
Origin and view centre are the centre of the sphere (i.e. 0m).
QuoteThe remaining images show the results of changing the "Viewer Position" with the "Target Position" remaining constant

I enclose what happens when the view distance is approx twice those distances.
When VD = 100m ( approx =2 x 50), everything is visible;
When VD = 97m, the white square (at 50m) drops out of view
When VD = 73m (a bit less than 2 x 37.5), the top of green triangle is just visible;
When VD = 48m (a bit less than 2 x 25), the top of red triangle is just visible;
(more to follow)

All of these are consistent with the conclusion that you can see approx half the view distance.   

samdavo

#27
...
When VD = 23m (a bit less than 2 x 12.5), the top of dark blue triangle is just visible;

I add the dcd;
also a jpeg of the prism looking slightly down;
also slightly from the side.

Again, the tip of each triangle starts to disappear when the view distance is less than twice the length of that triangle from the view centre.

PS there is a strange green plane on the left side that is twisted for some reason - but I include it "warts and all".

samdavo

THe same thing in wireframe ( possibly easier to see the triangles I refer to) :-

samdavo

#29
Quote from: Dr PR on April 06, 2014, 01:24:05 PM
1. As the distance between the "Viewer Position" and the "Target Position" decreases the sphere recedes into the distance instead of getting larger! If this makes sense to anyone, please explain it to me.

2. The sphere radius was 2 so the "VP 2 S.jpg" image "Viewer Position" is right at the surface of the sphere.

3. I do not understand why the "VP 50 S.jpg" does not show all of the tube sides since the "Viewer Position" is outside the tube.
Phil
1. I believe that makes sense IF you accept that you are getting "fisheye wraparound" - in the same way that I indicated the red cobweb - complete with peripheral distortion.  wow! - too much distortion to be explained - especially in going from vd = 2.1m to 2.0m; see below.

2. If the view distance is 2, and the centre of the sphere (rad 2) is the view centre,  then I would have said you are ALREADY inside the sphere.   In fact even with view distance of 3, I would say you are effectively inside - i.e. BECAUSE of the factor of 2 mentioned above and below.   Yet I concede it doesn't look like the sphere is broken (??)  yet.  Sorry, Phil, but I would need to see the dcd.   Further notes below (**)
 
3.  That I believe I can explain - that the displayed depth of view is (edit - USUALLY) approx half the length of the view distance.   To see the full length of the tube, I believe you need a vd of at least 2 x Tube length = 92m approx in your case (imo).   All as per the jpegs just posted.


O Boy ! - all bets off lol.
Note **  For my square prism, the sphere is radius 1.5,   and its centre is the origin AND the view centre.

I enclose the effect of
vd = 3  (i.e. twice the radius) - you can see the full sphere.

vd = 2.1 ( less than twice the radius) - you can still see the full sphere, but (you're right!) severely shrunken

vd = 2.0  (1.3 times the radius) - wow! there is a massive explosion in the size of the sphere !
I see what you mean, lol!   

finally
vd = 1.5 (1.0 times the radius, i.e. eye -to-eye as per my previous posts),  the same distorted red cobweb evident.  - including 120 degrees of vision top to bottom or side to side.

(PS I made the blue wall pass through the centre of the sphere btw)
Most of this makes sense to me, with the exception of the crazy effect around VD = 2.1 compared to VD = 2.0.