DesignCAD Theory of Parallel Visibility

Started by prl, April 14, 2014, 06:44:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prl

Quote from: Dean on April 14, 2014, 03:13:47 PM
It appears that the parallel"eyes" cut off point is at 0.5 in the "z".  @0.6 The cubes are visible

Dean, I don't know what you mean with that.

DrollTroll

Quoteedit: Just for information, programmatically I don't have a way of finding out in a view where the view center is.  So unless I set it, I can't tell where it is located.

Thanks for pointing this out. I think I can fix that for V24 without too much trouble -- looking at Sys(214-216) for x, y and z "camera target" point values.
25 years with DesignCAD

Dean

Quote from: prl on April 14, 2014, 03:21:44 PM
Quote from: Dean on April 14, 2014, 03:13:47 PM
It appears that the parallel"eyes" cut off point is at 0.5 in the "z".  @0.6 The cubes are visible

Dean, I don't know what you mean with that.

prl,
Please watch the video https://www.youtube.com/watch?v=_g512RoiSN0

in full screen, if you can.
i'll test this "0.6"  value with other drawings. I don't know how Dcad is doing the math and I'm not sure if this value 0.6 only works with my file or is a universal fix.
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

Dean

#18
I moved the blue cube to Z@ 2251. That's 1000 units more in the Z axis. The camera's Z coordinate @.06  didn't work but I found the camera's cut off point @ Z 500. The camera's Z coordinate @ 501 the cubes are visible .

If you test by adjusting the camera's "Z" coordinate in the "user defined views" properties make sure you refresh the screen by switching between different views because sometimes the view doesn't update after making the changes.
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

prl

Quote from: Dean on April 14, 2014, 06:28:23 PM
I moved the blue cube to Z@ 2251. That's 1000 units more in the Z axis. The camera's Z coordinate @.06  didn't work but I found the camera's cut off point @ Z 500. The camera's Z coordinate @ 501 the cubes are visible .

Dean, thanks for the video.  I get what you are doing now.  Also this latest cube at 2251 is interesting.  You've enlarged the effective visible view range to 1750 (cube position - view center).   Not that I know this for sure, but the equation that yields what you've just demonstrated would be:

Visible View Range = 10000/sys(32)+z

With that equation, if you put the view center at z = 1000, the visible view range is 1250+1000 = 2250.  Which means you could put the cube at z = 1000+2250 = 3250.

I'll play around with this tomorrow and see if that relationship stands up. 

Thanks for the good sleuthing.

prl

#20
Quote from: prl on April 14, 2014, 07:02:25 PM
Visible View Range = 10000/sys(32)+z

With that equation, if you put the view center at z = 1000, the visible view range is 1250+1000 = 2250.  Which means you could put the cube at z = 1000+2250 = 3250.

Dean, I checked my assumed equation above.  Seems to hold true so far.  Still thinking on all of this.  File attached below.  I created named views z@1000 and z@1001. 

If anyone else is tagging along, Dean is using named views and with the DC user defined views editor is relocating the view center using that.  I'm inexperienced using that method.  A reminder as Dean reminded me above (thanks), after you edit a view and change something, you need to go to the view menu and reselect the view in order for it to update the present active window.


Edit:  I removed the attachment, since I baked in some problems in the file I uploaded.  See the Rev6 file a few posts down.

prl

Quote from: prl on April 15, 2014, 04:17:45 AM
Quote from: prl on April 14, 2014, 07:02:25 PM
Visible View Range = 10000/sys(32)+z

With that equation, if you put the view center at z = 1000, the visible view range is 1250+1000 = 2250.  Which means you could put the cube at z = 1000+2250 = 3250.

And wondering if this holds true if the cube is in front of the vc,  one should be able to put the cube at z = 1000 - 2250 = -1250.  And I did this and yes that works.  At  z=-1251 it disappears (remember the view center is at 1000).

This is like trying to understand a wormhole.

Dean

Try this (rev4) file, it works for me. the cut off point is a 1000 at 1001 the blue cube is visible.
I tried your file and the blue cube wasn't visible. Is there something else you did. I do see that axis icon you drew.
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

prl

