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.

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

#60
Thanks Dean.  Looking at  your other videos too, you a TurboCAD Pro fan or dabbler? Sorry for being CAD nosy.  I've got the Pro too just don't prefer it.

prl

#61
Quote from: Dean on April 16, 2014, 09:55:04 PM
I kept the Z cut off point so you can experiment with that. If you can create a view in 3d drawing space that you're happy with you can animate it in the walk through animation, 

A few general questions about walk-throughs.

1.  Once you've created a walk-through, how do you purge it from the drawing file?  Well I found a delete under the Load Walk Dialog, but it doesn't delete??

2.  How are you creating the animations besides running them within DC?   I noticed when it tries to make an *.avi, on my machine it (DC) crashes.  Then I tried making the WRL file and I don't know what to do with that.  Also the exported files are huge.  Any tricks or suggestions.

3.  I was chuckling at the menu item "Run Walk".  I misunderstood what this means.  It means "Play walk-through".  I initially though it meant speed walking.  ;D

Dean

#62
 :)A lot of technical programming questions about Dcad's engine, go easy on me. Can we focus on what does work and the WT animation for now?. Are you able to create a WT animation that you're happy with?
For rendering the WT as an avi you need to lower the fps rate and adjust the "times" value in the WT palette. Try the attached  (walk through spin (rev2) and select the "spin avi" template then set the value of "7" in the fps field. This rendered an avi for me. The WT will appear it's going faster but the rendered avi will display differently. You need to find out the optimum settings for yourself with your computer.
Other times I screen capture the walk through which works quite well.
You can export the walk through 3d drawing as an wrl file but not the walk through animation ( I use instant reality vrml viewer)
You can export a normal animation as a wrl file.
I normally delete the frames for purging.
You might find thisWT animation (walk through spin (in the dome) interesting being that this was our discussion in this thread. Here is another WT animation where you can test dcad clipping pane by adjusting the Camera's  x value. Select the"spin2" template and remember, don't change anything in the view tool box fields.
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 17, 2014, 06:18:18 AM
Are you able to create a WT animation that you're happy with?

Yes, the animation that plays within DesignCAD is good.  But it seems to be trapped inside of DC itself, that is why I was asking how you showed it/exported it for others to watch. 

I think all the interface quirks I can figure out.  DesignCAD does similar odd things with paperspace.  And just like paperspace, this animation code module seems to be glued onto the primary DesignCAD code and hence has that odd feeling to it, like it doesn't really belong.

Thanks for all your help Dean.  I'm going to look over the files you attached.

Dean

#64
You are the Maestro! ;) Prl.
Anything that you can accomplish with your "know how" to enhance the Wt animation engine would be great. It's very interesting working with it and it has taught me a lot about creating "views" in Dcad.
Here is a video     https://www.youtube.com/watch?v=dm7LuO8WIcM  The blinking is normal only when exporting.

of my results rendering the Walk through spin (rev2) file as an avi then opening it in quick time.
Sometimes I make subtle adjustments in the WT info box to create the view I'm looking for.
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 17, 2014, 07:51:48 AM
it has taught me a lot

Me too Dean, all the way around.

I'm working on defining the equations for when things disappear.  In the attached movie, in the left window I'm selecting the rear plane and moving it along what I've calculated as the visible view range for a front view.  So in the right window you are seeing a live front view as I pick up and move the red rear plane in the left window. So as I pass the physical limits of the view range in the left window, the red plane disappears in the right window.

I'm using the self-playing movies because the file sizes are small.  Not smooth as butter, but you get the point. And besides, I don't know how to do what you're doing with U Tube.


prl

#66
Ok folks, I'm ready to dish out some parallel visibility equations for front views, specifically those dealing with the z direction.  I'm pretty sure these will also be the case for the +- x and +- y views, but for now I've only looked into these.

Some terms:

fcpz := front clipping plane in z direction.  The first z location where something will be shown. Everything less than this z is invisible.
rcpz := rear clipping plane in z direction.   The last z location where something will be shown.  Everything greater than this z is invisible.
vcz := view center location along z direction.

There are two sets of equations depending if vcz is positive or negative.

Case 1:  vcz >= 0

fcpz = -10000/sys32
rcpz = 2*(vcz*sys32+5000)/sys32

Case 2: vcz < 0

fcpz = 2*(vcz*sys32-5000)/sys32
rcpz = 10000/sys32

prl

#67
Quoteprl, what's the purpose to all this?

Hey you, I'm glad you asked me.   ::)

Visibility view boxes, also called clipping planes in AutoCAD, allow a user to non-destructively slice and view inside a model.  Since DesignCAD has such an unpublished feature, I'm just flushing it out.  Stay tuned.   I'll create one of those russian doll models, well actually, boxes inside of boxes, and I'll demonstrate you can view inside the boxes without physically slicing your model.  Only the clipping planes are moving in and out, the model remains untouched.

samdavo

#68
prl - absolutely !!
I KNEW my subconscious was thinking straight when I added the diamond in the middle of that Jaffa :)

CLIPPING PLANE AT 0.5xVD
Incidentally, I like the idea of the effective-clipping-plane at 0.5xVD.  It is exactly what Adriank exploited with his bedroom-in-the-sky.
Incidentally, herewith views 30 deg and 60 deg to the horizontal  - and not a slice to be found    (and I thank him again in anticipation of his permission to repost it - trouble is the missus now wants a bedroom like that built in the back yard).

If I'm not mistaken, you could have all of those views simultaneously in Paperspace yes?

CLIPPING PLANE(S) AS +/- 10000/sys32
sure that is similar -  assuming you needed two slices through your object.   But (to my mind, and shooting from the hip) , maybe more difficult to control - and more difficult to have simultaneous views in paperspace (??)

prl

Quote from: samdavo on April 17, 2014, 03:00:32 PM
If I'm not mistaken, you could have all of those views simultaneously in Paperspace yes?

For paperspace, Lar is the Supreme Being, father of all paper space creation.  Always light-years ahead of the rest of us.  Maybe he'll share some nuggets of gold with us on that topic.

And you're correct about the clipping planes +- 10000/sys32 when the view center is at 0,0,0.  Otherwise you get into the slightly odd equations I posted.

Dean

Quote from: prl on April 17, 2014, 10:21:26 AM
Quoteprl, what's the purpose to all this?

Hey you, I'm glad you asked me.   ::)

Visibility view boxes, also called clipping planes in AutoCAD, allow a user to non-destructively slice and view inside a model.  Since DesignCAD has such an unpublished feature, I'm just flushing it out.  Stay tuned.   I'll create one of those russian doll models, well actually, boxes inside of boxes, and I'll demonstrate you can view inside the boxes without physically slicing your model.  Only the clipping planes are moving in and out, the model remains untouched.

You could use it for something like this   https://www.youtube.com/watch?v=SAZLbHyA4VI
This is a piece of an old test file I'm able to share. With the walk through animation you generate many snap shots of the model.
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

samdavo

#71
 
Quote from: Dean on April 17, 2014, 06:11:50 PM
You could use it for something like this   https://www.youtube.com/watch?v=SAZLbHyA4VI
This is a piece of an old test file I'm able to share. With the walk through animation you generate many snap shots of the model.
thanks Dean,
some great youtubes there.
Does the one above use
a) 0.5xVD?  or
b) 10000/sys32?
(edit clearly the former)
Likewise this one (?):-
https://www.youtube.com/watch?v=CYgjUe9SPVg
walking animation,  of which I include a png snip.

(PS that is what I was attempting with my targets in kaleidoscope btw)

samdavo

Quote from: prl on April 17, 2014, 03:17:59 PM
For paperspace, Lar is the Supreme Being, father of all paper space creation.  Always light-years ahead of the rest of us.  Maybe he'll share some nuggets of gold with us on that topic.
well I tried,
First I defined some views in Modelspace, thinking they would be available in Paperspace
then opened Paperspace, and found I had the choice of Perspective ( 1 only), Front Side Top Isometric Parallel Custom.
No mention of the customised views I had defined in modelspace
Then I found each view could have VD defined - (as well as H and V angles) -
tried that, and that view seemed to go blank.   
At that point I gave up.
(not something I would use to be honest - just for information)

samdavo

#73
Back to that perspective of Dean's coloured cubes disappearing into the distance ...

I repost a slightly tidied up version.
at 1000, there is a multicoloured target outermost = black
at 2000, various reds
at 3000, various golds
at 4000, various yellows
at 5000, various greens
at 6000, various blues
at 7000, various purples.

I believe they have that "display as" order in that sequence ( might be wrong, and not sure how to test that - moving on). 

I include ONE screensnap as you zoom in and out.

VD is 2500, so that you are looking forward for the first 2 targets, and backwards at the others.
Here is what you see (for ONE of the stops as you zoom in and out - refer marked up jpeg):-
in the centre is the entire last purple target at 7000 ( all 5 rings)
then the outermost blue at 6000
then the "outer" and "maggie" (2nd frm outside) of the green one at 5000

THEN it gets interesting !
the yellow ring is the third from the outside of that target - (at 4000) - but the two further out don't show (??)

finally the outer white (or black) ring of the first target at 1000  (one ring only , possibly part of a ring because it is covered )

I enclose another picture, ( a fractionally different zoom) - this time with a red ring outermost - yet there are darker red rings on the red target that don't show.

Finally I show a Paperspace view with rings that have both blue and green ??

Again - just enjoy or ignore - or , lol - if you are real clever find a use for it some day :)

samdavo

#74
...
and a fractionally different "zoom-stop"  (and I'm only using Ctrl + mousewheel) ...
but you can go from the first ( with 3 of the 5 red rings visible)
to the second view ( with only 2 of the 5 red rings visible)
(and also the outer yellow ring has fallen off as well)

I did speculate "back there" that a cone of view might apply - but I would be amazed if that was correct,  and where is the centre of the cone in any case?

I do know that the diamond in the sphere argument - where the eye is pressed against the sphere - COULD be interpreted as 120 degrees cone of view.  But equally and probably more accurately, visibility stops at 0.5xVD back from VC (see final png).
(edit - i.e. the thickness of the blue segment is half the diameter of the red sphere)

In summary I give up, lol   - other than
a) I might use the 0.5xVD trick one day I guess
b) - provided there are no 3D hatches :).