Quote from: Dean on April 15, 2014, 07:24:57 AM
I tried your file and the blue cube wasn't visible. Is there something else you did. I do see that axis icon you drew.

Using the rev5 drawing, in the view dialog pull down,  the named view "z@1001" will show the cube, the named view "z@1000" will hide the cube.  Is this not the case for you?

Dean

In rev5, your group icon is Z @-3252, I had to set the camera's Z @ 1002 for the blue cube to be visible
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

prl

Quote from: Dean on April 15, 2014, 07:55:28 AM
In rev5, your group icon is Z @-3252, I had to set the camera's Z @ 1002 for the blue cube to be visible

?  Apparently the nested grouping stuff coming back to haunt me.  Can you snap a picture of the infobox for the group?  It isn't like that on my machine.

Dean

#26
This video  https://www.youtube.com/watch?v=xEgHsh1LhuI
is showing what I did when I first open your rev5 file (watch it full screen)
Now, I notice the group icon is at 0 when opening the file but the first thing I did after noticing the blue cube wasn't visible was select the group and move it to 0,0,0 and it was showing a z coordinate of -3251. ??? I then did an undo.
I then changed the camera's z coordinate to 1002 and it worked. What did you do?
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

Lar

#27
Prl, you are missing the big picture here, IMHO.

You are focusing on the fact that the objects disappears behind the 'camera cutting plane' but do you realize that if you place the object so that it crosses the cutting plane and view from behind the cutting plane (preferably a flat view, like front, side or top) then the result would be a non destructive slice.

I recently mentioned the location of the cutting plane in the epic topic "DesignCAD 3D Max23. Paper-Space Crash and File Corruption.", started by DaveTK.  (http://forum.designcad.com/index.php?topic=5500.0)
Quote from: Lar on April 07, 2014, 09:24:07 AM
First issue, which is technically not a bug because it's by programmers' design, is that dcad has a very small camera cutting box (a 104'-2" cube centered on the camera focal point). Any part of anything out of this box becomes invisible. This was an attempt to achieve non-destructive slices, I think, but it has become a humbug, the evidence being the amount of users seeking help when parts of their model disappear.
Note that 104'-2" = 1250" (I usually work in inch base units).

I guess I can speak of this now: I discovered the location of the cutting plane back in April last year (2013) and used it for non-destructive slices in paper space back then.

I emailed DT with suggestions about being able to manipulate the cutting plane, hoping it would be implemented in v23 but it didn't find its way in. I didn't post it on the forum back then since it involved paper space and multi-layered blocks, two topics that generates much confusion. That scored out sentence is not the real story... let's just say I decided not to post this on the forum back then.

FYI: The non-destructive slices would have opened edges. You can use the 'contour line' or 'cross section' commands to get outlines of the solids at the cutting plane, convert them to planes and place them just before the cutting plane (so they are visible) to get closed sliced edges. I sometimes add hatches to the planes to designate the material of the sliced objects.

See attached image below for my non-destructive slice method for paper space view frames. I made a block of the 3d kitchen and placed rotated duplicates along the cutting plane. Each one showing the flat interior elevations of the kitchen from different viewing angles. Remember, to show between stuff in dcad you normally end up with extremely distorted perspective views.

Lar

prl

#28
Quote from: Lar on April 15, 2014, 09:42:03 AM
Prl, you are missing the big picture here, IMHO.

No, I know what it is doing and certainly can see the exploitation of a viewing bug that in essence replicates a front and rear clipping plane.  But as the fancy title is suggesting, I'm trying to identify the parameters for this viewing bug.  If one can identify the equations that define it, you can exploit it with code.

This is an accelerated viewing bug since it doesn't exist if you uncheck the acceleration modes.   Your statement about viewing cubes and by programmer's design and attempts at clipping planes and not being a bug doesn't make sense to me.

I'll gladly explore this with you in this thread or new one if you wish.  I do find it interesting and the relationship to sys(32).

Dean

#29
prl, I noticed one of your "planes" on the blue cube is at 3252 (see attachment)
my original drawing (rev4) shows the plane at 3251. this explains it.If I change it to 3251 the blue cube is visible for me in the rev5 file. So something did change from my original file. Check that in your rev5 file, That you posted
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit